        /* ===== 全局基础样式 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --primary: #1a2a4a;
            --primary-light: #2c4a7a;
            --secondary: #2d5a4a;
            --accent: #c9a84c;
            --accent-light: #e8d5a3;
            --bg: #f0f2f6;
            --card: #ffffff;
            --text: #1e2a3a;
            --text-light: #5a6a7a;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            --radius: 16px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        body {
            font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
        }
        .hidden {
            display: none !important;
        }
        /* ===== 登录页 ===== */
        #loginPage {
            width: 100%;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            background: linear-gradient(145deg, #f0f4fa 0%, #dce3ed 100%);
        }
        .login-container {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(16px);
            padding: 56px 48px 48px;
            border-radius: 40px;
            box-shadow: 0 20px 60px rgba(26, 42, 74, 0.15);
            width: 100%;
            max-width: 820px;
            text-align: center;
        }
        .login-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 8px;
        }
        .login-logo .icon {
            font-size: 42px;
        }
        .login-logo h1 {
            font-size: 32px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .login-sub {
            color: var(--text-light);
            font-size: 16px;
            margin-bottom: 40px;
            letter-spacing: 2px;
        }
        .login-sub em {
            font-style: normal;
            color: var(--accent);
            font-weight: 600;
        }
        .login-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-top: 12px;
        }
        .login-card {
            background: var(--card);
            border-radius: 24px;
            padding: 36px 24px 30px;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
        }
        .login-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-light);
            box-shadow: 0 16px 48px rgba(26, 42, 74, 0.12);
        }
        .login-card .emoji {
            font-size: 48px;
            display: block;
            margin-bottom: 12px;
        }
        .login-card h3 {
            font-size: 22px;
            font-weight: 600;
            color: var(--primary);
        }
        .login-card p {
            color: var(--text-light);
            font-size: 14px;
            margin-top: 6px;
        }
        .login-card .badge {
            display: inline-block;
            background: var(--accent);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            padding: 2px 14px;
            border-radius: 20px;
            margin-top: 12px;
        }
        /* ===== 主应用 ===== */
        #app {
            width: 100%;
            min-height: 100vh;
            background: var(--bg);
            display: flex;
            flex-direction: column;
        }
        .app-header {
            background: var(--card);
            padding: 0 32px;
            height: 68px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
            position: sticky;
            top: 0;
            z-index: 100;
            flex-shrink: 0;
        }
        .app-header .brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 20px;
            color: var(--primary);
            flex-shrink: 0;
            white-space: nowrap;
        }
        .app-header .brand span {
            color: var(--accent);
        }
        .app-header .nav {
            display: flex;
            gap: 4px;
            align-items: center;
            flex-wrap: nowrap;
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            justify-content: center;
        }
        .app-header .nav button {
            background: transparent;
            border: none;
            padding: 8px 20px;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .app-header .nav button:hover {
            background: var(--bg);
            color: var(--text);
        }
        .app-header .nav button.active {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 12px rgba(26, 42, 74, 0.2);
        }
        .app-header .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            color: var(--text-light);
            flex-shrink: 0;
            white-space: nowrap;
        }
        .app-header .user-info .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary-light);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
            flex-shrink: 0;
        }
        .app-header .user-info .logout-btn {
            background: transparent;
            border: 1px solid #e2e8f0;
            padding: 6px 16px;
            border-radius: 40px;
            font-size: 13px;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .app-header .user-info .logout-btn:hover {
            background: #fee;
            border-color: #fcc;
            color: #c0392b;
        }
        .app-body {
            flex: 1;
            padding: 24px 32px 40px;
            max-width: 1440px;
            margin: 0 auto;
            width: 100%;
        }
        /* ===== 通用卡片 ===== */
        .reading-layout {
            display: flex;
            gap: 24px;
            height: calc(100vh - 160px);
            min-height: 600px;
        }
        .left-panel {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 24px 28px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            position: relative;
            flex: 1;
            min-width: 30%;
            transition: flex 0.2s;
        }
        .right-panel {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            flex: 1;
            min-width: 30%;
            transition: flex 0.2s;
        }
        .resize-handle {
            width: 8px;
            background: transparent;
            cursor: col-resize;
            flex-shrink: 0;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .resize-handle::after {
            content: '⋮';
            color: var(--text-light);
            font-size: 18px;
            opacity: 0.3;
        }
        .resize-handle:hover::after {
            opacity: 0.8;
        }
        .right-tabs {
            display: flex;
            border-bottom: 1px solid #edf2f7;
            flex-shrink: 0;
            background: #fafbfc;
            border-radius: var(--radius) var(--radius) 0 0;
            flex-wrap: wrap;
        }
        .right-tabs button {
            flex: 1;
            padding: 14px 8px;
            background: transparent;
            border: none;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 3px solid transparent;
            font-family: inherit;
            min-width: 60px;
        }
        .right-tabs button.active {
            color: var(--primary);
            border-bottom-color: var(--accent);
            background: #fff;
        }
        .tab-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px 24px;
            display: none;
            flex-direction: column;
        }
        .tab-content.active {
            display: flex;
        }
        .article-content {
            flex: 1;
            font-size: 15px;
            line-height: 1.9;
            color: #1e2a3a;
            padding-right: 4px;
            user-select: text;
        }
        .article-content h2 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--primary);
        }
        .article-content .meta {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 20px;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        .article-content p {
            margin-bottom: 16px;
            text-align: justify;
            font-family: "STSong", "SimSun", "宋体", serif;
            text-indent: 2em;
        }
        .article-content p.text-author,
        .article-content p.text-date {
            text-indent: 0;
        }
        .article-content p.text-quote {
            font-family: "STKaiti", "KaiTi", "楷体", serif;
        }
        /* 诗词正文：不做首行缩进，逐行呈现更符合诗词排版习惯 */
        .article-content p.text-poem {
            text-indent: 0;
            letter-spacing: .5px;
        }
        /* 词句注释：默认带波浪下划线，鼠标悬停显示浮层注释；
           学生可通过右上角"注释"开关整体关闭（见 .annot-off）。
           浮层本身改由 JS 用一个共享的 #zhuAnnotTip 元素定位显示（见下方
           showZhuAnnotTip），而不是纯 CSS 居中的 ::after——诗词句子普遍很短、
           注释词又常常靠近阅读区左侧，纯 CSS 居中弹出会被顶到视口外面，
           看不到左半边；JS 定位时会按实际视口宽度做边界收紧。 */
        .zhu-annot {
            position: relative;
            border-bottom: 1px dashed #d68910;
            cursor: help;
        }
        /* 学生自己添加的注释：复用同一套 zhu-annot 悬浮浮层机制，只是换一个
           下划线颜色（蓝色），让学生一眼能分清哪些是自己加的、哪些是老师
           写好的（老师的是橙色虚线）。鼠标样式也从 help 换成 pointer，
           提示"这个可以点击删除"，教师写的注释没有这个交互，不应该给
           同样的鼠标提示。 */
        .zhu-annot.student-annot {
            border-bottom: 1px dashed #2980b9;
            cursor: pointer;
            background: rgba(41,128,185,0.06);
        }
        /* 篇名后的来源注释，样式区别于词句内注释，做成小圆角标 */
        .zhu-annot-src {
            display: inline-block;
            vertical-align: super;
            font-size: 11px;
            line-height: 1;
            margin-left: 3px;
            padding: 1px 5px;
            border-radius: 8px;
            background: #fdebd0;
            color: #d68910;
            border-bottom: none;
            cursor: help;
        }
        /* 注释开关关闭时：去掉下划线视觉提示；浮层是否显示由 showZhuAnnotTip
           里的 annot-off 判断控制，这里只需要处理静态视觉样式 */
        .article-content.annot-off .zhu-annot {
            border-bottom: none;
            cursor: text;
        }
        .article-content.annot-off .zhu-annot-src {
            background: transparent;
            color: #c2c8d0;
        }
        /* 共享的注释浮层（JS 动态定位、填内容），固定定位所以坐标以视口为准，
           展示前会按 window.innerWidth/innerHeight 做边界收紧，不会被顶出视口 */
        .zhu-annot-tip {
            position: fixed;
            display: none;
            min-width: 140px;
            max-width: 300px;
            width: max-content;
            white-space: normal;
            text-align: left;
            font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
            font-size: 12.5px;
            line-height: 1.6;
            background: #2c3e50;
            color: #fff;
            padding: 8px 10px;
            border-radius: 6px;
            box-shadow: 0 6px 16px rgba(0,0,0,.2);
            z-index: 70;
            pointer-events: none;
        }
        .annot-toggle-btn {
            font-size: 12px;
            padding: 4px 12px;
            border-radius: 12px;
            border: 1px solid #f1c40f;
            background: #fffbea;
            color: #b7791f;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }
        .annot-toggle-btn.on {
            background: #fdebd0;
            border-color: #e67e22;
            color: #c05621;
        }
        .annot-toggle-btn:hover {
            filter: brightness(0.96);
        }
        /* 标记样式 - 按题目编号，使用预设颜色 */
        .hl-q1 {
            background: #d5f5e3;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-left: 3px solid #2ecc71;
        }
        .hl-q2 {
            background: #fcf3a0;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-left: 3px solid #f1c40f;
        }
        .hl-q3 {
            background: #b3d9f7;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-left: 3px solid #3498db;
        }
        .hl-q4 {
            background: #f5b7b1;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-left: 3px solid #e74c3c;
        }
        .hl-q5 {
            background: #e8daef;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-left: 3px solid #9b59b6;
        }
        .hl-q6 {
            background: #fdebd0;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-left: 3px solid #e67e22;
        }
        .hl-redline {
            background: transparent;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-bottom: 2px solid #e74c3c;
            color: #c0392b;
        }
        .hl-note {
            background: #e8daef;
            padding: 2px 4px;
            border-radius: 4px;
            border-left: 3px solid #8e44ad;
            cursor: pointer;
        }
        .hl-question {
            background: #fadbd8;
            padding: 2px 4px;
            border-radius: 4px;
            border-bottom: 2px dashed #e74c3c;
            cursor: pointer;
        }
        /* 教师端"讲解标记·难点"：双下划线，视觉上与学生端的疑问(虚线)、划线(单实线)区分开 */
        .hl-teacher-hard {
            background: transparent;
            padding: 2px 4px;
            border-radius: 4px;
            cursor: pointer;
            border-bottom: 3px double #c0392b;
            color: #c0392b;
        }
        /* 浮动工具栏 - 新版 */
        #floatingToolbar {
            position: fixed;
            background: var(--primary);
            color: #fff;
            border-radius: 40px;
            padding: 6px 12px;
            display: none;
            align-items: center;
            gap: 4px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            z-index: 999;
            transform: translateX(-50%);
            white-space: nowrap;
            flex-wrap: wrap;
        }
        #floatingToolbar button {
            background: transparent;
            border: none;
            color: #fff;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 3px;
        }
        #floatingToolbar button:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        #floatingToolbar .divider {
            width: 1px;
            height: 20px;
            background: rgba(255, 255, 255, 0.2);
            margin: 0 2px;
        }
        .color-dot {
            display: inline-block;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.3);
            flex-shrink: 0;
        }
        /* 任务创建弹窗：原文与题目关联标注（教师端，仿照学生划线交互） */
        .modal-overlay .modal-box .ref-anchor-section {
            background: #f8fafc;
            border-radius: 14px;
            padding: 18px 20px;
            margin: 16px 0;
            border: 1px solid #edf2f7;
        }
        .modal-overlay .modal-box .ref-anchor-section .ref-refresh-btn {
            background: var(--primary-light);
            color: #fff;
            border: none;
            padding: 6px 16px;
            border-radius: 40px;
            font-size: 12px;
            cursor: pointer;
            font-family: inherit;
            transition: var(--transition);
            white-space: nowrap;
        }
        .modal-overlay .modal-box .ref-anchor-section .ref-refresh-btn:hover {
            background: var(--primary);
        }
        .ref-anchor-preview-wrap {
            max-height: 260px;
            overflow-y: auto;
            background: #fff;
            border: 1px dashed #d6dee8;
            border-radius: 10px;
            padding: 14px 16px;
        }
        .ref-anchor-preview-wrap .article-content {
            font-size: 14px;
            line-height: 1.8;
        }
        .q-refanchor-hint {
            font-size: 12px;
            color: var(--text-light);
            margin: -4px 0 10px 2px;
        }
        .q-refanchor-hint .q-refanchor-count {
            font-weight: 600;
        }
        /* 教师标注专用迷你浮动工具条（样式与学生端 #floatingToolbar 保持一致，层级高于弹窗） */
        #modalMarkToolbar {
            position: fixed;
            background: var(--primary);
            color: #fff;
            border-radius: 40px;
            padding: 6px 12px;
            display: none;
            align-items: center;
            gap: 4px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            z-index: 10050;
            transform: translateX(-50%);
            white-space: nowrap;
            flex-wrap: wrap;
        }
        #modalMarkToolbar button {
            background: transparent;
            border: none;
            color: #fff;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 3px;
        }
        #modalMarkToolbar button:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        /* 对话 */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 16px;
            padding-right: 4px;
        }
        .chat-msg {
            display: flex;
            gap: 12px;
            max-width: 92%;
        }
        .chat-msg.user {
            align-self: flex-end;
            flex-direction: row-reverse;
        }
        .chat-msg .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }
        .chat-msg .avatar.ai {
            background: var(--secondary);
        }
        .chat-msg .avatar.user-av {
            background: var(--primary-light);
        }
        .chat-msg .bubble {
            background: #f1f4f9;
            padding: 12px 18px;
            border-radius: 16px;
            border-top-left-radius: 4px;
            font-size: 14px;
            line-height: 1.7;
            color: var(--text);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
        }
        .chat-msg.user .bubble {
            background: var(--primary);
            color: #fff;
            border-top-left-radius: 16px;
            border-top-right-radius: 4px;
        }
        .chat-msg .bubble .tag {
            display: inline-block;
            font-size: 11px;
            background: rgba(201, 168, 76, 0.2);
            color: var(--accent);
            padding: 0 10px;
            border-radius: 12px;
            margin-top: 6px;
            font-weight: 500;
        }
        .chat-msg .bubble .tag.scaffold {
            background: rgba(45, 90, 74, 0.15);
            color: var(--secondary);
        }
        /* AI主动介入的两种标签：疑问答疑用暖橙（对应正文里❓疑问标记的颜色），
           一般的学习陪伴用低饱和的绿，视觉上比"脚手架"更轻，不抢内容 */
        .chat-msg .bubble .tag.qa {
            background: rgba(230, 126, 34, 0.16);
            color: #b9651a;
        }
        .chat-msg .bubble .tag.companion {
            background: rgba(45, 90, 74, 0.10);
            color: #4a7a68;
        }
        /* "继续引导"（晾着不理第①阶段的自然接话）：比"学习陪伴"更轻一档的中性蓝灰，
           视觉上介于"脚手架"和"学习陪伴"之间——它其实就是AI导师在自然接话 */
        .chat-msg .bubble .tag.continue {
            background: rgba(90, 120, 150, 0.12);
            color: #5a7896;
        }
        .chat-divider {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-light);
            text-align: center;
            position: relative;
            margin: 6px 0;
            align-self: stretch;
        }
        .chat-divider::before,
        .chat-divider::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 32%;
            border-top: 1px solid #edf2f7;
        }
        .chat-divider::before {
            left: 0;
        }
        .chat-divider::after {
            right: 0;
        }
        .chat-input {
            display: flex;
            gap: 12px;
            flex-shrink: 0;
            border-top: 1px solid #edf2f7;
            padding-top: 16px;
        }
        .chat-input input {
            flex: 1;
            padding: 12px 18px;
            border: 1px solid #e2e8f0;
            border-radius: 40px;
            font-size: 14px;
            outline: none;
            transition: var(--transition);
            font-family: inherit;
            background: #fafbfc;
        }
        .chat-input input:focus {
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(44, 74, 122, 0.08);
            background: #fff;
        }
        .chat-input button {
            padding: 12px 28px;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 40px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            white-space: nowrap;
        }
        .chat-input button:hover {
            background: var(--primary-light);
            transform: scale(1.02);
        }
        /* 练习 */
        .exercise-item {
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 20px;
            border-left: 6px solid var(--accent);
            background: #fafbfc;
            transition: var(--transition);
        }
        .exercise-item .q-title {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 6px;
            font-size: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .exercise-item .q-title .q-badge {
            font-size: 12px;
            background: var(--accent-light);
            color: var(--primary);
            padding: 0 12px;
            border-radius: 20px;
            font-weight: 500;
        }
        .exercise-item .q-text {
            font-size: 14px;
            color: var(--text);
            margin-bottom: 12px;
        }
        .exercise-item textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            font-size: 14px;
            font-family: inherit;
            resize: vertical;
            min-height: 70px;
            transition: var(--transition);
            background: #fff;
        }
        .exercise-item textarea:focus {
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(44, 74, 122, 0.06);
            outline: none;
        }
        .exercise-item .feedback-box {
            margin-top: 12px;
            padding: 12px 16px;
            background: #eef6f3;
            border-radius: 10px;
            font-size: 14px;
            border-left: 3px solid var(--secondary);
            display: none;
        }
        .exercise-item .feedback-box .score {
            font-weight: 700;
            color: var(--primary);
        }
        /* 选择题选项（学生作答） */
        .q-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .q-option-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 14px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: #fff;
            font-size: 14px;
            cursor: pointer;
            transition: var(--transition);
        }
        .q-option-item:hover {
            border-color: var(--accent-light);
            background: #fffdf5;
        }
        .q-option-item input[type="radio"] {
            margin-top: 3px;
            accent-color: var(--primary);
            cursor: pointer;
            flex-shrink: 0;
        }
        .q-option-item .opt-key {
            font-weight: 700;
            color: var(--primary);
            flex-shrink: 0;
        }
        .q-option-item .opt-text {
            color: var(--text);
        }
        .q-option-item:has(input:checked) {
            border-color: var(--primary-light);
            background: #eef3fb;
        }
        /* 选择题选项回顾（教师批改） */
        .grading-options {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 4px 0 10px;
        }
        .grading-options .go-item {
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            background: #f8fafc;
            border: 1px solid #edf2f7;
            color: var(--text-light);
        }
        .grading-options .go-item.correct {
            border-color: #27ae60;
            background: #eafaf1;
            color: #1e8449;
            font-weight: 600;
        }
        .grading-options .go-item.selected:not(.correct) {
            border-color: #e74c3c;
            background: #fdedec;
            color: #c0392b;
            font-weight: 600;
        }
        .grading-options .go-item.selected::after {
            content: ' ← 学生选择';
            font-weight: 500;
        }
        .exercise-submit-all {
            margin: 16px 0 8px;
            padding: 10px 32px;
            background: var(--secondary);
            color: #fff;
            border: none;
            border-radius: 40px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }
        .exercise-submit-all:hover {
            background: #1e4a3a;
            transform: scale(1.02);
        }
        /* 报告 */
        .report-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            height: calc(100vh - 160px);
            min-height: 500px;
        }
        .report-card {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 24px 28px;
            display: flex;
            flex-direction: column;
        }
        .report-card .card-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .report-card .card-title .badge {
            font-size: 12px;
            background: var(--accent-light);
            color: var(--primary);
            padding: 0 12px;
            border-radius: 20px;
            font-weight: 500;
        }
        .card-title-sub {
            font-size: 12px;
            font-weight: 400;
            color: var(--text-light);
        }
        /* ===== 教师端：任务范围选择条 ===== */
        .teacher-scope-bar {
            background: #fff;
            border-bottom: 1px solid #edf2f7;
            padding: 12px 32px;
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }
        .teacher-scope-bar .tsb-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-light);
            white-space: nowrap;
        }
        /* 查看范围现在只是一个"综合评价 / 具体任务"二选一开关；选中"具体任务"后，
           具体是哪一次任务——在"过程分析"页由左侧任务清单选（见 .process-sidebar-col），
           在"学生列表""群体诊断"页没有侧栏可放，就在开关右边补一个精简下拉（沿用下面的 select 样式）。 */
        .teacher-scope-bar .tsb-scope-switch {
            display: inline-flex;
            border: 1.5px solid var(--accent-light);
            border-radius: 20px;
            overflow: hidden;
            background: #fffdf7;
        }
        .teacher-scope-bar .tsb-scope-switch button {
            padding: 6px 16px;
            border: none;
            background: transparent;
            font-size: 13px;
            font-family: inherit;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
        }
        .teacher-scope-bar .tsb-scope-switch button.active {
            background: var(--primary);
            color: #fff;
        }
        .teacher-scope-bar .tsb-scope-switch button:hover:not(.active) {
            background: var(--accent-light);
            color: var(--primary);
        }
        .teacher-scope-bar .tsb-scope-switch button:disabled {
            cursor: not-allowed;
            opacity: 0.5;
        }
        .teacher-scope-bar select {
            padding: 7px 16px;
            border-radius: 20px;
            border: 1.5px solid var(--accent-light);
            background: #fffdf7;
            font-size: 13px;
            font-family: inherit;
            color: var(--primary);
            font-weight: 600;
            cursor: pointer;
        }
        .teacher-scope-bar .tsb-hint {
            font-size: 12px;
            color: var(--text-light);
        }
        /* 「阅读策略类型不受此范围影响」的固定提示：常驻显示为一个醒目的小徽标，
           与上面会随选择变化的 tsb-hint 区分开，避免教师误以为所有"行为"相关内容都会跟着查看范围切换 */
        .teacher-scope-bar .tsb-hint-fixed {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 12px;
            border-radius: 20px;
            background: var(--accent-light);
            color: var(--primary);
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
        }
        /* ===== 通用筛选条 / 分段选项卡（学生端学期&完成状态、教师端任务分组等） ===== */
        .filter-bar {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px 16px;
            margin-bottom: 16px;
            padding: 12px 16px;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.04);
        }
        .filter-bar .fb-group {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .filter-bar .fb-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-light);
            white-space: nowrap;
            margin-right: 2px;
        }
        .filter-pill {
            padding: 6px 16px;
            border-radius: 20px;
            border: 1.5px solid #e2e8f0;
            background: #fff;
            color: var(--text-light);
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: var(--transition);
            white-space: nowrap;
        }
        .filter-pill:hover {
            border-color: var(--accent-light);
            color: var(--primary);
        }
        .filter-pill.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }
        .filter-pill.active.accent {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }
        .filter-divider {
            width: 1px;
            height: 20px;
            background: #e2e8f0;
        }
        .task-status-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 10px;
            border-radius: 8px;
        }
        .task-status-badge.done {
            background: #d5f5e3;
            color: #1e8449;
        }
        .task-status-badge.todo {
            background: #fdebd0;
            color: #b9770e;
        }
        .chart-container {
            flex: 1;
            min-height: 240px;
            width: 100%;
        }
        .diagnosis-text {
            font-size: 14px;
            line-height: 1.8;
            color: var(--text);
            padding: 8px 0;
            flex: 1;
            overflow-y: auto;
        }
        .diagnosis-text strong {
            color: var(--primary);
        }
        .suggestion-list {
            list-style: none;
            padding: 0;
            margin: 8px 0;
        }
        .suggestion-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid #f0f2f6;
            font-size: 14px;
        }
        .suggestion-list li:last-child {
            border-bottom: none;
        }
        .suggestion-list .num {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--accent-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 13px;
            flex-shrink: 0;
            margin-top: 1px;
        }
        /* 教师端 任务管理 */
        .task-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 30px;
        }
        .task-item {
            background: var(--card);
            border-radius: var(--radius);
            padding: 16px 20px;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 6px solid var(--accent);
            flex-wrap: wrap;
            gap: 12px;
        }
        .task-item .info {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
        }
        .task-item .info .name {
            font-weight: 600;
            font-size: 16px;
        }
        .task-item .info .detail {
            font-size: 13px;
            color: var(--text-light);
        }
        .task-item .info .tools-badge {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 4px;
        }
        .task-item .info .tools-badge span {
            font-size: 11px;
            background: var(--bg);
            padding: 1px 10px;
            border-radius: 12px;
            color: var(--text-light);
        }
        .task-item .actions button {
            padding: 6px 18px;
            border-radius: 30px;
            border: none;
            background: var(--primary);
            color: #fff;
            font-size: 13px;
            cursor: pointer;
            font-family: inherit;
            transition: var(--transition);
            margin-left: 8px;
        }
        .task-item .actions button:hover {
            background: var(--primary-light);
        }
        .task-item .actions button.danger {
            background: #c0392b;
        }
        .task-item .actions button.danger:hover {
            background: #a93226;
        }
        /* 教师端任务管理：按学期分组展示（替代此前"综合"之外无任何组织的平铺列表） */
        .task-stage-group {
            margin-bottom: 18px;
        }
        .task-stage-heading {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 700;
            color: var(--primary-light);
            margin: 4px 0 10px;
            padding-left: 2px;
        }
        .task-stage-heading .tsh-count {
            background: var(--bg);
            color: var(--text-light);
            border-radius: 10px;
            padding: 1px 9px;
            font-size: 11px;
            font-weight: 600;
        }
        .course-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            padding: 1px 9px;
            border-radius: 8px;
            margin-right: 8px;
            vertical-align: middle;
        }
        .course-badge.required {
            background: #dbe9ff;
            color: #1a4a8a;
        }
        .course-badge.elective {
            background: #efe0fb;
            color: #6a3d9a;
        }
        /* 文本类型标签（新增：文学类/实用类/论述类/信息类），颜色由 TEXT_TYPE_META 内联指定 */
        .text-type-badge {
            display: inline-block;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 11px;
            border-radius: 20px;
            color: #fff;
            white-space: nowrap;
            vertical-align: middle;
        }
        /* 教学环节标签（新增：课前预习/课中任务/课后练习/阶段测试/自定义） */
        .phase-badge {
            display: inline-block;
            font-size: 11px;
            font-weight: 600;
            padding: 2px 11px;
            border-radius: 20px;
            background: #eef2f7;
            color: var(--text-light);
            white-space: nowrap;
            border: 1px solid #e2e8f0;
            vertical-align: middle;
        }
        /* "综合阅读"类任务在同一 task.content 内以标签形式呈现多篇课文（新增） */
        .comprehensive-text-tabs {
            margin-bottom: 4px;
        }
        .ctt-tabbar {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 16px;
            border-bottom: 2px solid #edf2f7;
        }
        .ctt-tab-btn {
            padding: 8px 18px;
            border: none;
            background: transparent;
            color: var(--text-light);
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            transition: var(--transition);
            border-radius: 8px 8px 0 0;
        }
        .ctt-tab-btn:hover {
            color: var(--primary);
            background: #f7f8fb;
        }
        .ctt-tab-btn.active {
            color: var(--primary);
            border-bottom-color: var(--accent);
        }
        .ctt-tab-panel {
            display: none;
        }
        .ctt-tab-panel.active {
            display: block;
        }
        .ctt-intro-box {
            margin-top: 22px;
            padding: 14px 18px;
            background: #f7f5ef;
            border-left: 4px solid var(--accent);
            border-radius: 8px;
            font-size: 14px;
            color: var(--text);
        }
        /* 高考真题类文本中，用于标注题干引用位置的【甲】【乙】等标记（新增） */
        .marked-ref {
            color: var(--accent);
            font-weight: 700;
        }
        /* 教师端"综合评价·统计设置"入口按钮 */
        .teacher-scope-bar .tsb-config-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 16px;
            border-radius: 20px;
            border: 1.5px solid var(--primary-light);
            background: #fff;
            color: var(--primary);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: var(--transition);
        }
        .teacher-scope-bar .tsb-config-btn:hover {
            background: var(--primary);
            color: #fff;
        }
        /* 综合评价统计设置弹窗内部布局 */
        .eval-config-tasklist {
            max-height: 260px;
            overflow-y: auto;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            padding: 10px 16px;
            background: #fff;
        }
        .eval-config-task-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 7px 2px;
            border-bottom: 1px dashed #edf2f7;
            font-size: 13px;
            cursor: pointer;
        }
        .eval-config-task-row:last-child {
            border-bottom: none;
        }
        .eval-config-task-row input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--primary);
            cursor: pointer;
            flex-shrink: 0;
        }
        .eval-config-task-row .etr-name {
            flex: 1;
            font-weight: 500;
            color: var(--text);
        }
        .eval-weight-head, .eval-weight-row {
            display: grid;
            grid-template-columns: 116px repeat(5, 1fr);
            gap: 8px;
            align-items: center;
        }
        .eval-weight-head {
            font-size: 11px;
            color: var(--text-light);
            margin-bottom: 6px;
            text-align: center;
        }
        .eval-weight-row {
            margin-bottom: 10px;
        }
        .eval-weight-row .ewr-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--primary);
        }
        .eval-weight-row input {
            width: 100%;
            padding: 6px 4px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 13px;
            text-align: center;
            font-family: inherit;
        }
        /* 题目"核心素养权重"输入行（新增：四项能力可分别设百分比，求和须为100） */
        .q-ability-weight-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        .q-ability-weight-row .aw-item {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .q-ability-weight-row .aw-item label {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-light);
        }
        .q-ability-weight-row .aw-item .aw-input-wrap {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .q-ability-weight-row .aw-item input {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 13px;
            background: #fff;
            font-family: inherit;
        }
        /* 模态框 - 优化样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(6px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-overlay .modal-box {
            background: #fff;
            border-radius: 28px;
            max-width: 820px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 36px 40px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
            position: relative;
            animation: modalFadeIn 0.25s ease-out;
        }
        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.96) translateY(12px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        .modal-overlay .modal-box .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            border-bottom: 1px solid #edf2f7;
            padding-bottom: 16px;
        }
        .modal-overlay .modal-box .modal-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .modal-overlay .modal-box .modal-header h2::before {
            content: '✏️';
        }
        .modal-overlay .modal-box .modal-close {
            background: transparent;
            border: none;
            font-size: 30px;
            cursor: pointer;
            color: var(--text-light);
            padding: 0 8px;
            transition: var(--transition);
            line-height: 1;
        }
        .modal-overlay .modal-box .modal-close:hover {
            color: #c0392b;
            transform: rotate(90deg);
        }
        .modal-overlay .modal-box .form-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .modal-overlay .modal-box .form-group {
            flex: 1;
            min-width: 200px;
        }
        .modal-overlay .modal-box .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-light);
            margin-bottom: 4px;
        }
        .modal-overlay .modal-box .form-group input,
        .modal-overlay .modal-box .form-group select,
        .modal-overlay .modal-box .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 14px;
            font-family: inherit;
            background: #fafbfc;
            transition: var(--transition);
        }
        .modal-overlay .modal-box .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }
        .modal-overlay .modal-box .form-group input:focus,
        .modal-overlay .modal-box .form-group select:focus,
        .modal-overlay .modal-box .form-group textarea:focus {
            border-color: var(--primary-light);
            outline: none;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(44, 74, 122, 0.06);
        }
        .modal-overlay .modal-box .tools-section {
            background: #f8fafc;
            border-radius: 14px;
            padding: 18px 20px;
            margin: 16px 0;
            border: 1px solid #edf2f7;
        }
        .modal-overlay .modal-box .tools-section .tools-title {
            font-weight: 600;
            font-size: 15px;
            color: var(--text);
            margin-bottom: 10px;
        }
        .modal-overlay .modal-box .tools-section .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .modal-overlay .modal-box .tools-section .checkbox-group label {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
            font-size: 13.5px;
            color: var(--text-light);
            cursor: pointer;
            padding: 8px 16px 8px 14px;
            border-radius: 20px;
            border: 1.5px solid #e2e8f0;
            background: #fff;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
            user-select: none;
        }
        .modal-overlay .modal-box .tools-section .checkbox-group label:hover {
            border-color: var(--primary);
        }
        .modal-overlay .modal-box .tools-section .checkbox-group label:has(input:checked) {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }
        .modal-overlay .modal-box .tools-section .checkbox-group input[type="checkbox"] {
            /* 原生复选框本身不显示——用整个胶囊标签的背景色变化来表示选中
               状态，比"文字+一个小方框"更清楚也更好点（触控区域也更大）。 */
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        .modal-overlay .modal-box .question-group {
            background: #f8fafc;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            border: 1px solid #edf2f7;
        }
        .modal-overlay .modal-box .question-group .q-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }
        .modal-overlay .modal-box .question-group .q-row>div {
            flex: 1;
            min-width: 120px;
        }
        .modal-overlay .modal-box .question-group .q-row label {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-light);
        }
        .modal-overlay .modal-box .question-group .q-row input,
        .modal-overlay .modal-box .question-group .q-row select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 13px;
            background: #fff;
        }
        .modal-overlay .modal-box .add-question-btn {
            padding: 6px 20px;
            border: 1px dashed var(--primary);
            background: transparent;
            border-radius: 30px;
            font-size: 13px;
            color: var(--primary);
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }
        .modal-overlay .modal-box .add-question-btn:hover {
            background: var(--bg);
            border-color: var(--primary-light);
        }
        .modal-overlay .modal-box .submit-btn {
            padding: 10px 36px;
            background: var(--secondary);
            color: #fff;
            border: none;
            border-radius: 40px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            margin-top: 8px;
        }
        .modal-overlay .modal-box .submit-btn:hover {
            background: #1e4a3a;
            transform: scale(1.02);
        }
        /* 学生任务列表 */
        .student-task-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            padding: 8px 0;
        }
        .student-task-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 20px 18px;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
        }
        .student-task-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-light);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
        }
        .student-task-card .task-type {
            display: inline-block;
            background: var(--accent-light);
            color: var(--primary);
            font-size: 12px;
            padding: 2px 14px;
            border-radius: 20px;
            font-weight: 600;
        }
        .student-task-card .task-name {
            font-weight: 600;
            font-size: 17px;
            margin-top: 8px;
        }
        .student-task-card .task-desc {
            font-size: 13px;
            color: var(--text-light);
            margin-top: 4px;
        }
        /* 教师其他视图 */
        .student-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 20px;
            padding: 8px 0;
        }
        .student-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 20px 18px 18px;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
            text-align: center;
        }
        .student-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-light);
        }
        .student-card .s-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--primary-light);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 600;
            margin: 0 auto 10px;
        }
        .student-card .s-name {
            font-weight: 600;
            font-size: 16px;
        }
        .student-card .s-class {
            font-size: 13px;
            color: var(--text-light);
        }
        .student-card .s-status {
            display: inline-block;
            font-size: 12px;
            padding: 2px 14px;
            border-radius: 20px;
            margin-top: 8px;
            background: #d5f5e3;
            color: var(--secondary);
        }
        .student-card .s-behavior-tag {
            font-size: 11px;
            font-weight: 600;
            margin-top: 6px;
        }
        .student-card .s-bars {
            margin-top: 10px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            text-align: left;
        }
        .student-card .s-bar-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .student-card .s-bar-label {
            font-size: 11px;
            color: var(--text-light);
            width: 14px;
            flex-shrink: 0;
        }
        .student-card .s-bar-track {
            flex: 1;
            height: 6px;
            background: #edf2f7;
            border-radius: 4px;
            overflow: hidden;
        }
        .student-card .s-bar-fill {
            display: block;
            height: 100%;
            border-radius: 4px;
        }
        .student-card .s-bar-val {
            font-size: 10px;
            color: var(--text-light);
            width: 20px;
            text-align: right;
            flex-shrink: 0;
        }
        .group-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            height: calc(100vh - 160px);
            min-height: 500px;
        }
        .group-card {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 24px 28px;
            display: flex;
            flex-direction: column;
        }
        .group-card .card-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .insight-box {
            background: #f8fafc;
            border-radius: 12px;
            padding: 16px 20px;
            margin-top: 12px;
            border-left: 4px solid var(--accent);
            font-size: 14px;
            line-height: 1.8;
        }
        .insight-box strong {
            color: var(--primary);
        }
        /* 重点关注名单 */
        .watch-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .watch-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 16px;
            background: #f8fafc;
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
            flex-wrap: wrap;
            border-left: 4px solid #e67e22;
        }
        .watch-item:hover {
            background: #fdebd0;
            transform: translateX(2px);
        }
        .watch-item .watch-name {
            font-weight: 600;
            color: var(--primary);
            min-width: 60px;
        }
        .watch-item .watch-avg {
            font-size: 13px;
            color: var(--text-light);
        }
        .watch-item .watch-weak {
            font-size: 13px;
            color: #e67e22;
            font-weight: 500;
        }
        .watch-item .watch-arrow {
            margin-left: auto;
            font-size: 12px;
            color: var(--text-light);
        }
        /* 过程分析 - 新tab样式（左侧栏改成可收起，跟"讨论互动"页用同一套思路：
           从 grid 改成 flex，两栏靠 flex 而不是 grid-template-columns 分配宽度，
           这样才能给左侧栏加一个平滑的收起/展开过渡） */
        .process-layout {
            display: flex;
            gap: 24px;
            height: calc(100vh - 160px);
            min-height: 500px;
        }
        .process-sidebar {
            flex: 0 0 260px;
            width: 260px;
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px 16px;
            overflow-y: auto;
            overflow-x: hidden;
            opacity: 1;
            transition: flex-basis 0.22s ease, width 0.22s ease, padding 0.22s ease, opacity 0.18s ease;
        }
        .process-layout.sidebar-collapsed .process-sidebar {
            flex-basis: 0;
            width: 0;
            padding-left: 0;
            padding-right: 0;
            opacity: 0;
            pointer-events: none;
            box-shadow: none;
        }
        .process-sidebar-toggle {
            flex-shrink: 0;
            align-self: flex-start;
            margin-top: 20px;
            width: 22px;
            height: 46px;
            border-radius: 8px;
            background: var(--card);
            box-shadow: var(--shadow);
            border: 1px solid #edf2f7;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-light);
            font-size: 15px;
            font-family: inherit;
            padding: 0;
            transition: var(--transition);
        }
        .process-sidebar-toggle:hover {
            background: #f1f4f9;
            color: var(--primary);
            border-color: #dfe6ee;
        }
        .pv-mode-switch {
            display: flex;
            gap: 6px;
            margin-bottom: 16px;
        }
        .pv-mode-switch button {
            flex: 1;
            padding: 8px 6px;
            font-size: 12.5px;
            font-family: inherit;
            font-weight: 500;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: var(--text-light);
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
        }
        .pv-mode-switch button.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }
        .pv-mode-switch button:hover:not(.active) {
            background: var(--bg);
        }
        .process-sidebar .p-title {
            font-weight: 600;
            font-size: 15px;
            color: var(--text-light);
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid #edf2f7;
        }
        .process-sidebar .p-student {
            padding: 10px 14px;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            margin-bottom: 2px;
        }
        .process-sidebar .p-student:hover {
            background: var(--bg);
        }
        .process-sidebar .p-student.active {
            background: #eef2f9;
            color: var(--primary);
            font-weight: 500;
        }
        .process-sidebar .p-student .dot-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            flex-shrink: 0;
        }
        /* "按学生查看"需要同时选学生、选任务时，侧栏改成左右两栏（学生姓名 | 任务清单），
           而不是像之前那样把任务清单堆在学生列表下面、要多滚一层才看到。
           两栏并排比默认 260px 更挤，所以侧栏本身在这种情况下会加宽（见 .process-sidebar.two-col）。 */
        .process-sidebar-cols {
            display: flex;
            gap: 10px;
        }
        .process-sidebar-col {
            flex: 1;
            min-width: 0;
        }
        .process-sidebar-col .p-title {
            font-size: 13px;
            margin-bottom: 10px;
            padding-bottom: 8px;
        }
        .process-sidebar-col .p-student {
            padding: 8px 10px;
            font-size: 13px;
            gap: 8px;
        }
        .process-sidebar.two-col {
            flex-basis: 380px;
            width: 380px;
        }
        .process-main {
            flex: 1;
            min-width: 0;
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px 24px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .process-main .pm-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 12px;
            gap: 8px;
        }
        .process-main .pm-title {
            font-weight: 600;
            font-size: 17px;
            color: var(--text);
        }
        .process-main .pm-sub {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 16px;
        }
        .process-tabs {
            display: flex;
            gap: 4px;
            border-bottom: 1px solid #edf2f7;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
        .process-tabs button {
            padding: 8px 20px;
            background: transparent;
            border: none;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 3px solid transparent;
            font-family: inherit;
        }
        .process-tabs button.active {
            color: var(--primary);
            border-bottom-color: var(--accent);
            background: #fafbfc;
            border-radius: 8px 8px 0 0;
        }
        .process-tab-content {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            display: none;
            flex-direction: column;
        }
        .process-tab-content.active {
            display: flex;
        }
        /* 行为分析卡片 */
        .behavior-type-card {
            background: #f8fafc;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 16px;
            border-left: 6px solid var(--primary);
        }
        .behavior-type-card .b-title {
            font-weight: 700;
            font-size: 18px;
            color: var(--primary);
        }
        .behavior-type-card .b-desc {
            font-size: 14px;
            color: var(--text-light);
            margin: 4px 0 8px;
        }
        .behavior-type-card .b-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .behavior-type-card .b-tags span {
            font-size: 12px;
            background: var(--bg);
            padding: 2px 12px;
            border-radius: 12px;
            color: var(--text-light);
        }
        .behavior-type-card .b-suggestion {
            margin-top: 10px;
            padding: 10px 14px;
            background: #eef6f3;
            border-radius: 8px;
            font-size: 14px;
            border-left: 3px solid var(--secondary);
        }
        .behavior-stat {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 10px;
            margin: 12px 0;
        }
        .behavior-stat .stat-item {
            background: var(--card);
            border-radius: 10px;
            padding: 12px 14px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            text-align: center;
            border: 1px solid #edf2f7;
        }
        .behavior-stat .stat-item .num {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
        }
        .behavior-stat .stat-item .label {
            font-size: 12px;
            color: var(--text-light);
        }
        /* 行为分析 · 判断依据 */
        .behavior-evidence {
            background: #fbf8f0;
            border: 1px solid var(--accent-light);
            border-radius: 10px;
            padding: 10px 16px;
            font-size: 13px;
            line-height: 1.9;
            color: var(--text);
        }
        /* 行为分析 · 雷达图 + 行为组合分布 两栏 */
        .behavior-charts-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin: 14px 0;
        }
        .behavior-chart-card {
            background: #f8fafc;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
        }
        .behavior-chart-card .bc-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .behavior-chart-card .bc-sub {
            font-size: 11px;
            font-weight: 400;
            color: var(--text-light);
        }
        .behavior-comp-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            justify-content: center;
            flex: 1;
        }
        .behavior-comp-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .behavior-comp-row .bc-label {
            font-size: 12px;
            color: var(--text-light);
            width: 74px;
            flex-shrink: 0;
        }
        .behavior-comp-row .bc-track {
            flex: 1;
            height: 8px;
            background: #edf2f7;
            border-radius: 4px;
            overflow: hidden;
        }
        .behavior-comp-row .bc-fill {
            display: block;
            height: 100%;
            border-radius: 4px;
            min-width: 2px;
            transition: var(--transition);
        }
        .behavior-comp-row .bc-val {
            font-size: 12px;
            font-weight: 600;
            color: var(--text);
            width: 20px;
            text-align: right;
            flex-shrink: 0;
        }
        /* 行为分析 · 时间轴 */
        .behavior-timeline {
            max-height: 260px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding-right: 4px;
        }
        .behavior-timeline .bt-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 7px 12px;
            background: #f8fafc;
            border-left: 3px solid #ccc;
            border-radius: 6px;
            font-size: 13px;
            flex-wrap: wrap;
        }
        .behavior-timeline .bt-time {
            font-size: 11px;
            color: var(--text-light);
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }
        .behavior-timeline .bt-desc {
            color: var(--text);
            flex: 1;
            min-width: 120px;
        }
        .behavior-timeline .bt-task {
            font-size: 11px;
            color: var(--text-light);
            background: var(--bg);
            padding: 1px 8px;
            border-radius: 10px;
            flex-shrink: 0;
        }
        /* 行为分析 · 时间轴可视化条（序列色带） */
        .behavior-timeline-viz {
            margin-bottom: 14px;
            padding: 12px 14px;
            background: #f8fafc;
            border-radius: 10px;
        }
        .btv-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 8px;
        }
        .btv-header .btv-duration {
            font-weight: 600;
            color: var(--primary);
        }
        .btv-track {
            position: relative;
            height: 30px;
            background: #eef1f6;
            border-radius: 6px;
            overflow: visible;
        }
        .btv-track .btv-dot {
            position: absolute;
            top: 3px;
            width: 6px;
            height: 24px;
            border-radius: 3px;
            transform: translateX(-50%);
            cursor: pointer;
            box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
            transition: var(--transition);
        }
        .btv-track .btv-dot:hover {
            transform: translateX(-50%) scaleY(1.15);
            box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
        }
        .btv-axis {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--text-light);
            margin-top: 4px;
            font-variant-numeric: tabular-nums;
        }
        .btv-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 12px;
            margin-top: 10px;
        }
        .btv-legend .btv-legend-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            color: var(--text-light);
        }
        .btv-legend .btv-legend-swatch {
            width: 9px;
            height: 9px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        /* 群体诊断 · 班级行为类型分布 */
        .behavior-dist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 14px;
            margin-bottom: 12px;
        }
        .behavior-dist-card {
            background: #f8fafc;
            border-radius: 12px;
            border-top: 4px solid #ccc;
            padding: 14px 16px;
        }
        .behavior-dist-card .bd-count {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.1;
        }
        .behavior-dist-card .bd-type {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            margin: 4px 0 8px;
        }
        .behavior-dist-card .bd-names {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .behavior-dist-card .bd-chip {
            font-size: 12px;
            background: #fff;
            border: 1px solid #e2e8f0;
            padding: 2px 10px;
            border-radius: 12px;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
        }
        .behavior-dist-card .bd-chip:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }
        /* 批改答案表单 */
        .grading-card {
            background: #f8fafc;
            border-radius: 12px;
            padding: 14px 18px;
            margin-bottom: 14px;
            border-left: 4px solid #95a5a6;
        }
        .grading-card-head {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 6px;
        }
        .grading-stem {
            font-size: 13px;
            color: var(--text-light);
            margin: 4px 0 8px;
        }
        .grading-answer {
            font-size: 14px;
            background: #fff;
            padding: 10px 14px;
            border-radius: 8px;
            border: 1px solid #edf2f7;
        }
        .grading-form {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px dashed #e2e8f0;
        }
        .grading-form .gf-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }
        .grading-form .gf-row-comment {
            align-items: flex-start;
        }
        .grading-form .gf-row label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-light);
            min-width: 32px;
        }
        .grading-form input[type="number"] {
            width: 70px;
            padding: 6px 10px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            font-weight: 700;
            color: var(--primary);
        }
        .grading-form .gf-hint {
            font-size: 12px;
            color: var(--text-light);
        }
        .grading-form textarea {
            flex: 1;
            min-width: 200px;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 13px;
            font-family: inherit;
            resize: vertical;
            min-height: 56px;
        }
        .grading-form input[type="number"]:focus,
        .grading-form textarea:focus {
            border-color: var(--primary-light);
            outline: none;
            box-shadow: 0 0 0 3px rgba(44, 74, 122, 0.06);
        }
        .gf-actions {
            display: flex;
            gap: 8px;
            margin-top: 8px;
            flex-wrap: wrap;
        }
        .gf-actions button {
            padding: 6px 18px;
            border-radius: 20px;
            border: none;
            font-size: 13px;
            cursor: pointer;
            font-family: inherit;
            transition: var(--transition);
        }
        .gf-ai-btn {
            background: #eef2f9;
            color: var(--primary);
        }
        .gf-ai-btn:hover {
            background: #e0e7f3;
        }
        .gf-save-btn {
            background: var(--secondary);
            color: #fff;
        }
        .gf-save-btn:hover {
            background: #1e4a3a;
        }
        /* 标记筛选 */
        .mark-filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        .mark-filter-group button {
            padding: 4px 16px;
            border-radius: 20px;
            border: 1px solid #e2e8f0;
            background: #fff;
            font-size: 13px;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }
        .mark-filter-group button.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .mark-filter-group button:hover:not(.active) {
            background: var(--bg);
        }
        .mark-filter-group .mf-count {
            display: inline-block;
            margin-left: 4px;
            font-size: 11px;
            opacity: 0.75;
        }
        .mark-card {
            background: #fff;
            border: 1px solid #edf2f7;
            border-left-width: 4px;
            border-left-style: solid;
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 10px;
        }
        .mark-card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
        }
        .mark-card .mark-tag {
            font-size: 12px;
            padding: 2px 12px;
            border-radius: 12px;
            font-weight: 600;
        }
        .mark-card .mark-source {
            font-size: 12px;
            color: var(--text-light);
            white-space: nowrap;
        }
        .mark-quote {
            font-size: 14px;
            line-height: 1.7;
            color: var(--text);
            font-style: italic;
            padding: 8px 12px;
            background: #f8fafc;
            border-radius: 8px;
        }
        .mark-quote mark {
            font-style: normal;
            font-weight: 700;
            padding: 1px 3px;
            border-radius: 3px;
            color: var(--text);
        }
        .mark-quote .mq-context {
            color: var(--text-light);
            font-style: normal;
        }
        .mark-loc {
            font-size: 12px;
            color: var(--text-light);
            margin-top: 6px;
        }
        .mark-extra {
            font-size: 13px;
            color: var(--text);
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px dashed #edf2f7;
        }
        /* 比例调整滑块 */
        .size-control {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 4px 0;
            font-size: 12px;
            color: var(--text-light);
        }
        .size-control input[type="range"] {
            width: 100px;
            accent-color: var(--primary);
            cursor: pointer;
        }
        .size-control .val {
            min-width: 30px;
            text-align: center;
            font-weight: 600;
            color: var(--primary);
        }
        .empty-state {
            color: var(--text-light);
            font-size: 14px;
            text-align: center;
            padding: 40px 0;
        }
        /* 过程分析 · 全班整体查看（新增） */
        .cav-section-title {
            font-weight: 600;
            font-size: 14.5px;
            color: var(--text);
            margin: 22px 0 12px;
            padding-top: 4px;
            border-top: 1px solid #edf2f7;
        }
        .cav-section-title:first-child {
            margin-top: 0;
            padding-top: 0;
            border-top: none;
        }
        .cav-question-coverage {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .cav-qc-item {
            background: #f8fafc;
            border-radius: 10px;
            padding: 10px 14px;
            font-size: 13px;
        }
        .cav-qc-head {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 4px;
        }
        .cav-qc-body {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text);
            flex-wrap: wrap;
        }
        .cav-qc-bar-wrap {
            flex: 1;
            min-width: 80px;
            max-width: 200px;
            height: 8px;
            background: #e8edf3;
            border-radius: 4px;
            overflow: hidden;
            display: inline-block;
        }
        .cav-qc-bar {
            display: block;
            height: 100%;
            border-radius: 4px;
            transition: var(--transition);
        }
        .cav-article {
            background: #fafbfc;
            border-radius: 12px;
            padding: 18px 22px;
            border: 1px solid #edf2f7;
        }
        .cav-sent {
            transition: var(--transition);
            border-radius: 3px;
            padding: 1px 0;
        }
        .cav-sent-hot {
            cursor: pointer;
        }
        .cav-sent-hot:hover {
            outline: 2px solid var(--accent);
            outline-offset: 1px;
        }
        .cav-sent-key {
            /* 星标句底部改用⭐ + 加粗呈现，不再用box-shadow画下划线——
               这条位置现在留给下方"热度关注度色条"（由JS按人数动态内联设置），
               两者叠加在一起容易互相盖掉，分开后各自都清晰可辨 */
            font-weight: 700;
        }
        /* 星标旁的题号小标：解决"看得出是关键句，但看不出对应第几题"的问题——
           跟在⭐后面的小号数字标签，字号只比正文略小，不额外抢视觉 */
        .cav-star-tag {
            white-space: nowrap;
        }
        .cav-star-qnum {
            font-size: 10.5px;
            font-weight: 700;
            color: var(--accent-light);
            background: var(--primary);
            border-radius: 4px;
            padding: 0 3px;
            margin-left: 1px;
        }
        /* 人数徽标：原先用 var(--primary) 深蓝底 + sup 标签，在暖色热度背景上显得突兀，
           且 sup 自带的上标偏移与我们手动设置的偏移叠加，导致徽标"悬"得很高很明显。
           改为 span 标签 + 手动小幅上移（不再叠加两层"上标"），配色也换成与热度色系更呼应的
           金色（--accent），体积更小、更贴合句子本身，只在需要时提示人数，不抢正文视觉。 */
        .cav-heat-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 14px;
            height: 14px;
            padding: 0 3px;
            margin-left: 3px;
            border-radius: 7px;
            background: var(--accent);
            color: var(--primary);
            font-size: 9.5px;
            font-weight: 800;
            position: relative;
            top: -3px;
            line-height: 14px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.12);
        }
        /* 全班关注度 Top 排行——用条形图把最受关注的几句话单独列出来，
           作为热力图颜色深浅之外的另一种呈现方式，一眼就能看出排名，无需逐句辨色 */
        .cav-top-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .cav-top-item {
            background: #f8fafc;
            border: 1px solid #edf2f7;
            border-radius: 10px;
            padding: 10px 14px;
            cursor: pointer;
            transition: var(--transition);
        }
        .cav-top-item:hover {
            border-color: var(--accent);
            background: #fff8ef;
        }
        .cav-top-text {
            font-size: 13.5px;
            color: var(--text);
            line-height: 1.6;
            margin-bottom: 6px;
            font-family: "STSong", "SimSun", "宋体", serif;
        }
        .cav-top-bar-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .cav-top-bar-wrap {
            flex: 1;
            height: 8px;
            background: #e8edf3;
            border-radius: 4px;
            overflow: hidden;
        }
        .cav-top-bar {
            display: block;
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(90deg, #f2b04a, #c85a0a);
        }
        .cav-top-count {
            font-size: 12px;
            color: var(--text-light);
            white-space: nowrap;
            font-weight: 600;
        }
        .cav-detail-panel {
            margin-top: 12px;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-left: 4px solid var(--accent);
            border-radius: 10px;
            padding: 14px 18px;
        }
        .cav-detail-quote {
            font-size: 14px;
            color: var(--text);
            font-style: normal;
            font-family: "STSong", "SimSun", "宋体", serif;
            margin-bottom: 8px;
            line-height: 1.7;
        }
        .cav-detail-sub {
            font-size: 12.5px;
            color: var(--text-light);
            margin-bottom: 10px;
        }
        .cav-detail-students {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .cav-detail-stu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 13px;
            padding: 6px 0;
            border-bottom: 1px dashed #edf2f7;
        }
        .cav-detail-stu-item:last-child {
            border-bottom: none;
        }
        .cav-detail-stu-name {
            font-weight: 600;
            color: var(--text);
        }
        .cav-detail-stu-note {
            color: var(--text-light);
            font-size: 12.5px;
        }
        .cav-offtrack-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .cav-offtrack-item {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
            background: #fff8f0;
            border: 1px solid #fce8cc;
            border-radius: 10px;
            padding: 10px 16px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 13px;
        }
        .cav-offtrack-item:hover {
            background: #fef1de;
            border-color: var(--accent);
        }
        .cav-offtrack-name {
            font-weight: 700;
            color: var(--primary);
        }
        .cav-offtrack-desc {
            color: var(--text-light);
            flex: 1;
            min-width: 200px;
        }
        .cav-offtrack-arrow {
            color: var(--accent);
            font-weight: 600;
            white-space: nowrap;
        }
        /* 逐题关键句覆盖卡片扩展：题干 + 参考答案/评分要点 + AI学情速览 + 查看全部作答（新增）
           目的：教师不用再切到"批改答案"tab来回核对题目内容，这里直接把题目、参考答案、
           全班作答情况一次性铺开 */
        .cav-qc-item {
            background: #f8fafc;
            border-radius: 12px;
            padding: 14px 16px 16px;
            font-size: 13px;
        }
        .cav-qc-head-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }
        .cav-qc-head {
            font-weight: 700;
            color: var(--primary);
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 2px 9px;
            font-size: 12.5px;
        }
        .cav-qc-ability {
            color: var(--text-light);
            font-size: 12px;
        }
        .cav-qc-fullscore {
            margin-left: auto;
            color: var(--text-light);
            font-size: 12px;
            white-space: nowrap;
        }
        .cav-qc-stem {
            color: var(--text);
            font-size: 13.5px;
            line-height: 1.7;
            margin-bottom: 8px;
            font-family: "STSong", "SimSun", "宋体", serif;
        }
        .cav-qc-ref {
            background: #fff;
            border: 1px solid #edf2f7;
            border-radius: 8px;
            padding: 8px 12px;
            margin-bottom: 10px;
        }
        .cav-qc-ref-label {
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-light);
            margin-bottom: 4px;
        }
        .cav-qc-criteria-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .cav-qc-criteria-list li {
            font-size: 12.5px;
            color: var(--text);
            line-height: 1.6;
        }
        .cav-qc-criteria-score {
            display: inline-block;
            min-width: 32px;
            font-weight: 700;
            color: var(--accent);
            margin-right: 4px;
        }
        .cav-qc-options {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .cav-qc-opt {
            font-size: 12.5px;
            color: var(--text-light);
            padding: 2px 0;
        }
        .cav-qc-opt.correct {
            color: #27ae60;
            font-weight: 700;
        }
        .cav-qc-cover-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            color: var(--text);
            margin-bottom: 10px;
        }
        .cav-ai-summary {
            background: #fff8ef;
            border: 1px solid #f0dfb8;
            border-radius: 8px;
            padding: 10px 12px;
            margin-bottom: 10px;
        }
        .cav-ai-summary-title {
            font-size: 12px;
            font-weight: 700;
            color: #a8760a;
            margin-bottom: 4px;
        }
        .cav-ai-summary-body {
            font-size: 12.5px;
            color: var(--text);
            line-height: 1.7;
        }
        .cav-ai-deep-footer {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px dashed #f0dfb8;
        }
        .cav-ai-deep-btn {
            border: 1px solid #d68910;
            background: #fff;
            color: #a8760a;
            border-radius: 14px;
            padding: 4px 12px;
            font-size: 11.5px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
        }
        .cav-ai-deep-btn:hover {
            background: #fdf1d6;
        }
        .cav-ai-deep-loading {
            font-size: 11.5px;
            color: #a8760a;
        }
        .cav-ai-deep-error {
            font-size: 11.5px;
            color: #e74c3c;
            margin-right: 8px;
        }
        .cav-qc-viewall-btn {
            border: 1px solid var(--primary);
            background: #fff;
            color: var(--primary);
            font-size: 12.5px;
            font-weight: 600;
            padding: 6px 14px;
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }
        .cav-qc-viewall-btn:hover {
            background: var(--primary);
            color: #fff;
        }
        /* "查看全部作答"弹窗（新增）：复用全局 .modal-overlay/.modal-box，
           这里只覆盖标题图标（避免和"编辑"语义的✏️叠在一起）并补充列表样式 */
        #classAnswersModal .modal-header h2::before {
            content: none;
        }
        .caa-stem {
            font-size: 14px;
            color: var(--text);
            line-height: 1.7;
            background: #f8fafc;
            border-radius: 10px;
            padding: 10px 14px;
            margin-bottom: 16px;
            font-family: "STSong", "SimSun", "宋体", serif;
        }
        .caa-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 55vh;
            overflow-y: auto;
        }
        .caa-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 10px 12px;
            background: #f8fafc;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            border: 1px solid transparent;
            transition: var(--transition);
        }
        .caa-row:hover {
            background: #eef2f9;
            border-color: var(--accent-light);
        }
        .caa-hint {
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 10px;
        }
        .caa-row-empty {
            opacity: 0.65;
        }
        .caa-name {
            font-weight: 700;
            color: var(--primary);
            min-width: 56px;
        }
        .caa-answer {
            flex: 1;
            min-width: 160px;
            color: var(--text);
            line-height: 1.6;
        }
        .caa-score {
            white-space: nowrap;
            font-weight: 600;
            color: var(--text-light);
        }
        .caa-status {
            color: var(--text-light);
        }
        /* 响应式 */
        @media (max-width: 1024px) {
            .reading-layout {
                flex-direction: column;
                height: auto;
                min-height: auto;
            }
            .left-panel,
            .right-panel {
                min-height: 300px;
                flex: none !important;
                width: 100%;
            }
            .resize-handle {
                display: none;
            }
            .report-grid,
            .group-layout {
                grid-template-columns: 1fr;
                height: auto;
                min-height: auto;
            }
            .process-layout {
                flex-direction: column;
                height: auto;
                min-height: auto;
            }
            .behavior-charts-row {
                grid-template-columns: 1fr;
            }
            .app-body {
                padding: 16px;
            }
            .teacher-scope-bar {
                padding: 10px 16px;
            }
            .app-header {
                padding: 0 16px;
                flex-wrap: wrap;
                height: auto;
                padding-top: 12px;
                padding-bottom: 12px;
                gap: 8px;
            }
            .app-header .nav {
                flex-wrap: wrap;
                overflow: visible;
                gap: 2px;
            }
            .app-header .nav button {
                white-space: normal;
                padding: 6px 14px;
                font-size: 13px;
            }
            .login-grid {
                grid-template-columns: 1fr;
            }
            .login-container {
                padding: 32px 20px;
            }
            .process-sidebar,
            .process-sidebar.two-col {
                max-height: 200px;
                flex-basis: auto;
                width: 100%;
            }
            .process-sidebar-cols {
                flex-direction: column;
                gap: 0;
            }
            .process-sidebar-toggle {
                display: none; /* 移动端已经改成上下堆叠，收起栏的意义不大，直接常驻显示更省心 */
            }
            #floatingToolbar {
                transform: translateX(0);
                left: 50% !important;
                padding: 4px 8px;
                font-size: 11px;
                flex-wrap: wrap;
                max-width: 90vw;
            }
            #floatingToolbar button {
                font-size: 11px;
                padding: 3px 6px;
            }
            .modal-overlay .modal-box {
                padding: 24px 20px;
            }
        }
        @media (max-width: 480px) {
            .login-logo h1 {
                font-size: 24px;
            }
            .app-header .brand {
                font-size: 16px;
            }
            .app-header .user-info .logout-btn {
                padding: 4px 12px;
                font-size: 12px;
            }
            .chat-input input {
                padding: 10px 14px;
                font-size: 13px;
            }
            .chat-input button {
                padding: 10px 18px;
                font-size: 13px;
            }
            .task-form .form-row {
                flex-direction: column;
                gap: 12px;
            }
            .task-item {
                flex-direction: column;
                align-items: stretch;
            }
            .task-item .actions {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
            }
            .task-item .actions button {
                margin-left: 0;
                flex: 1;
            }
            .process-main {
                padding: 16px;
            }
            .right-tabs button {
                font-size: 12px;
                padding: 10px 6px;
            }
        }
        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: #c4c9d4;
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #a8b0be;
        }

        /* ================================================================
           平台管理面板 —— org-patch.js 用到的样式
           ----------------------------------------------------------------
           这个板块此前完全没有专属样式（纯浏览器默认外观）。这里沿用全局
           已经定下的配色变量（--primary 深靛蓝 / --accent 暖金 / --text-light
           灰蓝）与既有的 tab、pill、卡片圆角阴影约定（对照 .process-tabs、
           .filter-pill、.chat-input input 的写法），不引入新的调色板——
           让这个板块看起来和其余页面出自同一双手，而不是另外拼上去的。
           ================================================================ */

        /* ---- 页头 ---- */
        .org-page-head {
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid #edf2f7;
        }
        .org-page-head h2 {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 6px;
        }
        .org-page-head p {
            font-size: 13.5px;
            color: var(--text-light);
            line-height: 1.6;
        }

        /* ---- 顶部 Tab：沿用 .process-tabs 的下划线切换手法 ---- */
        .org-tabs {
            display: flex;
            gap: 4px;
            border-bottom: 1px solid #edf2f7;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .org-tabs button {
            padding: 10px 16px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            font-family: inherit;
            transition: var(--transition);
            white-space: nowrap;
        }
        .org-tabs button:hover {
            color: var(--primary);
        }
        .org-tabs button.active {
            color: var(--primary);
            border-bottom-color: var(--accent);
            background: #fafbfc;
            border-radius: 8px 8px 0 0;
        }

        /* ---- 工具条：搜索框 + 操作按钮 + 计数 ---- */
        .org-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .org-toolbar-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .org-toolbar-left input[type="text"],
        .org-toolbar-left select {
            padding: 8px 14px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 13.5px;
            font-family: inherit;
            background: #fafbfc;
            color: var(--text);
            outline: none;
            transition: var(--transition);
            min-width: 200px;
        }
        .org-toolbar-left input[type="text"]:focus,
        .org-toolbar-left select:focus {
            border-color: var(--accent);
            background: #fff;
        }
        .ot-label {
            font-size: 13px;
            color: var(--text-light);
            font-weight: 600;
        }
        .ot-count {
            font-size: 13px;
            color: var(--text-light);
            white-space: nowrap;
        }

        /* ---- 按钮：org-mini 是紧凑的次要操作，org-btn 稍大一号，
           两者视觉分量接近——这个板块里"取消/关闭"和"查询/批量添加"
           用的是同一个 org-btn class，没有强调"这个更重要"的语义，
           所以刻意不做成醒目的强调色按钮，保持克制、中性。 ---- */
        .org-mini, .org-btn {
            border: 1.5px solid #e2e8f0;
            background: #fff;
            color: var(--text-light);
            font-family: inherit;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
        }
        .org-mini {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12.5px;
        }
        .org-btn {
            padding: 8px 18px;
            border-radius: 10px;
            font-size: 13.5px;
        }
        .org-mini:hover, .org-btn:hover {
            border-color: var(--accent-light);
            color: var(--primary);
        }
        .org-mini:disabled, .org-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .org-mini:disabled:hover, .org-btn:disabled:hover {
            border-color: #e2e8f0;
            color: var(--text-light);
        }

        /* ---- 翻页控件 ---- */
        .org-pager {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid #edf2f7;
        }

        /* ---- 表格：这个应用此前没有任何表格，这里是第一次引入，
           风格上贴着卡片（圆角+阴影）走，表头用深靛蓝实色区分层级 ---- */
        .org-table-wrap {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            overflow-x: auto;
        }
        .org-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13.5px;
        }
        .org-table thead th {
            background: var(--primary);
            color: #fff;
            text-align: left;
            padding: 12px 16px;
            font-weight: 600;
            font-size: 12.5px;
            white-space: nowrap;
        }
        .org-table tbody td {
            padding: 11px 16px;
            border-bottom: 1px solid #f0f2f6;
            color: var(--text);
            vertical-align: top;
        }
        .org-table tbody tr:last-child td {
            border-bottom: none;
        }
        .org-table tbody tr:hover {
            background: #fafbfc;
        }
        .log-text {
            max-width: 420px;
            line-height: 1.6;
        }

        /* ---- 卡片：用于分组展示，比如"划线统计"的明细表格外层 ---- */
        .org-card {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px;
            margin-bottom: 16px;
        }
        .org-card-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 14px;
            display: flex;
            align-items: baseline;
            gap: 8px;
            flex-wrap: wrap;
        }
        .org-card-title span {
            font-size: 12.5px;
            font-weight: 500;
            color: var(--text-light);
        }
        .org-card-foot {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid #edf2f7;
        }

        /* ---- 统计数字卡片（各班标注总量等） ---- */
        .stat-row {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .stat-box {
            flex: 1;
            min-width: 140px;
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 18px 20px;
            text-align: center;
        }
        .sb-num {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.2;
        }
        .sb-label {
            font-size: 12.5px;
            color: var(--text-light);
            margin-top: 6px;
            line-height: 1.5;
        }
        .sb-label em {
            font-style: normal;
            color: var(--accent);
            font-weight: 600;
        }

        /* ---- 空状态 / 提示条 ---- */
        .org-empty {
            color: var(--text-light);
            font-size: 14px;
            text-align: center;
            padding: 40px 0;
        }
        .org-note {
            font-size: 13px;
            color: var(--text-light);
            background: #f7f8fb;
            border-left: 3px solid var(--accent-light);
            padding: 12px 16px;
            border-radius: 0 10px 10px 0;
            line-height: 1.7;
            margin-bottom: 16px;
        }

        /* ---- 对话日志里的角色标签 ---- */
        .log-role {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }
        .log-role.user {
            background: var(--accent-light);
            color: #8a6d1f;
        }
        .log-role.ai {
            background: #e3e9f5;
            color: var(--primary);
        }
        .log-tag {
            display: inline-block;
            margin-left: 6px;
            padding: 1px 8px;
            border-radius: 10px;
            background: #f0f2f6;
            color: var(--text-light);
            font-size: 11px;
        }

        @media (max-width: 1024px) {
            .org-toolbar-left input[type="text"],
            .org-toolbar-left select {
                min-width: 160px;
            }
        }

        @media (max-width: 480px) {
            .org-page-head h2 { font-size: 18px; }
            .org-toolbar { flex-direction: column; align-items: stretch; }
            .org-toolbar-left { flex-direction: column; align-items: stretch; }
            .org-toolbar-left input[type="text"],
            .org-toolbar-left select { min-width: 0; width: 100%; }
            .stat-box { min-width: 100%; }
            .org-table { font-size: 12.5px; }
            .org-table thead th, .org-table tbody td { padding: 8px 10px; }
        }
