        /* ====================================================================
         * 工作台 Dashboard UI（2026-09-10 视觉重构）
         * 顶部导航统一使用共享 header.html（inc/include-header.js 注入，
         * 其内嵌样式提供全后台统一的导航设计），本页只定义内容区样式。
         * 设计语言：浅灰蓝内容区 + 白色大圆角卡片 + 蓝色渐变欢迎横幅 +
         * 彩色图标块 + 环形完成率等图形化元素
         * ==================================================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #f5f7fc;
            min-height: 100vh;
            color: #1e2333;
        }

        /* ==================== 内容区 ==================== */
        .content {
            padding: 22px 28px 30px;
        }

        /* ==================== 欢迎横幅（蓝色渐变） ==================== */
        .banner {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            background: linear-gradient(120deg, #4c6fff 0%, #5f7dff 55%, #7d95ff 100%);
            color: #fff;
            padding: 26px 30px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }
        /* 装饰性半透明圆（纯 CSS，无图片） */
        .banner::before,
        .banner::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.12);
        }
        .banner::before {
            width: 220px;
            height: 220px;
            right: -60px;
            top: -110px;
        }
        .banner::after {
            width: 140px;
            height: 140px;
            right: 130px;
            bottom: -80px;
            background: rgba(255, 255, 255, 0.08);
        }
        .banner-text h2 {
            font-size: 21px;
            font-weight: 700;
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
        }
        .banner-text p {
            font-size: 13px;
            opacity: 0.88;
            line-height: 1.6;
            position: relative;
            z-index: 1;
        }
        .banner-action {
            position: relative;
            z-index: 1;
            flex-shrink: 0;
        }
        .banner-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.92);
            color: #3b5bfd;
            font-size: 14px;
            font-weight: 600;
            padding: 11px 22px;
            border-radius: 12px;
            text-decoration: none;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .banner-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(21, 42, 120, 0.25);
        }

        /* ==================== 核心指标卡（4 张） ==================== */
        .core-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 18px;
            margin-bottom: 20px;
        }
        .core-card {
            background: #fff;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 16px rgba(63, 86, 180, 0.06);
            display: flex;
            gap: 16px;
            align-items: flex-start;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .core-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 24px rgba(63, 86, 180, 0.12);
        }
        /* 彩色圆角图标块：浅色底 + 深色图标 */
        .core-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .core-info {
            min-width: 0;
        }
        .core-name {
            font-size: 13px;
            color: #8a92a6;
        }
        .core-value {
            font-size: 30px;
            font-weight: 700;
            line-height: 1.15;
            margin: 4px 0 5px;
            color: #1e2333;
        }
        .core-sub {
            font-size: 12px;
            color: #a3aab9;
        }
        .core-sub b {
            color: #5b6478;
            font-weight: 600;
        }
        /* 四种主题色 */
        .theme-blue   .core-icon { background: #eef2ff; color: #4c6fff; }
        .theme-purple .core-icon { background: #f3efff; color: #8b5cf6; }
        .theme-green  .core-icon { background: #e9f9ef; color: #22c55e; }
        .theme-orange .core-icon { background: #fff6e8; color: #f59e0b; }

        /* ==================== 通用面板（白色大圆角卡片） ==================== */
        .panel {
            background: #fff;
            border-radius: 16px;
            padding: 22px;
            box-shadow: 0 4px 16px rgba(63, 86, 180, 0.06);
        }
        .panel-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }
        .panel-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 600;
            color: #1e2333;
        }
        .panel-title .pt-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .panel-badge {
            font-size: 12px;
            font-weight: 600;
            color: #4c6fff;
            background: #eef2ff;
            padding: 4px 12px;
            border-radius: 20px;
        }

        /* 双列布局（任务|学生、内容|学习） */
        .grid-2 {
            display: grid;
            grid-template-columns: 1.15fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }
        @media (max-width: 1150px) {
            .grid-2 { grid-template-columns: 1fr; }
        }

        /* 小节标题 */
        .sub-title {
            font-size: 13px;
            color: #6b7386;
            font-weight: 500;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .sub-count {
            font-size: 12px;
            color: #a3aab9;
            font-weight: 400;
        }

        /* ==================== 任务运营：环形完成率 + 状态分布 ==================== */
        .task-layout {
            display: flex;
            gap: 26px;
            align-items: center;
        }
        @media (max-width: 560px) {
            .task-layout { flex-direction: column; }
        }
        /* 环形完成率：conic-gradient 实现，中心白圆显示百分比 */
        .ring {
            width: 138px;
            height: 138px;
            border-radius: 50%;
            background: conic-gradient(#4c6fff calc(var(--p, 0) * 1%), #edf0f8 0);
            position: relative;
            flex-shrink: 0;
        }
        .ring::after {
            content: '';
            position: absolute;
            inset: 13px;
            background: #fff;
            border-radius: 50%;
        }
        .ring-center {
            position: absolute;
            inset: 0;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .ring-rate {
            font-size: 26px;
            font-weight: 700;
            color: #1e2333;
            line-height: 1.1;
        }
        .ring-label {
            font-size: 12px;
            color: #a3aab9;
            margin-top: 2px;
        }
        .ring-desc {
            text-align: center;
            font-size: 12px;
            color: #8a92a6;
            margin-top: 10px;
            line-height: 1.6;
        }
        .ring-desc b { color: #4c6fff; }

        .task-groups {
            flex: 1;
            min-width: 0;
        }
        .task-group + .task-group {
            margin-top: 14px;
        }
        /* 状态胶囊：彩色圆点 + 数字 + 名称 */
        .pill-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
            gap: 8px;
        }
        .pill {
            background: #f6f8fc;
            border-radius: 10px;
            padding: 10px 10px 9px;
        }
        .pill-num {
            font-size: 19px;
            font-weight: 700;
            color: #1e2333;
        }
        .pill-name {
            font-size: 12px;
            color: #8a92a6;
            margin-top: 3px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .pill-name::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--c, #4c6fff);
            flex-shrink: 0;
        }

        /* ==================== 学生运营：等级分布 + 指标 ==================== */
        .bar-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 13px;
        }
        .bar-row:last-child { margin-bottom: 0; }
        .bar-label {
            width: 88px;
            font-size: 13px;
            color: #6b7386;
            flex-shrink: 0;
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }
        .bar-label .bar-count { color: #a3aab9; }
        .bar-track {
            flex: 1;
            height: 8px;
            background: #f0f2f8;
            border-radius: 6px;
            overflow: hidden;
        }
        .bar-fill {
            height: 100%;
            border-radius: 6px;
            transition: width 0.6s ease;
        }
        .bar-num {
            width: 40px;
            text-align: right;
            font-size: 13px;
            color: #1e2333;
            font-weight: 600;
        }
        .stu-chips {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 10px;
        }
        .stu-chip {
            background: #f6f8fc;
            border-radius: 12px;
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .stu-chip .sc-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .stu-chip .sc-val {
            font-size: 18px;
            font-weight: 700;
            color: #1e2333;
            line-height: 1.2;
        }
        .stu-chip .sc-name {
            font-size: 11px;
            color: #8a92a6;
        }

        /* ==================== 学习行为（图标横条列表） ==================== */
        .learn-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .learn-item {
            display: flex;
            align-items: center;
            gap: 14px;
            background: #f6f8fc;
            border-radius: 12px;
            padding: 14px 16px;
        }
        .learn-item .li-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .learn-item .li-val {
            font-size: 20px;
            font-weight: 700;
            color: #1e2333;
            line-height: 1.2;
        }
        .learn-item .li-name {
            font-size: 12px;
            color: #8a92a6;
            margin-top: 2px;
        }

        /* ==================== 内容资产（图标网格 + 级别分布） ==================== */
        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
            margin-bottom: 18px;
        }
        .content-item {
            background: #f6f8fc;
            border-radius: 12px;
            padding: 14px 12px;
            text-align: center;
            transition: background 0.15s;
        }
        .content-item:hover { background: #eef2ff; }
        .content-item .ci-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            margin: 0 auto 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .content-item .ci-val {
            font-size: 22px;
            font-weight: 700;
            color: #1e2333;
        }
        .content-item .ci-name {
            font-size: 12px;
            color: #8a92a6;
            margin-top: 2px;
        }
        /* 六种内容类型配色 */
        .ci-purple { background: #f3efff; color: #8b5cf6; }
        .ci-blue   { background: #eef2ff; color: #4c6fff; }
        .ci-green  { background: #e9f9ef; color: #22c55e; }
        .ci-orange { background: #fff6e8; color: #f59e0b; }
        .ci-cyan   { background: #e6f7fb; color: #0ea5e9; }
        .ci-gray   { background: #f0f2f8; color: #8a92a6; }

        /* 级别分布区块与上方网格的间距 */
        .level-section {
            margin-top: 4px;
        }

        /* ==================== 成本消耗（2026-10-07 新增） ==================== */
        .cost-panel { margin-bottom: 20px; }
        /* 面板头部右侧：时间区间切换 + 说明徽标 */
        .cost-head-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        /* 时间区间切换（今日 / 7 天 / 一个月） */
        .cost-range-tabs {
            display: inline-flex;
            background: #f0f2f8;
            border-radius: 9px;
            padding: 3px;
            gap: 2px;
        }
        .cost-range-tab {
            border: none;
            background: transparent;
            font-size: 12px;
            color: #6b7386;
            padding: 4px 12px;
            border-radius: 7px;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.15s;
        }
        .cost-range-tab:hover { color: #4c6fff; }
        .cost-range-tab.is-active {
            background: #fff;
            color: #4c6fff;
            font-weight: 600;
            box-shadow: 0 1px 3px rgba(63, 86, 180, 0.12);
        }
        /* 指标卡副标题（区间文案 / 累计 N） */
        .content-item .ci-sub {
            font-size: 11px;
            color: #a3aab9;
            margin-top: 4px;
        }
        .content-item .ci-sub b {
            color: #6b7386;
            font-weight: 600;
        }
        /* 大模型渠道胶囊副标题（累计 N 次） */
        .pill-sub {
            font-size: 11px;
            color: #a3aab9;
            margin-top: 2px;
        }

        /* ==================== 今日活跃学生明细（2026-11-09 新增） ==================== */
        /* 可点击入口：核心卡片「今日活跃学生」与学习行为列表项 */
        .core-card.is-clickable,
        .learn-item.is-clickable {
            cursor: pointer;
        }
        .core-card.is-clickable:focus-visible,
        .learn-item.is-clickable:focus-visible {
            outline: 2px solid #22c55e;
            outline-offset: 2px;
        }
        .learn-item.is-clickable:hover {
            background: #eef6f1;
        }
        .core-link-hint {
            display: inline-block;
            margin-left: 6px;
            font-size: 11px;
            color: #22c55e;
            background: #e9f9ef;
            border-radius: 10px;
            padding: 1px 7px;
            vertical-align: 1px;
        }

        /* 弹层遮罩 */
        .as-overlay {
            position: fixed;
            inset: 0;
            z-index: 1300;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(17, 24, 39, 0.45);
        }
        .as-overlay.show {
            display: flex;
        }
        /* 弹层主体：头部 + 可滚动表格 + 底部分页 */
        .as-modal {
            width: min(1120px, 100%);
            max-height: calc(100vh - 48px);
            background: #fff;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 24px 60px rgba(16, 24, 40, 0.28);
            animation: asIn 0.18s ease;
        }
        @keyframes asIn {
            from { transform: translateY(10px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .as-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 20px 24px 14px;
            border-bottom: 1px solid #f0f2f8;
            flex-shrink: 0;
        }
        .as-title {
            font-size: 18px;
            font-weight: 700;
            color: #1e2333;
        }
        .as-title .as-total {
            color: #22c55e;
        }
        .as-desc {
            margin-top: 4px;
            font-size: 12px;
            color: #8a92a6;
        }
        .as-close {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 8px;
            background: #f0f2f8;
            color: #6b7386;
            font-size: 18px;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
        }
        .as-close:hover {
            background: #e6eaf3;
        }
        .as-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow: auto;
            padding: 8px 24px 4px;
        }
        .as-table {
            width: 100%;
            min-width: 900px;
            border-collapse: collapse;
            font-size: 13px;
        }
        .as-table th {
            position: sticky;
            top: 0;
            z-index: 1;
            padding: 10px 12px;
            text-align: left;
            white-space: nowrap;
            font-weight: 600;
            color: #8a92a6;
            background: #f8f9fc;
        }
        .as-table td {
            padding: 12px;
            border-bottom: 1px solid #f2f4f9;
            vertical-align: middle;
        }
        .as-table tbody tr:hover {
            background: #f8faff;
        }
        .as-stu-name {
            font-weight: 600;
            color: #1e2333;
        }
        .as-stu-meta {
            margin-top: 2px;
            font-size: 11px;
            color: #a3aab9;
        }
        .as-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }
        .as-badge.lv1 { background: #f0f2f8; color: #6b7386; }
        .as-badge.lv2 { background: #eef2ff; color: #4c6fff; }
        .as-badge.lv3 { background: #fff6e8; color: #f59e0b; }
        .as-badge.off { background: #fdecec; color: #ef4444; }
        .as-num {
            font-weight: 600;
            color: #1e2333;
            white-space: nowrap;
        }
        .as-num small {
            font-size: 11px;
            font-weight: 400;
            color: #a3aab9;
        }
        .as-time {
            white-space: nowrap;
            color: #5b6478;
        }
        .as-btn {
            padding: 5px 12px;
            border: 1px solid #22c55e;
            border-radius: 8px;
            background: #fff;
            color: #16a34a;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            cursor: pointer;
        }
        .as-btn:hover {
            background: #e9f9ef;
        }
        .as-loading,
        .as-empty {
            padding: 48px 0;
            text-align: center;
            color: #a3aab9;
            font-size: 13px;
        }
        .as-pager {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 24px 18px;
            border-top: 1px solid #f0f2f8;
            flex-shrink: 0;
        }
        .as-pager-info {
            font-size: 12px;
            color: #8a92a6;
        }
        .as-pager-btns {
            display: flex;
            gap: 8px;
        }
        .as-page-btn {
            padding: 6px 14px;
            border: 1px solid #dfe4ef;
            border-radius: 8px;
            background: #fff;
            color: #5b6478;
            font-size: 12px;
            cursor: pointer;
        }
        .as-page-btn:hover:not(:disabled) {
            border-color: #4c6fff;
            color: #4c6fff;
        }
        .as-page-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }
        /* 小屏适配：弹层贴近屏幕边缘，表格横向滚动 */
        @media (max-width: 640px) {
            .as-overlay { padding: 10px; }
            .as-modal { max-height: calc(100vh - 20px); border-radius: 12px; }
            .as-head { padding: 16px 16px 12px; }
            .as-body { padding: 6px 16px 2px; }
            .as-pager { padding: 10px 16px 14px; }
        }
