        /* ========== 设计令牌（游戏关卡风） ========== */
        :root {
            --sky-1: #AEE3F7;   /* 天空渐变浅 */
            --sky-2: #6FC3EA;   /* 天空渐变深 */
            --card: #FFF9F0;    /* 奶白卡片 */
            --ink: #4A3F35;     /* 主文字 */
            --ink-light: #93826F;
            --primary: #FFB800; --primary-dark: #E09E00;    /* 太阳黄主按钮 */
            --secondary: #4ECDC4; --secondary-dark: #35B0A7; /* 薄荷绿次按钮 */
            --danger: #FF6B6B; --danger-dark: #E85555;      /* 录音红 */
            --purple: #9B7EDE; --purple-dark: #7F63C7;      /* 葡萄紫 */
            --orange: #FF9F43;
            --star: #FFD93D;
            --green: #7ED491;
            --cream-border: #FFE1A8;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
            background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px 16px 96px;   /* 底部留出标签栏的位置 */
            color: var(--ink);
        }
        .container {
            width: 100%;
            max-width: 480px;
            background: rgba(255, 255, 255, 0.94);
            border-radius: 28px;
            padding: 24px 20px;
            box-shadow: 0 10px 0 rgba(74, 111, 135, 0.22), 0 24px 48px rgba(0, 0, 0, 0.15);
            margin-top: 12px;
            border: 4px solid #fff;
        }
        .logo {
            text-align: center;
            margin-bottom: 4px;
        }
        .logo-emoji {
            font-size: 64px;
            display: block;
            animation: bounce 2s infinite;
        }
        /* 登录页品牌区：圆形兔头 + 字标（与首页页头一致，米色底图裁圆角后不突兀，兔头带 bounce 悬浮动画） */
        .login-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
        }
        .login-brand-logo {
            width: 84px;
            height: 84px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #fff;
            box-shadow: 0 6px 16px rgba(70, 40, 120, 0.18);
            animation: bounce 2s infinite;
        }
        .login-brand-title {
            font-size: 40px;
            font-weight: 800;
            color: #2E7CB8;
            letter-spacing: 2px;
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        /* 首页页头：小圆形兔头 logo + 磨耳兔字标（横版 logo 在登录页用，功能页不弹跳） */
        .home-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 2px;
        }
        .home-brand-logo {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #fff;
            box-shadow: 0 3px 10px rgba(70, 40, 120, 0.2);
        }
        .home-brand-title {
            font-size: 26px;
            font-weight: 800;
            color: #2E7CB8;
        }
        /* 用户名旁的奖杯胶囊：登录后由 loadTodayStats 填充并显示，右上角常驻 */
        .trophy-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 8px 14px;
            background: linear-gradient(135deg, #FFD93D, #FFB800);
            border-radius: 999px;
            font-size: 15px;
            font-weight: 800;
            color: #7A5200;
            box-shadow: 0 2px 6px rgba(255, 184, 0, 0.35);
        }
        .subtitle {
            text-align: center;
            font-size: 14px;
            font-weight: 700;
            color: var(--ink-light);
            margin-bottom: 18px;
        }
        /* 顶部用户条：名字胶囊 + 设置/退出圆钮 */
        /* 用户栏：固定右上角，所有页面可用 */
        #userBar {
            position: fixed;
            top: 12px;
            right: 12px;
            z-index: 900;
            align-items: center;
            gap: 10px;
        }
        .user-chip {
            background: #FFF3D6;
            border-radius: 999px;
            padding: 8px 16px;
            font-weight: 800;
            color: #8A5A00;
            font-size: 15px;
            box-shadow: 0 3px 0 rgba(230, 184, 0, 0.35);
            cursor: pointer;
        }
        /* 「我的」入口头像：有头像时替代 👤 的小圆形头像（emoji 显隐由 JS 同步） */
        .user-chip-avatar {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            object-fit: cover;
            border: 1.5px solid #fff;
            box-shadow: 0 1px 3px rgba(0,0,0,.15);
            vertical-align: -7px;
            margin-right: 4px;
        }
        /* 底部标签栏 */
        .tab-bar {
            display: none;
            position: fixed;
            left: 0; right: 0; bottom: 0;
            z-index: 90;
            background: rgba(255, 255, 255, 0.97);
            box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
            padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
            justify-content: center;
            gap: 14px;
        }
        .tab-btn {
            flex: 0 1 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1px;
            border: none;
            background: transparent;
            font-size: 26px;
            padding: 6px 12px;
            border-radius: 18px;
            cursor: pointer;
            color: var(--ink-light);
            transition: background 0.15s;
        }
        .tab-btn span { font-size: 13px; font-weight: 800; }
        .tab-btn.active {
            background: #FFF3D6;
            color: var(--ink);
            box-shadow: inset 0 -4px 0 var(--primary);
        }
        /* 使用步骤：图标化三步 */
        .step-box {
            background: #EDF7FF;
            border-radius: 20px;
            padding: 14px 16px;
            margin-bottom: 18px;
            border: 3px solid #CBE7FA;
        }
        .step-box h3 {
            font-size: 16px;
            color: #2E7CB8;
            margin-bottom: 8px;
        }
        .step-rows { display: flex; flex-direction: column; gap: 6px; }
        .step-row {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 700;
            color: var(--ink);
        }
        .step-emoji {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 19px;
            box-shadow: 0 2px 0 rgba(46, 124, 184, 0.18);
            flex-shrink: 0;
        }
        /* 新用户演示体验卡（首页 stepBox 下方，total_courses==0 时显示） */
        .demo-entry {
            background: linear-gradient(135deg, #FFF6E8, #FFEEF3);
            border-radius: 20px;
            padding: 14px 16px;
            margin-bottom: 18px;
            border: 3px solid #FFD9A8;
            text-align: center;
        }
        .demo-entry-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
        .demo-entry-desc { font-size: 13px; color: var(--ink-light); line-height: 1.6; margin-bottom: 10px; }
        .demo-entry-btn { width: auto; padding: 8px 28px; }
        /* 演示体验手势强引导：竖排——👆在最上直指上方兔耳朵 logo，气泡文案在下方，不挡点击 */
        .vc-demo-hint { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -2px auto 0; pointer-events: none; }
        .vc-demo-hint-hand { font-size: 30px; line-height: 1; display: inline-block; animation: vcDemoHand 0.85s ease-in-out infinite; }
        .vc-demo-hint-text {
            background: var(--primary);
            color: var(--ink);
            font-size: 14px;
            font-weight: 800;
            border-radius: 999px;
            padding: 5px 12px;
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
        }
        @keyframes vcDemoHand {
            0%, 100% { transform: translateY(5px); }
            50% { transform: translateY(-5px); }
        }
        /* 句子页/成长页空状态引导卡 */
        .vc-empty-guide { text-align: center; padding: 28px 16px; }
        .vc-empty-emoji { font-size: 52px; margin-bottom: 10px; }
        .vc-empty-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
        .vc-empty-desc { font-size: 13px; color: var(--ink-light); line-height: 1.7; margin-bottom: 16px; }
        .vc-empty-btn { width: auto; padding: 10px 30px; }
        /* 新手任务清单：未完成行可点跳转，完成行置灰 */
        .guide-task { cursor: pointer; border-radius: 10px; padding: 3px 6px; margin: 0 -6px; }
        .guide-task:not(.done):hover { background: rgba(46, 124, 184, 0.08); }
        .guide-task.done { color: #9AA5B1; font-weight: 500; cursor: default; }
        /* 声音来源选择：麦克风(默认,不弹窗) / 屏幕声音(每次需授权) */
        .src-select {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        .src-btn {
            border: none;
            background: #F3EBDD;
            color: var(--ink-light);
            border-radius: 999px;
            padding: 8px 18px;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s;
        }
        .src-btn.active {
            background: var(--secondary);
            color: #fff;
            box-shadow: 0 3px 0 var(--secondary-dark);
        }
        .mic-area {
            text-align: center;
            margin: 20px 0;
            position: relative;
        }
        .mic-btn {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            /* 按钮面=圆形兔头品牌 mascot（rabbit-head.jpg），状态用外圈颜色表达：黄=待机 红=录音中 */
            background-image: url('/assets/brand/rabbit-head.jpg');
            background-size: cover;
            background-position: center;
            border: 6px solid #fff;
            cursor: pointer;
            transition: transform 0.1s;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        .mic-btn.idle {
            box-shadow: 0 8px 0 var(--primary-dark), 0 18px 32px rgba(224, 158, 0, 0.35), 0 0 0 5px var(--primary);
            animation: breathe 2.4s ease-in-out infinite;
        }
        @keyframes breathe {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .mic-btn.idle:active { transform: scale(0.95); animation: none; }
        .mic-btn.recording {
            box-shadow: 0 8px 0 var(--danger-dark), 0 0 0 5px var(--danger);
            animation: pulse 1.5s infinite;
        }
        /* 录音中右下角小白圆 ⏹️ 徽章：替代原按钮内 emoji，保留停止语义 */
        .mic-btn.recording::after {
            content: '⏹️';
            position: absolute;
            right: -4px;
            bottom: -4px;
            width: 46px;
            height: 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
        }
        @keyframes pulse {
            0% { box-shadow: 0 8px 0 var(--danger-dark), 0 0 0 5px var(--danger), 0 0 0 5px rgba(255, 107, 107, 0.45); }
            70% { box-shadow: 0 8px 0 var(--danger-dark), 0 0 0 5px var(--danger), 0 0 0 28px rgba(255, 107, 107, 0); }
            100% { box-shadow: 0 8px 0 var(--danger-dark), 0 0 0 5px var(--danger), 0 0 0 5px rgba(255, 107, 107, 0); }
        }
        .mic-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            animation: none;
        }
        .wave-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            height: 40px;
            margin-top: 14px;
            visibility: hidden;
        }
        .wave-container.active {
            visibility: visible;
        }
        .wave-bar {
            width: 7px;
            background: var(--danger);
            border-radius: 4px;
            animation: wave 0.8s ease-in-out infinite;
        }
        .wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
        .wave-bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
        .wave-bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
        .wave-bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
        .wave-bar:nth-child(5) { height: 24px; animation-delay: 0.15s; }
        @keyframes wave {
            0%, 100% { transform: scaleY(0.6); }
            50% { transform: scaleY(1.2); }
        }
        .status-text {
            text-align: center;
            font-size: 16px;
            font-weight: 700;
            color: var(--ink-light);
            margin-top: 10px;
            min-height: 24px;
        }
        .status-text.recording {
            color: var(--danger);
        }
        .timer {
            text-align: center;
            font-size: 30px;
            font-weight: 800;
            color: #2E7CB8;
            margin-top: 6px;
            font-variant-numeric: tabular-nums;
        }
        .result-area {
            display: none;
            margin-top: 20px;
            animation: slideUp 0.5s ease;
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .result-header {
            text-align: center;
            margin-bottom: 16px;
        }
        .result-header h2 {
            font-size: 22px;
            color: #2E7CB8;
        }
        .result-header p {
            font-size: 14px;
            font-weight: 700;
            color: var(--ink-light);
            margin-top: 4px;
        }
        .zh-speak-btn {
            border: none;
            background: #E8F7F5;
            border-radius: 50%;
            width: 34px;
            height: 34px;
            font-size: 15px;
            cursor: pointer;
            margin-left: 8px;
            vertical-align: middle;
            box-shadow: 0 2px 0 rgba(53, 176, 167, 0.35);
        }
        .zh-speak-btn:active {
            transform: translateY(2px);
            box-shadow: none;
        }
        .zh-speak-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            box-shadow: none;
        }
        /* 中文关"进考封答案"：遮罩期间的占位文案 */
        .zh-masked {
            color: var(--ink-light);
            font-size: 14px;
            font-style: italic;
        }
        .challenge-sentence-box {
            background: var(--card);
            border: 3px solid var(--cream-border);
            border-radius: 20px;
            padding: 18px;
            margin-bottom: 16px;
            text-align: center;
            box-shadow: 0 4px 0 rgba(230, 176, 92, 0.3);
        }
        .challenge-sentence-en {
            font-size: 21px;
            font-weight: 800;
            color: var(--ink);
            line-height: 1.5;
        }
        .challenge-sentence-zh {
            font-size: 15px;
            color: var(--ink-light);
            margin-top: 8px;
        }
        .challenge-tip {
            font-size: 15px;
            font-weight: 700;
            color: var(--ink-light);
            text-align: center;
            margin-bottom: 14px;
            line-height: 1.6;
        }
        /* 复习进度条里的「忘句」入口按钮（忘记 >0 时出现，点开忘句列表弹层） */
        .review-forgot-btn {
            border: none;
            background: #FDEBEC;
            color: #D9534F;
            font-size: 13px;
            font-weight: 700;
            border-radius: 999px;
            padding: 3px 10px;
            cursor: pointer;
        }
        /* 复习页实时计数条：页头下一行整宽展示（第几句/记住/忘句入口），窄屏不挤页头 */
        .review-stats-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin: -4px 0 12px;
            font-size: 14px;
            font-weight: 800;
            color: var(--purple-dark);
        }
        /* 复习闪卡翻面门禁的常驻提示：按钮 disabled 时 title 在触屏不弹，必须可见文案引导 */
        .review-flip-hint {
            margin-top: 10px;
            font-size: 14px;
            font-weight: 700;
            color: #B8860B;
            text-align: center;
        }
        .challenge-pass {
            text-align: center;
            font-size: 20px;
            font-weight: 800;
            color: #3E9E4D;
            margin: 14px 0;
            animation: pop 0.45s ease;
        }
        .challenge-count {
            text-align: center;
            font-size: 24px;
            font-weight: 800;
            color: var(--purple-dark);
            margin: 12px 0;
        }
        .read-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 6px;
        }
        .read-dot {
            font-size: 26px;
            filter: grayscale(1);
            opacity: 0.35;
        }
        .read-dot.lit {
            filter: none;
            opacity: 1;
        }
        .read-dot.just-lit {
            display: inline-block;
            animation: pop 0.4s ease;
        }
        .read-count-text {
            font-size: 17px;
        }
        .challenge-center {
            text-align: center;
            margin-top: 14px;
        }
        .challenge-center .btn {
            flex: none;
            min-width: 130px;
            margin: 4px;
        }
        /* 朗读练习页（分块子模块） */
        .chunk-row {
            background: var(--card);
            border: 3px solid var(--cream-border);
            border-radius: 18px;
            padding: 14px 16px;
            margin-bottom: 12px;
            box-shadow: 0 4px 0 rgba(230, 176, 92, 0.3);
        }
        .chunk-head {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        .chunk-badge {
            min-width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--purple);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 15px;
            flex: none;
        }
        .chunk-badge.done {
            background: var(--green);
        }
        .chunk-text {
            font-size: 20px;
            font-weight: 700;
            color: var(--ink);
        }
        .chunk-ops {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .chunk-ops .btn {
            flex: none;
            min-width: 0;
            padding: 8px 14px;
            font-size: 15px;
            margin: 0;
        }
        .chunk-ops .btn.chunk-refresh {
            padding: 8px 8px;
            opacity: 0.65;
        }
        .chunk-readcount {
            font-size: 13px;
            color: var(--ink-light);
            margin-left: auto;
        }
        /* 分块连读：正在播放的块高亮 */
        .chunk-row.playing {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.3), 0 4px 0 rgba(230, 176, 92, 0.3);
        }
        /* 子块：缩进展示在父块下方，视觉上表示"从这块拆出来的" */
        .chunk-subs {
            margin: 10px 0 2px 40px;
            padding-left: 12px;
            border-left: 3px dashed var(--cream-border);
        }
        .chunk-row.sub {
            padding: 10px 12px;
            margin-bottom: 8px;
            box-shadow: none;
            border-width: 2px;
        }
        .chunk-row.sub .chunk-text {
            font-size: 17px;
        }
        .chunk-row.sub .chunk-badge {
            min-width: 26px;
            height: 26px;
            font-size: 13px;
        }
        .chunk-mini-tip {
            font-size: 13px;
            color: var(--ink-light);
            margin-top: 8px;
        }
        /* 朗读练习：逐词诊断标色（红=漏读，橙=读错/含糊；点击听该词示范） */
        .assess-word {
            cursor: pointer;
            padding: 0 2px;
            border-radius: 6px;
        }
        .assess-word.missed {
            color: #e05252;
            font-weight: 800;
            text-decoration: underline wavy;
        }
        .assess-word.wrong,
        .assess-word.unclear {
            color: #e8930c;
            font-weight: 800;
        }
        .chunk-assess-tip {
            font-size: 15px;
            color: var(--ink-light);
            margin-top: 8px;
            text-align: center;
        }
        /* 情景对话：聊天气泡舞台 */
        .dlg-stage {
            margin-bottom: 14px;
        }
        .dlg-bubble-row {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 10px;
        }
        .dlg-bubble-row.mine {
            flex-direction: row-reverse;
        }
        .dlg-avatar {
            font-size: 30px;
            flex: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        .dlg-bubble {
            background: #fff;
            border-radius: 16px;
            padding: 10px 14px;
            max-width: 78%;
            box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        }
        .dlg-bubble-row.mine .dlg-bubble {
            background: #E9F8F6;
            border: 2px solid var(--secondary);
        }
        .dlg-bubble.current {
            border: 3px solid var(--primary);
        }
        .dlg-en {
            font-size: 18px;
            font-weight: 700;
            color: var(--ink);
        }
        .dlg-zh {
            font-size: 13px;
            color: var(--ink-light);
            margin-top: 2px;
        }
        .dlg-tip {
            font-size: 13px;
            color: var(--purple-dark);
            font-weight: 700;
            margin-top: 6px;
        }
        .dlg-entry-btn {
            border: none;
            background: var(--orange);
            color: #fff;
            border-radius: 999px;
            padding: 6px 14px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            vertical-align: middle;
            margin-left: 8px;
        }
        .dlg-mini {
            padding: 6px 12px !important;
            font-size: 13px !important;
            min-width: 0 !important;
        }
        .sentence-actions .chunk-entry {
            background: var(--secondary);   /* 薄荷绿，区别于紫色闯关按钮 */
        }
        /* 句子里可点击的学习单词：糖果药丸 */
        .hl-word {
            background: var(--star);
            color: #7A5200;
            font-weight: 800;
            border-radius: 999px;
            padding: 1px 8px;
            cursor: pointer;
            box-shadow: 0 2px 0 #E6B800;
            display: inline-block;
            transition: transform 0.12s;
        }
        /* 语速三档：胶囊分段控件 */
        .speed-select {
            display: inline-flex;
            gap: 4px;
            align-items: center;
            background: #F3EBDD;
            padding: 4px 8px;
            border-radius: 999px;
            flex-shrink: 0;
        }
        .speed-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 18px;
            opacity: 0.4;
            transition: all 0.15s;
        }
        .speed-btn.active {
            opacity: 1;
            background: #fff;
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
            transform: scale(1.08);
        }
        .hl-word:hover {
            transform: scale(1.08);
        }
        /* 普通词也可点（本地词库查词）：虚线下划线弱提示，不抢单词豆的戏份 */
        .tk-word {
            cursor: pointer;
            border-bottom: 2px dotted #C9BFAE;
        }
        .tk-word:hover { border-bottom-color: #8A5A00; }
        /* 词库查词卡 */
        .word-lemma { font-size: 13px; color: var(--ink-light); margin-top: 2px; }
        .word-phonetic { font-size: 15px; color: #7A5200; margin-top: 4px; }
        .word-pos { font-size: 12px; color: var(--ink-light); }
        /* 单词卡 📖 句子列表 / 句子卡片视图 */
        .word-sent-head {
            display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
        }
        .word-sent-back {
            width: 32px; height: 32px; border-radius: 50%; border: none; flex-shrink: 0;
            background: #F9F5EC; color: var(--ink); font-size: 16px; cursor: pointer;
        }
        .word-sent-title { font-size: 15px; font-weight: 700; color: var(--ink); }
        .word-sent-list {
            max-height: 320px; overflow-y: auto; text-align: left;
            display: flex; flex-direction: column; gap: 8px;
        }
        .word-sent-row {
            display: flex; align-items: center; gap: 8px;
            background: #F9F5EC; border-radius: 10px; padding: 8px 10px;
        }
        .word-sent-text { flex: 1; cursor: pointer; min-width: 0; }
        .word-sent-en { font-size: 14px; color: var(--ink); line-height: 1.4; }
        .word-sent-zh { font-size: 12px; color: var(--ink-light); margin-top: 2px; }
        .word-sent-open { width: 36px; height: 36px; font-size: 15px; flex-shrink: 0; }
        .word-popup.wide { width: min(430px, 92vw); }   /* 句子列表/句子卡片视图加宽（词卡默认 280px） */
        .word-sent-cardbox .sentence-card { margin: 0; }
        /* 我的单词表 */
        .word-list-controls { display: flex; gap: 8px; margin-bottom: 12px; }
        .word-list-controls input, .word-list-controls select {
            min-width: 0; border: 2px solid var(--cream-border); border-radius: 12px;
            background: var(--card); color: var(--ink); padding: 10px 12px; font-size: 14px;
        }
        .word-list-controls input { flex: 1; }
        .word-list-controls select { flex-shrink: 0; max-width: 132px; }
        .user-word-list { display: flex; flex-direction: column; gap: 10px; }
        .user-word-row {
            display: flex; align-items: center; gap: 8px; padding: 12px;
            background: var(--card); border: 2px solid var(--cream-border); border-radius: 14px;
        }
        .user-word-main {
            display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
            cursor: pointer; border-radius: 10px;
        }
        .user-word-main:focus-visible { outline: 3px solid #F2C14E; outline-offset: 3px; }
        .user-word-emoji { width: 36px; flex-shrink: 0; text-align: center; font-size: 28px; }
        .user-word-body { flex: 1; min-width: 0; }
        .user-word-title { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
        .user-word-text { font-size: 20px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
        .user-word-phonetic { font-size: 12px; color: var(--ink-light); overflow-wrap: anywhere; }
        .user-word-meaning {
            margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink);
            display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
        }
        .user-word-source { margin-top: 5px; font-size: 12px; color: var(--ink-light); }
        .user-word-actions { display: flex; gap: 5px; flex-shrink: 0; }
        .user-word-actions button { width: 38px; height: 38px; min-width: 0; padding: 0; flex: none; }
        /* 单词弹窗 */
        .word-popup-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(58, 45, 36, 0.5);
            z-index: 100;
            align-items: center;
            justify-content: center;
        }
        .word-popup-overlay.show {
            display: flex;
        }
        .word-popup {
            width: 280px;
            animation: popupIn 0.2s ease-out;
            position: relative;
            /* 内容超高兜底（📖 含词句子列表最多 100 行等）：整卡可滚，防内容顶出屏幕
               够不到关闭按钮。换音色弹窗走自己的 refresh-dialog 结构（按钮常驻），不受此影响 */
            max-height: 88vh;
            overflow-y: auto;
        }
        .word-popup-close {
            position: absolute;
            top: 8px;
            right: 10px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: rgba(0, 0, 0, 0.07);
            color: var(--ink-light);
            font-size: 17px;
            font-weight: 800;
            cursor: pointer;
            z-index: 1;
        }
        .word-popup-close:hover {
            background: rgba(0, 0, 0, 0.13);
        }
        /* 设置弹窗 */
        .settings-popup {
            background: var(--card);
            border: 3px solid var(--cream-border);
            border-radius: 24px;
            padding: 22px;
            width: 300px;
            position: relative;
            animation: popupIn 0.2s ease-out;
        }
        .settings-popup h3 { margin-bottom: 14px; color: var(--ink); font-size: 20px; }
        .settings-row { display: flex; align-items: center; margin-bottom: 12px; font-size: 15px; }
        .settings-row label { width: 72px; color: var(--ink-light); font-weight: 700; flex-shrink: 0; }
        .settings-row input, .settings-row select {
            flex: 1; min-width: 0; padding: 10px 12px; border: 3px solid #E8DECF; border-radius: 14px; font-size: 15px;
            background: #fff;
        }
        .settings-row input:focus, .settings-row select:focus { border-color: var(--primary); outline: none; }
        .settings-tip { font-size: 13px; color: var(--ink-light); margin-bottom: 14px; line-height: 1.5; }
        /* 续订横幅：首页顶部横条（额度=0 引导，微信内才有订阅钮） */
        .wx-resub-banner { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 12px;
            border-radius: 10px; background: #FFF7E6; border: 1px solid #FFD591; color: #874D00; font-size: 13px; }
        .wx-resub-banner .wx-resub-text { flex: 1; min-width: 0; }
        .wx-resub-close { flex: none; border: 0; background: none; color: #874D00; font-size: 14px; padding: 2px 4px; cursor: pointer; }
        /* TTS 换音色试听取舍弹窗 */
        .refresh-dialog {
            background: var(--card);
            border: 3px solid var(--cream-border);
            border-radius: 24px;
            padding: 22px;
            width: 320px;
            /* 音色池变大后试听列表可能很长：整卡限高、列表区独立滚动（#rfVersionList），
               标题/句子/操作按钮常驻可点。同类的微信绑定提醒弹窗内容固定，限高无副作用 */
            display: flex;
            flex-direction: column;
            max-height: min(600px, 88vh);
            overflow: hidden;
        }
        .refresh-dialog h3 { margin-bottom: 6px; color: var(--ink); font-size: 19px; }
        /* 存储异常强提醒弹窗：错误红标题，与普通信息弹窗区分 */
        .storage-warn-dialog h3 { color: var(--danger); }
        .refresh-dialog-text {
            font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
            word-break: break-word; line-height: 1.4;
        }
        .refresh-version {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 10px; border-radius: 14px; margin-bottom: 6px;
            border: 2px solid #E8DECF; background: #fff; font-size: 15px; font-weight: 700;
        }
        .refresh-version.picked { border-color: var(--primary); background: #FFF8E7; }
        .refresh-version .rv-play {
            border: none; border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0;
            background: var(--secondary); color: #fff; font-size: 15px; cursor: pointer;
        }
        .refresh-version .rv-name { flex: 1; color: var(--ink); }
        .refresh-version .rv-pick { font-size: 18px; }
        /* 试听列表滚动区：内容超高时只滚这一区（按钮区固定在卡底）。min-height:0 是 flex
           子项可收缩的前提（缺了它 overflow 不生效，老 iOS flex 通病）；overscroll 防滚动
           链穿透到背后页面 */
        #rfVersionList { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
        .refresh-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
        .refresh-actions .btn { width: 100%; }
        /* 未绑微信提醒弹窗「暂时不绑定」：弱化成幽灵文字钮（主行动「去绑定」高亮+默认聚焦，2026-10-25） */
        .wx-bind-skip {
            border: none; background: none; cursor: pointer;
            font-size: 13px; color: var(--ink-light); padding: 6px 12px; border-radius: 10px;
        }
        .wx-bind-skip:active { background: rgba(0, 0, 0, .05); }
        /* 设置页账号区块（邮箱绑定/修改密码共用） */
        .settings-block { margin-bottom: 12px; font-size: 15px; }
        .settings-block .settings-row { margin-bottom: 0; }
        .settings-form { margin-top: 8px; }
        .settings-form input {
            width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 8px;
            border: 3px solid #E8DECF; border-radius: 14px; font-size: 15px; background: #fff;
        }
        .settings-form input:focus { border-color: var(--primary); outline: none; }
        .settings-email-code-row { display: flex; gap: 8px; }
        .settings-email-code-row input { flex: 1; margin-bottom: 0; }
        .code-btn {
            flex-shrink: 0; border: none; border-radius: 14px; padding: 0 16px;
            background: var(--secondary); color: #fff; font-size: 14px; font-weight: 700;
            cursor: pointer; white-space: nowrap;
        }
        .code-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .login-code-row { display: flex; gap: 8px; }
        .login-code-row .login-input { flex: 1; }
        .login-code-row .code-btn { margin-top: 12px; }
        .captcha-img {
            flex-shrink: 0; width: 120px; height: 40px; margin-top: 12px;
            border-radius: 10px; cursor: pointer; background: #f6f4fb;
            border: 2px solid #eee6ff; box-sizing: border-box;
        }
        .settings-block-action {
            width: 100%; margin-top: 8px; border: none; border-radius: 14px; padding: 10px;
            background: var(--primary); color: #5A3D00; font-size: 15px; font-weight: 800; cursor: pointer;
        }
        /* 行内用法（兑换码输入行）：基础类是整宽堆叠设计（绑定邮箱/修改密码表单），同行混排时收成内容宽且不折行 */
        .settings-row .settings-block-action { width: auto; margin-top: 0; flex-shrink: 0; white-space: nowrap; padding: 10px 14px; }
        /* 「我的」页面分区与协议/链接条目 */
        .my-section {
            background: var(--card);
            border: 3px solid #EFE5D4;
            border-radius: 18px;
            padding: 16px 18px;
            margin: 0 16px 14px;
            text-align: left;
        }
        .my-section-title { font-size: 16px; color: var(--ink); margin-bottom: 12px; }
        /* 每周战报 */
        .weekly-body { padding: 0 16px; }
        .weekly-loading { text-align: center; color: var(--ink-light); font-size: 15px; padding: 30px 0; }
        .weekly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
        .weekly-cell {
            background: var(--card); border: 3px solid #EFE5D4; border-radius: 16px;
            padding: 12px 16px; text-align: left;
        }
        .weekly-cell-label { font-size: 13px; color: var(--ink-light); }
        .weekly-cell-value { font-size: 22px; font-weight: 800; color: var(--purple-dark); margin-top: 4px; }
        .weekly-note { text-align: center; font-size: 12px; color: var(--ink-light); margin: 10px 0; }
        .weekly-poster-wrap { margin-top: 6px; text-align: center; }
        #weeklyPosterImg, #rpPosterImg {
            width: 100%; max-width: 420px; border-radius: 18px;
            border: 3px solid #EFE5D4; box-sizing: border-box;
            margin: 0 auto;   /* JS 置 display:block 后 text-align:center 不再生效，靠 margin 居中 */
        }
        .weekly-empty { text-align: center; padding: 40px 0 20px; }
        .weekly-themes { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 12px 0 4px; }
        .weekly-theme-label { font-size: 13px; color: var(--ink-light); }
        .weekly-theme-dot {
            width: 30px; height: 30px; border-radius: 50%; padding: 0;
            border: 3px solid transparent; cursor: pointer; box-sizing: border-box;
        }
        .weekly-theme-dot.active { border-color: var(--purple-dark); }
        #weeklyCanvas, #rpCanvas {
            width: 100%; max-width: 420px; border-radius: 18px;
            border: 3px solid #EFE5D4; box-sizing: border-box; touch-action: none;
            margin: 0 auto; display: block;
        }
        .weekly-sticker-bar {
            display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0;
        }
        .weekly-sticker-bar button {
            font-size: 24px; background: var(--card); border: 2px solid #EFE5D4;
            border-radius: 12px; padding: 4px 8px; cursor: pointer; line-height: 1.3;
        }
        .weekly-sticker-tools { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
        .weekly-sticker-tools button {
            font-size: 14px; font-weight: 700; background: var(--card); color: var(--ink);
            border: 2px solid #EFE5D4; border-radius: 12px; padding: 6px 14px; cursor: pointer;
        }
        .weekly-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
        .weekly-actions .btn { width: 100%; min-width: 0; margin: 0; }
        .my-link-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 4px; font-size: 15px; color: var(--ink); font-weight: 700;
            text-decoration: none; border-bottom: 2px solid #F3EBDD;
        }
        .my-link-row:last-child { border-bottom: none; }
        .my-link-row span { color: var(--ink-light); font-weight: 400; }
        .my-logout {
            display: block; text-align: center; padding: 12px;
            font-size: 15px; font-weight: 700; color: #B3392B;
            background: #FDECEA; border-radius: 14px; text-decoration: none;
        }
        /* 推荐视频卡片 */
        .video-rec-card {
            background: var(--card);
            border: 3px solid #E8DECF;
            border-radius: 22px;
            padding: 16px 18px;
            margin-bottom: 14px;
            box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
            text-align: left;
        }
        .video-rec-card h3 {
            font-size: 17px; color: var(--ink); margin-bottom: 6px;
            display: flex; justify-content: space-between; align-items: center;
        }
        .video-rec-refresh {
            border: none; background: var(--secondary); color: #fff; font-weight: 800;
            border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer;
            box-shadow: 0 3px 0 var(--secondary-dark);
        }
        .video-rec-refresh:active { transform: translateY(2px); box-shadow: none; }
        .video-rec-refresh:disabled { opacity: 0.5; cursor: default; }
        /* 收起后的推荐视频入口条（上课后替代完整卡片） */
        .video-rec-bar {
            display: none;
            text-align: center;
            background: var(--card);
            border: 3px dashed #E8DECF;
            border-radius: 999px;
            padding: 12px;
            font-size: 14px;
            font-weight: 800;
            color: var(--ink-light);
            cursor: pointer;
            margin-bottom: 14px;
        }
        .video-rec-bar:active { transform: scale(0.98); }
        .video-rec-item { padding: 10px 0; border-top: 2px dashed #EFE5D4; font-size: 15px; }
        .video-rec-name { font-weight: 800; color: var(--ink); }
        .video-rec-channel { color: var(--ink-light); font-size: 13px; margin-left: 6px; }
        .video-rec-reason { color: var(--ink-light); font-size: 14px; margin: 4px 0; line-height: 1.5; }
        .video-rec-search {
            display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: #fff;
            background: var(--secondary);
            border-radius: 999px; padding: 6px 14px; text-decoration: none;
            box-shadow: 0 3px 0 var(--secondary-dark);
        }
        @keyframes popupIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .word-card {
            background: var(--card);
            border: 3px solid var(--cream-border);
            border-radius: 22px;
            padding: 20px 16px 16px;
            text-align: center;
            cursor: pointer;
            box-shadow: 0 6px 0 rgba(230, 176, 92, 0.3);
        }
        .word-emoji {
            font-size: 44px;
            margin-bottom: 6px;
        }
        .word-text {
            font-size: 24px;
            font-weight: 800;
            color: var(--ink);
        }
        .word-meaning {
            font-size: 15px;
            color: var(--ink-light);
            margin-top: 4px;
        }
        /* 释义「展开全部 ▾ / 收起 ▴」切换（后端给了更全的 zh_full 时才渲染） */
        .word-meaning-toggle {
            font-size: 13px;
            color: #764ba2;
            margin-top: 6px;
            cursor: pointer;
        }
        .word-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 12px;
        }
        .record-btn, .play-user-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            transition: transform 0.1s;
        }
        .record-btn {
            background: #FFE9E9;
            color: var(--danger);
            box-shadow: 0 3px 0 rgba(232, 85, 85, 0.3);
        }
        .record-btn:active { transform: translateY(2px); box-shadow: none; }
        .record-btn.recording {
            background: var(--danger);
            color: #fff;
            animation: pulse-red 1s infinite;
        }
        .play-user-btn {
            background: #E5F7EA;
            color: #3E9E4D;
            box-shadow: 0 3px 0 rgba(62, 158, 77, 0.3);
        }
        .play-user-btn:active { transform: translateY(2px); box-shadow: none; }
        .play-user-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            box-shadow: none;
        }
        @keyframes pulse-red {
            0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.45); }
            70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
        }
        .summary-box {
            background: #FFF3D6;
            border: 3px solid #FFE1A8;
            border-radius: 20px;
            padding: 14px 16px;
            margin-bottom: 16px;
        }
        .summary-box h4 {
            font-size: 15px;
            color: #B8860B;
            margin-bottom: 6px;
        }
        .summary-box p {
            font-size: 15px;
            color: var(--ink);
            line-height: 1.6;
        }
        .action-btns {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        /* 玩具感按钮：厚底边 + 按压下沉 */
        .btn {
            flex: 1;
            padding: 14px 16px;
            border-radius: 999px;
            border: none;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            transition: transform 0.08s, box-shadow 0.08s;
            min-width: 90px;
            box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
        }
        .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); }
        .btn-primary {
            background: var(--primary);
            color: #5A3D00;
            box-shadow: 0 5px 0 var(--primary-dark);
        }
        .btn-primary:active { box-shadow: 0 1px 0 var(--primary-dark); }
        .btn-secondary {
            background: var(--secondary);
            color: #fff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
            box-shadow: 0 5px 0 var(--secondary-dark);
        }
        .btn-secondary:active { box-shadow: 0 1px 0 var(--secondary-dark); }
        .btn-accent {
            background: var(--orange);
            color: #fff;
            box-shadow: 0 5px 0 #E58A2E;
        }
        .btn-accent:active { box-shadow: 0 1px 0 #E58A2E; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; }
        /* 学习报告 */
        .report-preview {
            display: none;
            margin-top: 20px;
            background: var(--card);
            border-radius: 22px;
            padding: 16px;
            border: 3px dashed var(--primary);
        }
        .report-preview h3 {
            font-size: 17px;
            color: #B8860B;
            margin-bottom: 10px;
            text-align: center;
        }
        /* 详情页摘要卡（成长报告上方） */
        .detail-summary {
            background: var(--card);
            border-radius: 22px;
            padding: 12px 16px;
            margin-top: 12px;
            font-size: 14px;
            color: var(--ink-light);
            line-height: 1.6;
        }
        .detail-summary-label {
            display: inline-block;
            font-weight: 800;
            color: #B8860B;
            margin-right: 8px;
        }
        /* 成长报告折叠（详情页默认收起）：头部整行可点，箭头随开合旋转 */
        .report-fold-head {
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .report-fold-head .report-fold-hint {
            font-size: 12px;
            color: #999;
            font-weight: 400;
        }
        .report-fold-head .report-caret {
            display: inline-block;
            transition: transform .2s;
        }
        /* 成长报告标题行的分享入口：小按钮形态，不抢折叠点击区 */
        .report-share-btn {
            margin-right: 8px; padding: 3px 12px; border: none; border-radius: 999px;
            background: #EDF3FF; color: #4A90E2; font-size: 12px; font-weight: 700; cursor: pointer;
        }
        .report-share-btn:hover { background: #DDEBFF; }
        /* 句子豆小节操作行：原文选句/情景对话并排放在标题下方 */
        .detail-action-row { display: flex; gap: 10px; margin: 10px 0 14px; }
        .detail-action-row .dlg-entry-btn { flex: 1; }
        .report-fold.open .report-caret { transform: rotate(90deg); }
        .report-fold .report-fold-body { display: none; }
        .report-fold.open .report-fold-body { display: block; }
        .report-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
            font-size: 15px;
            font-weight: 700;
            color: var(--ink);
        }
        .report-table-wrap {
            overflow-x: auto;   /* 手机窄屏：表格内容（长句子+nowrap表头）超宽时在虚线框内横向滚动，
                                   不再撑破容器向右溢出 */
            -webkit-overflow-scrolling: touch;
            margin-top: 12px;
        }
        .report-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 14px;
            background: #fff;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.06);
        }
        .report-table th, .report-table td {
            padding: 10px 6px;
            text-align: center;
            border-bottom: 2px solid #F3EBDD;
        }
        .report-table th {
            background: var(--purple);
            color: #fff;
            font-size: 13px;
            white-space: nowrap;
        }
        .report-table td.report-sent {
            text-align: left;
            font-weight: 700;
            color: var(--ink);
        }
        .report-play-btn {
            border: none;
            background: #E8F7F5;
            border-radius: 50%;
            width: 34px;
            height: 34px;
            cursor: pointer;
            font-size: 14px;
            vertical-align: middle;
            box-shadow: 0 2px 0 rgba(53, 176, 167, 0.35);
        }
        .report-play-btn:active { transform: translateY(2px); box-shadow: none; }
        .report-del-btn {
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 14px;
            vertical-align: middle;
            margin-left: 2px;
            opacity: 0.55;
        }
        .report-del-btn:hover { opacity: 1; }
        /* 课程记录 */
        .record-item-row {
            background: var(--card);
            border-radius: 18px;
            padding: 14px 16px;
            margin-bottom: 12px;
            cursor: pointer;
            border: 3px solid #EFE5D4;
            transition: border-color 0.15s, transform 0.1s;
            text-align: left;
            box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
        }
        .record-item-row:hover {
            border-color: var(--secondary);
        }
        .record-item-row:active { transform: scale(0.99); }
        /* 本机原声管理（成长列表页工具行 + 打包选择模式底部操作条） */
        .records-src-tools {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 6px;
            margin: 0 0 12px;
            background: #FAF7F2;
            border: 1px solid #EFE8D8;
            border-radius: 10px;
            padding: 8px 10px;
        }
        .records-src-label {
            font-size: 13px;
            font-weight: 800;
            color: var(--ink);
        }
        .records-src-btns { display: flex; gap: 6px; }
        .records-src-tools button {
            flex: 1;
            min-width: 0;
            border: none;
            background: #F2F2F4;
            border-radius: 8px;
            font-size: 12px;
            padding: 7px 2px;
            cursor: pointer;
            color: var(--ink);
            white-space: nowrap;
        }
        .records-src-tools button:active { background: #E5E5EA; }
        .records-src-tools #srcSeqPlayBtn.on { background: #8b6fd8; color: #fff; }
        .records-src-foot {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            padding: 2px 0 10px;
        }
        /* 原声打包底部三按钮：vc-plan-foot-btn 的 flex:1（basis 0 等分）在移动端把长文案
           「📦 打包所选（N 个）」挤成逐字折行的窄高竖条——改按内容分配+不折行；
           极窄屏放不下时整钮换行兜底（flex-wrap 继承容器） */
        .records-src-foot .vc-plan-foot-btn {
            flex: 0 1 auto;
            white-space: nowrap;
        }
        .record-item-row.src-unchecked { opacity: 0.65; }
        .record-time {
            font-size: 14px;
            color: var(--purple-dark);
            font-weight: 800;
        }
        .record-summary {
            font-size: 14px;
            color: var(--ink-light);
            margin-top: 4px;
            line-height: 1.5;
        }
        .record-section-title {
            margin: 18px 0 8px;
            font-size: 18px;
            font-weight: 800;
            color: #2E7CB8;
        }
        /* 登录页 */
        .login-input {
            width: 100%;
            padding: 14px 18px;
            margin-top: 12px;
            border: 3px solid #E8DECF;
            border-radius: 999px;
            font-size: 16px;
            box-sizing: border-box;
            background: #fff;
        }
        .login-input:focus {
            border-color: var(--primary);
            outline: none;
        }
        .login-error {
            color: var(--danger);
            font-size: 14px;
            font-weight: 700;
            margin-top: 10px;
            min-height: 20px;
            text-align: center;
        }
        .loading-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255, 249, 240, 0.96);
            z-index: 960;   /* 高于配对弹窗(950)：插件成课等待要盖住配对面板（v1.4.3），低于引导(1100)/游戏(9999) */
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .loading-overlay.active {
            display: flex;
        }
        /* 分析等待陪伴宠物：遮罩里的 mini 窗（未领养渲染空白，占位隐藏无影响） */
        .pet-loading {
            width: 150px;
            height: 180px;
            border: none;
            background: transparent;
            margin-bottom: 8px;
        }
        /* 品牌兔头陪伴图：宠物未领养时遮罩也有品牌 mascot（圆形裁切居中在光圈内） */
        .loading-logo-wrap {
            position: relative;
            width: 112px;
            height: 112px;
            margin-bottom: 14px;
        }
        .loading-rabbit {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 88px;
            height: 88px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 6px 18px rgba(70, 40, 120, 0.18);
        }
        /* 转圈光圈：绕兔头 logo 旋转的圆环（浅色全环 + 顶部亮色弧段）。
           iPad 真机反馈光圈不转圈（2026-11-07）三保险：显式 from 帧（旧 WebKit 对 to-only
           关键帧的 none→rotate 插值会失效动画不动）、-webkit- 前缀、will-change 提独立
           合成层（遮罩上 mini 宠物 WebGL iframe 每帧重绘，光环与之同层时动画易被冻结） */
        .spinner {
            position: absolute;
            inset: 0;
            border: 6px solid #FFE1A8;
            border-top-color: var(--primary);
            border-radius: 50%;
            -webkit-animation: spin 0.8s linear infinite;
            animation: spin 0.8s linear infinite;
            will-change: transform;
        }
        @-webkit-keyframes spin {
            from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
            to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
        }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .loading-text {
            margin-top: 18px;
            color: #B8860B;
            font-size: 17px;
            font-weight: 800;
        }
        .tip-box {
            background: #E5F7EA;
            border: 3px solid #C4EBCF;
            border-radius: 18px;
            padding: 12px 14px;
            margin-top: 16px;
            font-size: 13px;
            color: #2E7D32;
            line-height: 1.6;
        }
        .sentence-section {
            margin-bottom: 16px;
        }
        .sentence-section h3 {
            font-size: 18px;
            color: #2E7CB8;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        /* 句子卡片：闯关小路（手机竖排左右交错+虚线连接，平板双列网格） */
        .sentence-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .sentence-card {
            background: var(--card);
            border-radius: 22px;
            padding: 14px 16px;
            border: 3px solid var(--cream-border);
            box-shadow: 0 5px 0 rgba(230, 176, 92, 0.3);
            cursor: pointer;
            position: relative;
        }
        .sentence-card:active { transform: scale(0.99); }
        .sentence-list .sentence-card:nth-child(odd) { margin-right: 26px; }
        .sentence-list .sentence-card:nth-child(even) { margin-left: 26px; }
        .sentence-list .sentence-card:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -20px;
            height: 20px;
            border-left: 4px dashed #F0C987;
        }
        /* 卡片左上角：每关一颗星，过关点亮 */
        .card-stars {
            display: flex;
            gap: 3px;
            font-size: 15px;
        }
        .card-stars .star {
            filter: grayscale(1);
            opacity: 0.3;
        }
        .card-stars .star.lit {
            filter: none;
            opacity: 1;
            display: inline-block;
            animation: pop 0.4s ease backwards;
        }
        @keyframes pop {
            0% { transform: scale(0); }
            70% { transform: scale(1.35); }
            100% { transform: scale(1); }
        }
        .manual-sentence-badge {
            flex: none; margin: 0 6px; padding: 2px 7px; border-radius: 999px;
            background: #EFE8FA; color: #6B4FA3; font-size: 11px; font-weight: 700; white-space: nowrap;
        }
        /* 卡片头部行：左星星，右语速胶囊 */
        .card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            gap: 8px;
            flex-wrap: wrap;   /* 手动添加标记 + 星星 + 语速组挤一行时允许整体折行，不把语速按钮挤出卡片 */
        }
        .card-head .speed-select { flex-shrink: 0; }
        .manual-sentence-badge {
            flex-shrink: 0; font-size: 11px; color: #B0A89E; background: #F5F3EF;
            border-radius: 6px; padding: 2px 8px; white-space: nowrap;
        }
        .sentence-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            align-items: center;
            flex-wrap: wrap;   /* 手机窄屏（<350px 可用宽）四个按钮挤不下时自动折行，
                                  不再把「朗读练习」压成两行导致文字被 44px 固定高度切掉 */
        }
        .sentence-actions .hunt-btn {
            white-space: nowrap;   /* 按钮文字永不内部换行，挤压时缩按钮而非折字 */
        }
        /* 手机窄屏：两个文字按钮（朗读练习/闯关）按 45% 基准宽弹性占位，
           一行放不下就整行折到下一行撑满，任何宽度下文字都不被裁切 */
        @media (max-width: 480px) {
            .sentence-actions .hunt-btn { flex: 1 1 45%; padding: 0 12px; }
        }
        /* 句子库卡片：底部信息行（闯关次数 + 关联课程入口） */
        .lib-meta {
            margin-top: 8px;
            font-size: 13px;
            color: #999;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .lib-course-btn {
            border: none;
            background: #E8F4FF;
            color: #2E7CB8;
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 13px;
            cursor: pointer;
            box-shadow: 0 2px 0 #C5DFF5;
        }
        .lib-course-btn:active { transform: translateY(1px); box-shadow: none; }
        .zh-toggle-btn {
            border: none;
            background: #F3F0FF;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 3px 0 #D9D0F5;
        }
        .zh-toggle-btn:active { transform: translateY(2px); box-shadow: none; }
        /* 句子短语/语法分析（💡 家长向，按需生成）：按钮同 zh-toggle 圆形口径，展开区弱化灰字 */
        .analysis-btn {
            border: none;
            background: #F3F0FF;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 3px 0 #D9CFF5;
            flex-shrink: 0;
        }
        .analysis-btn:active { transform: translateY(2px); box-shadow: none; }
        .analysis-btn.active { background: #E4DBFF; }
        .analysis-panel {
            width: 100%;
            margin-top: 10px;
            padding: 10px 12px;
            background: #FAF8FF;
            border: 1px dashed #D9CFF0;
            border-radius: 12px;
            text-align: left;
        }
        .analysis-tip { font-size: 13px; color: #999; line-height: 1.6; }
        .analysis-label { font-size: 13px; font-weight: 600; color: #764ba2; margin: 8px 0 5px; }
        .analysis-label:first-child { margin-top: 0; }
        .analysis-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
        .analysis-chip {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            padding: 5px 12px;
            border: none;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 1px 3px rgba(118, 75, 162, .18);
            font-size: 15px;
            color: #333;
            cursor: pointer;
        }
        .analysis-chip span { font-size: 11px; color: #999; margin-top: 1px; }
        .analysis-chip:active { transform: translateY(2px); box-shadow: none; }
        .analysis-grammar { font-size: 13px; color: #666; line-height: 1.6; margin: 3px 0; }
        .analysis-grammar b { color: #444; margin-right: 6px; }
        /* 关联课程选择浮层的课程行 */
        .course-pick-row {
            padding: 10px 12px;
            border-radius: 12px;
            background: #F8FBFF;
            margin-bottom: 8px;
            cursor: pointer;
            border: 2px solid #E3EEF9;
        }
        .course-pick-row:active { transform: scale(0.99); }
        /* 列表翻页条 */
        .pager {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin-top: 16px;
        }
        .pager-btn {
            border: none;
            background: #E8F4FF;
            color: #2E7CB8;
            border-radius: 999px;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 3px 0 #C5DFF5;
        }
        .pager-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
        .pager-btn:disabled { opacity: 0.4; cursor: default; }
        .pager-info { font-size: 14px; color: #999; font-weight: 800; }
        .pager-jump {
            border: 2px solid #E3EEF9;
            background: #fff;
            color: #2E7CB8;
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
            text-align: center;
        }
        .sentence-actions .record-btn,
        .sentence-actions .play-user-btn {
            width: 44px;
            height: 44px;
            font-size: 18px;
        }
        .sentence-actions .hunt-btn {
            flex: 1;   /* 闯关是主操作，撑满剩余空间 */
            background: var(--purple);
            color: #fff;
            border: none;
            border-radius: 999px;
            padding: 0 18px;
            height: 44px;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 4px 0 var(--purple-dark);
            transition: transform 0.08s, box-shadow 0.08s;
        }
        .sentence-actions .hunt-btn:active {
            transform: translateY(3px);
            box-shadow: 0 1px 0 var(--purple-dark);
        }
        .sentence-actions .hunt-btn.listening {
            background: var(--danger);
            animation: pulse 1s infinite;
        }
        .sentence-actions .hunt-btn.hunt-earn {
            background: linear-gradient(135deg, #F7B500, #FF8A00);   /* 赚积分入口：金币橙渐变与普通练习紫区分 */
            box-shadow: 0 4px 0 #C67C00;
        }
        .sentence-actions .hunt-btn.hunt-earn:active {
            box-shadow: 0 1px 0 #C67C00;
        }
        #hunt-challenge.listening {
            background: var(--danger);
            animation: pulse 1s infinite;
        }
        .sentence-hunt-result {
            margin-top: 10px;
            padding: 10px 14px;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 700;
            display: none;
        }
        .sentence-hunt-result.show {
            display: block;
        }
        .sentence-hunt-result.success {
            background: #D9F2E0;
            color: #1E7B34;
        }
        .sentence-hunt-result.fail {
            background: #FBE0E0;
            color: #C0392B;
        }
        .sentence-english {
            font-size: 19px;
            font-weight: 800;
            color: var(--ink);
            margin-bottom: 6px;
            line-height: 1.5;
        }
        .sentence-chinese {
            font-size: 14px;
            color: var(--ink-light);
            line-height: 1.5;
        }

        /* ========== 闯关页 ========== */
        .quiz-page {
            display: none;
            margin-top: 20px;
            animation: slideUp 0.5s ease;
        }
        .quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;   /* 窄屏（如复习页带实时计数+忘句按钮）右侧组整体换行，不溢出 */
            margin-bottom: 10px;
        }
        /* 页头左上角返回箭头：与底部返回按钮同一动作，不用滑到底 */
        .page-back {
            border: none;
            background: #EFE8FA;
            color: var(--purple-dark);
            border-radius: 999px;
            width: 36px;
            height: 36px;
            font-size: 18px;
            font-weight: 800;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
            margin-right: 8px;
        }
        .page-back:active { transform: scale(0.92); }
        .sfx-toggle {
            border: none;
            background: #FFF3D6;
            border-radius: 999px;
            font-size: 18px;
            padding: 4px 10px;
            cursor: pointer;
            box-shadow: 0 2px 0 #E8D5A8;
        }
        .sfx-toggle:active { transform: translateY(1px); box-shadow: none; }
        /* 今日统计/连续成长/闯关句子数：三卡横向跑马灯 */
        .home-spotlight { overflow: hidden; margin: 14px 0 18px; touch-action: pan-y; }
        .home-spotlight-track { display: flex; transition: transform .45s ease; }
        .home-spotlight-track > #todayStats, .home-spotlight-track > #milestoneHome, .home-spotlight-track > #sentenceHome {
            flex: 0 0 100%;
            margin: 0;
        }
        /* 主页今日学习统计横幅（马卡龙渐变 + 白色数字徽章） */
        .today-banner {
            margin-top: 14px;
            margin-bottom: 18px;
            background: linear-gradient(135deg, #CDE9FF 0%, #E5D4FF 100%);
            border-radius: 22px;
            padding: 16px 18px;
            box-shadow: 0 4px 0 rgba(150, 160, 235, 0.35);
            color: #4a3f6b;
            cursor: pointer;
        }
        .tb-title {
            font-size: 17px;
            font-weight: 800;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .tb-deco { font-size: 20px; animation: bounce 2s infinite; }
        /* 统计徽章：大数字+小标签的统计块（数字位数变大不挤文字、不换行）；窄屏两列等分，
           宽屏固定 200px 块左对齐（不拉宽变形） */
        .tb-badges {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-top: 10px;
        }
        @media (min-width: 700px) {
            .tb-badges { grid-template-columns: repeat(2, 200px); }
        }
        .tb-badge {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            background: #fff;
            border-radius: 14px;
            padding: 6px 6px;
            box-shadow: 0 2px 0 rgba(120, 130, 220, 0.25);
        }
        .tb-num { font-size: 15px; font-weight: 800; color: #5B6EE1; line-height: 1.15; }
        .tb-cap { font-size: 10px; font-weight: 700; color: #8A86B8; white-space: nowrap; }
        .tb-guide {
            margin-top: 10px;
            font-size: 14px;
            font-weight: 800;
            color: #6b5a9e;
        }
        /* 新手引导手势：闪烁光圈指向目标（虚线单词 / 词卡 ➕ / 入口卡）。用亮蓝区别于提取词的
           金黄高亮底色（同色会融进句子高亮里分不清），呼吸缩放动画吸睛 */
        .coach-mark {
            position: relative;
            border-radius: 8px;
            scroll-margin-top: 96px;   /* scrollIntoView(block:start) 时给顶部 toast/页头留位，别把目标顶到屏幕外 */
            animation: coachPulse 1.1s ease-in-out infinite;
        }
        @keyframes coachPulse {
            0%, 100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.95), 0 0 14px 4px rgba(59, 130, 246, 0.45); }
            50% { box-shadow: 0 0 0 7px rgba(59, 130, 246, 0.35), 0 0 22px 8px rgba(59, 130, 246, 0.2); }
        }
        /* 首页周期里程碑激励卡：下一档差额与奖励，临近达标加强光效 */
        .milestone-home {
            margin: -4px 0 18px;
            padding: 14px;
            display: flex;
            gap: 12px;
            background: linear-gradient(135deg, #FFD977 0%, #FFB68D 48%, #D8B4FE 100%);
            border: 2px solid rgba(255, 255, 255, .85);
            border-radius: 22px;
            box-shadow: 0 5px 0 rgba(218, 143, 82, .28), 0 8px 22px rgba(167, 116, 210, .18);
            cursor: pointer;
        }
        .milestone-home:active { transform: scale(.99); }
        .mh-item { flex: 1; min-width: 0; padding: 12px 14px; background: rgba(255,255,255,.8); border-radius: 16px; color: #62405B; }
        .mh-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
        .mh-title { font-size: 14px; font-weight: 800; }
        .mh-cycle { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: #FFF1C7; color: #9A5B18; font-size: 11px; font-weight: 800; }
        .mh-current { margin-top: 8px; font-size: 17px; font-weight: 900; color: #73415E; }
        .mh-reward { margin-top: 3px; font-size: 14px; font-weight: 800; color: #B05A18; }
        .mh-next { margin-top: 2px; font-size: 12px; color: #B0A89E; }
        .mh-track { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: rgba(128,82,112,.14); }
        .mh-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FF9F43, #A855F7); transition: width .35s ease; }
        .milestone-home.near { animation: mhNearGlow 1.8s ease-in-out infinite; }
        @keyframes mhNearGlow {
            0%, 100% { box-shadow: 0 5px 0 rgba(218,143,82,.28), 0 8px 22px rgba(167,116,210,.18); }
            50% { box-shadow: 0 5px 0 rgba(218,143,82,.28), 0 8px 28px rgba(255,128,72,.48); }
        }
        @media (max-width: 560px) { .milestone-home { flex-direction: column; } }
        /* 今日复习入口（主页横幅下，可点卡片；句子库页顶部同款按钮） */
        .review-entry {
            margin: -6px 0 18px;
            background: linear-gradient(135deg, #FFE9B8 0%, #FFD1DC 100%);
            border-radius: 22px;
            padding: 14px 18px;
            box-shadow: 0 4px 0 rgba(235, 180, 120, 0.35);
            color: #7a4a2b;
            font-size: 16px;
            font-weight: 800;
            text-align: center;
            cursor: pointer;
        }
        .review-entry:active { transform: scale(0.98); }
        /* 微信内引导条：提示脱离 webview（防误点左上角 ✕），语气轻、可关闭 */
        .wechat-guide {
            margin: -6px 0 14px;
            background: #EDF2FF;
            border-radius: 14px;
            padding: 10px 14px;
            color: #556;
            font-size: 13px;
            line-height: 1.6;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        .wechat-guide-text { flex: 1; }
        .wechat-guide-close {
            color: #99a;
            font-size: 14px;
            cursor: pointer;
            padding: 0 2px;
            flex-shrink: 0;
        }
        /* 继续上次课程提示条（复用 review-entry 横幅样式，内部 flex 排版 + ✕ 关闭） */
        #resumeEntry { align-items: center; gap: 8px; text-align: left; font-size: 14px; }
        #resumeEntry .resume-close { flex-shrink: 0; padding: 2px 8px; opacity: .6; }
        /* 复习闪卡 */
        .review-card { text-align: center; }
        .review-card .sentence-english { cursor: pointer; }
        .review-card .sentence-actions { justify-content: center; }
        .review-flip-btn { margin-top: 14px; }
        .review-rate { display: flex; gap: 12px; margin-top: 16px; }
        .review-rate button { flex: 1; }
        .review-summary { text-align: center; padding: 30px 18px; }
        /* 定级测评 */
        .assess-prompt-box { text-align: center; margin: 12px 0; }
        .assess-prompt-en { font-size: 20px; font-weight: 800; color: #2E7CB8; line-height: 1.5; cursor: pointer; }
        .assess-options { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
        .assess-option {
            font-size: 17px; font-weight: 800; padding: 14px; border-radius: 16px;
            border: none; background: #F0F4FF; color: #3b4a8c; cursor: pointer;
            box-shadow: 0 3px 0 rgba(120, 130, 220, 0.25);
        }
        .assess-option:active { transform: scale(0.98); }
        .assess-option.right { background: #D8F5D0; color: #2e7d32; }
        .assess-option.wrong { background: #FDE0DC; color: #c62828; }
        /* 「不知道」：弱化灰底，与正式选项区分 */
        .assess-dunno { background: #F2F2F4; color: #8a8a93; box-shadow: 0 3px 0 rgba(0,0,0,0.06); font-weight: 700; }
        .assess-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
        .assess-pill {
            padding: 8px 14px; border-radius: 999px; border: 2px solid #D9D2F5;
            background: #fff; font-weight: 800; color: #6b5a9e; cursor: pointer; font-size: 14px;
        }
        .assess-pill.active { background: #EFE8FA; border-color: #8b6fd8; color: #4a3f6b; }
        .assess-hint { text-align: center; color: #8a7bb8; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
        .assess-report { text-align: center; padding: 10px 4px; }
        .assess-score-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
        .quiz-header h2 {
            font-size: 20px;
            color: #2E7CB8;
            flex: 1;   /* 占位展开吸掉行尾空隙：标题紧跟返回按钮，右侧组被推到右端（勿改 0 0 auto，space-between 会把空隙均分到标题两侧） */
            white-space: nowrap;   /* 窄屏不被时间胶囊挤成竖排；放不下时右侧组整组换行（header 有 flex-wrap） */
        }
        .quiz-progress {
            font-size: 14px;
            font-weight: 800;
            color: var(--purple-dark);
            background: #EFE8FA;
            padding: 6px 14px;
            border-radius: 999px;
        }
        /* 「我的」页头像：圆形小图嵌在用户名胶囊左侧（微信头像/自定义头像，users.avatar） */
        .my-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,.18);
            vertical-align: middle;
            margin-right: 6px;
        }
        /* 关卡路径条：当前关弹跳，已过✅，未到🔒 */
        .level-path {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            margin: 4px 0 18px;
        }
        .level-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 66px;
            gap: 4px;
        }
        .level-node-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            background: #EDE4D3;
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
        }
        .level-node.passed .level-node-icon {
            background: var(--green);
            box-shadow: 0 3px 0 #5CB874;
        }
        .level-node.current .level-node-icon {
            background: var(--star);
            box-shadow: 0 4px 0 #E6B800;
            animation: bounce 1.2s infinite;
        }
        .level-node-name {
            font-size: 11px;
            font-weight: 800;
            color: var(--ink-light);
            text-align: center;
            line-height: 1.2;
        }
        .level-node.current .level-node-name { color: var(--ink); }
        .level-link {
            flex: 0 0 16px;
            border-top: 4px dashed #D8CBB6;
            margin-top: 25px;
        }
        .quiz-nav {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-top: 20px;
        }
        /* 排序关词块 */
        .word-bank {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 16px;
            padding: 14px;
            background: #F3EBDD;
            border-radius: 18px;
        }
        .word-chip {
            padding: 10px 18px;
            background: #fff;
            border: 3px solid var(--secondary);
            border-radius: 999px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 800;
            color: var(--secondary-dark);
            box-shadow: 0 3px 0 rgba(53, 176, 167, 0.35);
            transition: transform 0.1s;
        }
        .word-chip:active { transform: scale(0.95); }
        .word-chip.used {
            opacity: 0.35;
            pointer-events: none;
            box-shadow: none;
        }
        /* 手写模式的参考单词：只展示不可点选 */
        .word-chip.peek { cursor: default; }
        .word-chip.peek:active { transform: none; }
        /* 排序关手写板：touch-action:none 防止手写时页面跟着滚动 */
        .handwrite-canvas {
            display: block;
            width: 100%;
            background: #fff;
            border: 3px dashed var(--secondary);
            border-radius: 18px;
            touch-action: none;
            cursor: crosshair;
            margin-bottom: 14px;
        }
        #ch3ModeBar { margin-top: 12px; }

        /* ========== 闯关成功页 ========== */
        .quiz-result {
            display: none;
            margin-top: 20px;
            animation: slideUp 0.5s ease;
            text-align: center;
        }
        .score-circle {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: var(--star);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            font-size: 72px;
            box-shadow: 0 8px 0 #E6B800, 0 18px 36px rgba(230, 184, 0, 0.35);
            animation: bounce 1.6s infinite;
        }
        .success-stars {
            font-size: 34px;
            letter-spacing: 6px;
            margin-bottom: 10px;
        }
        .success-stars .star {
            display: inline-block;
            animation: pop 0.45s ease backwards;
        }
        .result-comment {
            font-size: 20px;
            font-weight: 800;
            color: #B8860B;
            margin-bottom: 18px;
        }
        .result-detail {
            text-align: left;
            margin-bottom: 20px;
        }
        /* 过关撒花（纯CSS动画，JS往wrap里撒彩色纸片） */
        .confetti-wrap {
            position: fixed;
            top: 0; left: 0; right: 0;
            height: 0;
            pointer-events: none;
            z-index: 200;
        }
        .confetti-piece {
            position: absolute;
            top: -16px;
            width: 10px;
            height: 16px;
            border-radius: 3px;
            animation: confetti-fall 2.2s ease-in forwards;
        }
        @keyframes confetti-fall {
            to { transform: translateY(105vh) rotate(720deg); opacity: 0.7; }
        }

        /* 听音寻宝：大耳朵动效 */
        .listening-animation {
            font-size: 64px;
            animation: pulse-ear 1.2s infinite;
            display: inline-block;
        }
        @keyframes pulse-ear {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.25); }
        }
        .listening-text {
            font-size: 16px;
            color: var(--purple-dark);
            margin-top: 10px;
            font-weight: 800;
        }

        /* ========== 磨耳朵（循环播放） ========== */
        .listen-source {
            display: flex; gap: 8px; margin-bottom: 18px;
        }
        .listen-source + .listen-source { margin-top: -10px; }   /* 音源条+停顿条两条相邻时收紧间距 */
        .listen-source button {
            flex: 1; padding: 10px 4px; border: 2px solid #e0e0e0; border-radius: 12px;
            background: #fff; font-size: 14px; font-weight: 800; color: #888;
            cursor: pointer; font-family: inherit;
        }
        .listen-source button.active {
            border-color: #4CAF50; color: #2e7d32; background: #f1f8e9;
        }
        .listen-card {
            background: #fff; border-radius: 16px; padding: 28px 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center;
            margin-bottom: 18px; min-height: 120px;
        }
        .listen-en { font-size: 20px; font-weight: 800; color: #333; line-height: 1.5; }
        .listen-zh { font-size: 15px; color: #999; margin-top: 12px; line-height: 1.5; }
        .listen-controls {
            display: flex; gap: 10px; justify-content: center; margin-bottom: 8px;
        }
        .listen-controls .btn { min-width: 64px; font-size: 18px; }
        .listen-controls .btn svg { display: block; margin: 0 auto; }   /* SVG 图标按钮垂直居中 */

        /* ========== 平板适配 ========== */
        @media (min-width: 768px) {
            .container { max-width: 860px; padding: 32px 36px; }
            .sentence-list {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 18px;
            }
            .sentence-list .sentence-card:nth-child(odd),
            .sentence-list .sentence-card:nth-child(even) { margin-left: 0; margin-right: 0; }
            .sentence-list .sentence-card:not(:last-child)::after { display: none; }
            /* 空状态引导卡跨满两列整宽居中（否则只占左列） */
            .sentence-list .vc-empty-guide { grid-column: 1 / -1; }
            .mic-btn { width: 170px; height: 170px; }
            #challengeContent { max-width: 620px; margin: 0 auto; }
            .challenge-sentence-en { font-size: 24px; }
            .sentence-english { font-size: 20px; }
            .report-table { font-size: 15px; }
        }


/* ICP 备案号页脚：静态放在登录页/主容器卡片底部，避免被固定底栏遮挡 */
.icp-footer {
    text-align: center;
    font-size: 11px;
    line-height: 1;
    margin-top: 20px;
    padding-top: 4px;
}
.icp-footer a {
    color: #b0b6bd;
    text-decoration: none;
}

/* ===== 游戏厅（学习奖励） ===== */
/* 闯关成功页的整课完成奖励提示条：复用 review-entry 横幅风格 */
.game-reward-banner {
    margin: 4px auto 14px;
    max-width: 420px;
    background: linear-gradient(135deg, #D8F3DC 0%, #B7E4C7 100%);
    border-radius: 22px;
    padding: 14px 18px;
    box-shadow: 0 4px 0 rgba(120, 190, 140, 0.35);
    color: #2d6a4f;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}
.game-reward-banner:active { transform: scale(0.98); }

/* 游戏卡片网格：浅色圆角卡片，配合主站主题 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.game-card {
    background: #fff;
    border: 2px solid #EFE6D8;
    border-radius: 20px;
    padding: 18px 12px 14px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(220, 200, 170, 0.35);
    transition: transform .15s;
}
.game-card:active { transform: scale(0.96); }
.game-card-icon { font-size: 40px; line-height: 1.2; }
.game-card-name { font-size: 16px; font-weight: 800; margin-top: 6px; }
.game-card-rec {
    margin-top: 8px;
    display: inline-block;
    font-size: 12px;
    color: #b8860b;
    background: rgba(255, 209, 102, .18);
    border-radius: 999px;
    padding: 3px 10px;
}
.game-card-rec.none { color: var(--ink-light); background: rgba(0,0,0,.04); }

/* 全屏游戏容器：顶条倒计时 + 退出，iframe 占满剩余空间 */
.game-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #12122b;
    display: flex;
    flex-direction: column;
}
.game-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0,0,0,.35);
    flex-shrink: 0;
}
.game-timer { color: #ffd166; font-size: 15px; font-weight: 800; }
.game-exit-btn {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.game-frame { flex: 1; width: 100%; border: none; }

/* ===== 3D 电子宠物（首页入口卡 + 闯关积分提示） ===== */
/* 首页入口卡：浅绿奶油底，区别于橙粉 review-entry */
.home-entries {
    display: flex;
    gap: 10px;
    margin: 12px 0 18px;
}
.pet-entry {
    flex: 1;
    min-width: 0;
    margin: 0;
    background: linear-gradient(135deg, #D8F3DC 0%, #FFF3C9 100%);
    border-radius: 22px;
    padding: 13px 14px;
    box-shadow: 0 4px 0 rgba(150, 190, 130, 0.35);
    color: #4a6b3a;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pet-entry:active { transform: scale(0.98); }
/* 游戏厅入口卡：与宠物卡并排，紫蓝渐变区分 */
.game-entry {
    background: linear-gradient(135deg, #E3E0FF 0%, #CFE9FF 100%);
    box-shadow: 0 4px 0 rgba(124, 108, 255, 0.3);
    color: #4a3f8f;
}
/* 页面内 toast（替代原生 alert，防浏览器"禁止显示对话框"静默吞提示） */
.app-toast {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;                /* 可视区正中：水平用 margin auto，垂直用 top50%+translateY(-50%) */
    width: fit-content;
    max-width: 82vw;
    margin: 0 auto;
    transform: translateY(calc(-50% + 14px));   /* 进场前微偏下，show 时滑到正中 */
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(40, 36, 60, 0.94);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 1200;
}
.app-toast.show {
    opacity: 1;
    transform: translateY(-50%);
}
/* 游戏厅页兑换行：1 积分 = 1 分钟 */
.game-exchange {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 14px;
    flex-wrap: wrap;
}
.game-ex-label {
    font-size: 13px;
    font-weight: 700;
    color: #8a7a5a;
}
.game-ex-btn {
    border: none;
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c6cff 0%, #5a9bff 100%);
    box-shadow: 0 3px 0 rgba(90, 80, 200, 0.35);
    cursor: pointer;
}
.game-ex-btn:active { transform: scale(0.96); }
.game-ex-btn:disabled {
    background: #d8d3c8;
    box-shadow: none;
    cursor: default;
}

/* 闯关成功页的积分提示小条 */
.pet-points-hint {
    margin: 0 auto 12px;
    max-width: 420px;
    font-size: 14px;
    font-weight: 800;
    color: #b8860b;
    background: rgba(255, 209, 102, .22);
    border-radius: 999px;
    padding: 8px 16px;
    text-align: center;
}

/* 闯关加油宠物：右下角 mini 小窗（透明底、不挡按钮、低于弹窗层级） */
.pet-cheer {
    position: fixed;
    right: 10px;
    bottom: 84px;   /* 避开底部 tabbar/录音按钮 */
    width: 120px;
    height: 150px;
    border: none;
    background: transparent;
    pointer-events: none;
    z-index: 900;
}

/* 学习规划师聊天页：气泡 + 规划卡片 + 快捷开场白 + 输入行 */
.plan-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 14px;
    min-height: 180px;
}
.plan-loading {
    text-align: center;
    color: var(--ink-light);
    padding: 30px 0;
    font-size: 14px;
}
.plan-msg { display: flex; flex-direction: column; align-items: flex-start; }
.plan-msg.user { align-items: flex-end; }
.plan-bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.plan-msg.agent .plan-bubble {
    background: #fff;
    border: 2px solid #EFE6D8;
    border-top-left-radius: 4px;
}
.plan-msg.user .plan-bubble {
    background: linear-gradient(135deg, #FFD166, #FF9F43);
    color: #7a4a2b;
    font-weight: 600;
    border-top-right-radius: 4px;
}
.plan-bubble.thinking {
    color: var(--ink-light);
    animation: planPulse 1.2s ease-in-out infinite;
}
@keyframes planPulse { 50% { opacity: .45; } }
.plan-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 8px;
}
.plan-chip {
    text-align: left;
    padding: 10px 14px;
    border-radius: 14px;
    border: 2px dashed var(--primary);
    background: #FFFBEF;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
}
.plan-card {
    margin-top: 8px;
    width: 100%;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 14px;
}
.plan-card-title { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.plan-sec {
    font-weight: 800;
    font-size: 13px;
    color: var(--ink-light);
    margin: 10px 0 4px;
}
.plan-stage { margin: 4px 0; font-size: 14px; line-height: 1.6; }
.plan-stage span { display: block; color: var(--ink-light); font-size: 13px; }
.plan-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.8; }
.plan-sync-btn {
    margin-top: 12px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #B7E4C7, #74C69D);
    color: #2d6a4f;
    box-shadow: 0 3px 0 rgba(90, 170, 120, .4);
}
.plan-sync-btn:disabled { opacity: .55; cursor: default; }
.plan-input-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    position: sticky;
    bottom: 8px;
}
.plan-input-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-size: 15px;
    border: 3px solid #EFE6D8;
    border-radius: 14px;
    outline: none;
    color: var(--ink);
    background: #fff;
}
.plan-input-row input:focus { border-color: var(--primary); }
.plan-input-row .btn { white-space: nowrap; }

/* 视频听课卡：本地视频边放边捕获音频 */
.video-study-card {
    background: #fff;
    border: 3px solid #EFE6D8;
    border-radius: 20px;
    padding: 12px;
    margin-top: 12px;
    position: relative;   /* 画中画/关闭浮层按钮定位锚点 */
}
.video-study-card video {
    width: 100%;
    max-height: 320px;
    border-radius: 12px;
    background: #000;
    display: block;
}
/* 无视频空占位：常驻卡片的内容区，引导选文件/演示课 */
.vc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 140px;
    background: #F7F2EA;
    border: 2px dashed #E5D9C3;
    border-radius: 12px;
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 12px;
}
.vc-empty-ico { font-size: 30px; opacity: .7; }
.vc-empty-tip { font-size: 12px; color: #B5A98F; }
/* 空态：藏视频黑框和倍速/✕ 钮（vcClose 清空后卡片常驻，由 JS 切 .no-video） */
.video-study-card.no-video video { display: none; }
.video-study-card.no-video .vc-video-tools { display: none; }
.video-study-card:not(.no-video) .vc-empty { display: none; }
.video-study-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 10px;
}
.video-study-bar .vc-mic-btn { margin: 0 auto; }   /* logo 居中在上，模式分段控件全宽在下（小屏不横向挤压） */
/* 模式选择：全宽分段控件（segmented control，不是按钮）——连续圆角容器，选中段白色浮起高亮，无厚底边 */
.vc-mode-select {
    width: 100%;
    gap: 0;
    background: #F3EBDD;
    border-radius: 12px;
    padding: 3px;
}
.vc-mode-select .src-btn {
    flex: 1;
    background: transparent;
    color: var(--ink-light);
    border-radius: 9px;
    padding: 8px 6px;
    font-weight: 600;
    box-shadow: none;
}
.vc-mode-select .src-btn.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.vc-mode-select .src-btn:disabled { opacity: .45; cursor: default; }
.src-btn:disabled { opacity: .5; cursor: default; }
/* 课程原始音频回听（本地留存）：统一自定义迷你播放器（.src-mini-player，timeupdate 驱动进度，
   原生控件进度刷新在部分平台/容器会冻结只在交互时动；总时长 decodeAudioData 兜底——MediaRecorder 产
   webm/fMP4 容器头常缺 duration=NaN，播完才回填，不传副本会被转移 ArrayBuffer）。
   成长列表/详情页新建 Audio；寻宝卡槽外挂捕获图绑定的 chHuntAudioEl（一元素只能建一次 source 不能新建）。
   play 事件登记进 srcAudioLive，离开成长区/插槽由 stopAllSrcAudio/chHuntAudioStop 停 */
.record-src-mount { display: block; margin-top: 6px; }
.src-mini-player { display: flex; align-items: center; gap: 8px; margin-top: 6px; width: 100%; }
.smp-play {
    border: none;
    background: #F3EBDD;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 15px;
    cursor: pointer;
    flex: none;
}
.smp-seek { flex: 1; min-width: 0; accent-color: var(--secondary); }
.smp-time { font-size: 12px; color: var(--ink-light); flex: none; font-variant-numeric: tabular-nums; }
.src-rate-btn {
    border: none;
    background: #F3EBDD;
    color: var(--ink-light);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    flex: none;
}
/* 寻宝视频源：视频+浮动倍速钮容器（视频元素搬进插槽时 .vc-video-tools 不跟随，倍速钮单独挂） */
.ch-hunt-video-wrap { position: relative; }
.src-rate-btn.float { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .5); color: #fff; }
/* ±5s 快进退组：迷你播放器内联（播放键与进度条之间）/ 寻宝视频左上角浮动（右上=倍速钮） */
.seek5-group { display: inline-flex; gap: 4px; flex: none; }
.seek5-group .src-rate-btn { padding: 6px 8px; }
.seek5-group.float { position: absolute; top: 8px; left: 8px; }
.seek5-group.float .src-rate-btn { background: rgba(0, 0, 0, .5); color: #fff; }
/* 详情页播放器挂载点：独立成行于 quiz-header 下，与内容同缩进（header 行内 flex 挤压会让 iOS 原生控件退化成单按钮） */
#recordDetailSrcMount { padding: 0 16px; margin-bottom: 12px; }
/* 寻宝关音源 chips：视频/音频/选择 多源并存可切换，风格同 .src-btn */
.ch-hunt-src-chips { display: flex; gap: 8px; margin-bottom: 8px; }
.ch-hunt-chip {
    border: none;
    background: #F3EBDD;
    color: var(--ink-light);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.ch-hunt-chip.active { background: var(--secondary); color: #fff; box-shadow: 0 2px 0 var(--secondary-dark); }
/* 视频卡磨耳兔 logo：ear 面板 mic-btn 的缩小版，四态由 vcLogoSync 切换：
   idle 呼吸（一块听待机）/ recording 红圈⏹（一块听录制中）/ plain 静态（磨耳朵待机）/ looping 虚线环慢转（磨耳朵循环中） */
.vc-mic-btn {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-image: url('/assets/brand/rabbit-head.jpg');
    background-size: cover;
    background-position: center;
    border: 4px solid #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.1s;
}
.vc-mic-btn:disabled { filter: grayscale(.6); opacity: .65; cursor: default; animation: none; }
.vc-mic-btn:disabled::before { animation: none; }
/* 一块听模式·待机：呼吸（同听外部播放 mic-btn.idle） */
.vc-mic-btn.idle {
    box-shadow: 0 5px 0 var(--primary-dark), 0 0 0 4px var(--primary);
    animation: breathe 2.4s ease-in-out infinite;
}
.vc-mic-btn.idle:active { transform: scale(0.95); animation: none; }
/* 一块听模式·录制中：红圈脉冲 + 右下 ⏹ 徽章 */
.vc-mic-btn.recording {
    box-shadow: 0 5px 0 var(--danger-dark), 0 0 0 4px var(--danger);
    animation: pulse 1.5s infinite;
}
.vc-mic-btn.recording::after {
    content: '⏹️';
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* 磨耳朵模式·待机：静态米灰圈、无动画（呼吸是一块听专属效果） */
.vc-mic-btn.plain { box-shadow: 0 4px 0 rgba(0, 0, 0, .12), 0 0 0 4px #D8CFC0; }
/* 磨耳朵模式·循环中：新动效——外圈虚线环慢速旋转，与呼吸明确区分 */
.vc-mic-btn.looping { box-shadow: 0 4px 0 rgba(0, 0, 0, .12), 0 0 0 4px var(--secondary); }
.vc-mic-btn.looping::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px dashed var(--secondary);
    -webkit-animation: vcspin 9s linear infinite;
    animation: vcspin 9s linear infinite;
    will-change: transform;
}
@-webkit-keyframes vcspin {
    from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes vcspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* 关闭按钮：浮在视频右上角的半透明小圆图标 */
.vc-video-tools {
    position: absolute;
    top: 20px;   /* 卡 padding 12 + 视频内缩 8 */
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.vc-tool-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    backdrop-filter: blur(2px);
    transition: background .15s;
}
/* 倍速钮：文字宽度可变（1x/0.8x/0.6x），不用正圆 */
#vcRateBtn { width: auto; min-width: 30px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
}
.vc-tool-btn:hover { background: rgba(0, 0, 0, .75); }
.video-study-card .status-text { margin-top: 8px; overflow-wrap: anywhere; }   /* 长文件名字符串防撑出卡片 */
/* 视频文件名：单行省略，帮用户记住/找回本课视频 */
.vc-name {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 学习计划条：视频卡上方，显示进度 + 点击续学，右侧 ✕ 退出 */
.vc-plan-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF7EA;
    border: 2px solid #F0E2C8;
    border-radius: 14px;
    padding: 9px 12px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink);
}
.vc-plan-main {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.vc-plan-exit {
    background: none;
    border: none;
    color: #C9BBA6;
    font-size: 15px;
    cursor: pointer;
    padding: 2px 4px;
}
/* 学习计划全部视频列表弹层 */
.vc-plan-list-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 950;
}
.vc-plan-list-card {
    background: #fff;
    border-radius: 18px;
    width: min(92%, 430px);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vc-plan-list-title {
    padding: 14px 16px 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* 计划视频列表标题下操作行（↻ 网盘路径 / ➕ 添加视频 / 补齐未导入，2026-10-29 与标题分行布局） */
.vc-plan-list-ops {
    display: flex;
    gap: 8px;
    padding: 0 16px 10px;
    flex-wrap: wrap;
}
.vc-plan-list-ops .vc-plan-fill-btn { flex: none; }
.vc-plan-list-close { color: #C9BBA6; cursor: pointer; font-weight: 400; padding: 0 4px; }
/* 学习计划弹窗 tab 切换（复用 listen-tab 下划线风格）：单列表 + 底部分页 */
.vc-plan-tab-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 0 6px;
    flex-shrink: 0;
}
.vc-plan-tab {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #B3A99A;
    padding: 4px 2px 8px;
    position: relative;
    cursor: pointer;
}
.vc-plan-tab::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
    transition: width .2s;
}
.vc-plan-tab.active { color: var(--ink); }
.vc-plan-tab.active::after { width: 26px; }
.vc-plan-list-items { overflow-y: auto; padding: 0 8px 10px; }
.vc-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid #F3EDE3;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink);
}
.vc-plan-item:last-child { border-bottom: none; }
.vc-plan-item.cur { background: #FFF7EA; border-radius: 10px; }
.vc-plan-item-body { flex: 1; min-width: 0; }
.vc-plan-item-name {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pan-download {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
    margin-top: 5px; color: #2b7fd4; font-size: 12px; line-height: 1.5;
}
.pan-download-stop {
    border: none; border-radius: 6px; padding: 2px 7px;
    background: #FDECEC; color: #C45555; font-size: 12px; cursor: pointer;
}
.pan-download-stop:active { background: #F8D7D7; }
.vc-plan-item-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px;
    margin-top: 4px; min-height: 21px;
}
.vc-plan-item-st { color: #999; font-size: 12px; flex-shrink: 0; }
.vc-plan-item.cur .vc-plan-item-st { color: var(--primary); }
/* ☰ 计划视频列表行尾 🗑 删单个视频（仅未学且未加载项渲染） */
.vc-plan-item-del {
    border: none; background: transparent; border-radius: 8px;
    font-size: 13px; line-height: 1; padding: 4px 6px; cursor: pointer;
    flex-shrink: 0; opacity: .75;
}
.vc-plan-item-del:hover { opacity: 1; background: #FDECEC; }
.vc-plan-item-del:active { background: #F8D7D7; }
/* 📑 计划列表行内操作按钮（✎ 改名 / 🗑 删除） */
.vc-plan-item-ops { display: flex; gap: 4px; flex-shrink: 0; }
.vc-plan-item-ops button {
    border: none; background: #F2F2F4; border-radius: 8px;
    font-size: 14px; line-height: 1; padding: 5px 7px; cursor: pointer;
}
.vc-plan-item-ops button:active { background: #E4E4E8; }
/* 学习计划列表（#vcPlanItems 制定计划弹窗 / #vcPlanPickItems 计划条选择弹窗：计划名+进度+状态+✎🗑）
   行内横滑：计划名长时左右滑看全。计划的视频条目列表（#vcPlanListItems：视频名+未导入+已学状态）
   不在作用域内，保持单行省略号截断 */
#vcPlanItems .vc-plan-item, #vcPlanPickItems .vc-plan-item {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#vcPlanItems .vc-plan-item-name, #vcPlanPickItems .vc-plan-item-name {
    flex: none;   /* 自然宽度撑开行（配合上行 overflow-x → 行内横滑），覆盖基类的 flex:1 收缩 */
    white-space: nowrap;
}

/* ☁️ 百度网盘听课（P0）：我的页 vip 徽标 + 网盘浏览器（面包屑/缩略图/勾选/未就绪角标）
   弹层结构复用 vc-plan-list-mask/card，不新增主色 */
.pan-vip {
    display: inline-block; padding: 1px 7px; border-radius: 8px;
    background: #E8F4FD; color: #2b7fd4; font-size: 11px; line-height: 1.5;
    vertical-align: 1px;
}
.pan-vip-svip { background: linear-gradient(135deg, #FFF3D6, #FFE3A9); color: #a56a00; }
.pan-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
    margin: -2px 16px 6px; font-size: 13px; color: #666;
}
.pan-crumb-item { cursor: pointer; padding: 2px 4px; border-radius: 6px; max-width: 140px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pan-crumb-item:hover { background: #F2F2F4; color: var(--primary); }
.pan-crumb-sep { color: #C9C9CF; margin: 0 1px; }
.pan-dirs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 6px; }
.pan-dirs:empty { display: none; }
.pan-dir-chip { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: #F2F2F4;
    color: #555; cursor: pointer; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pan-dir-chip:hover { background: #E8E8EC; color: var(--primary); }
.pan-dir-chip.cur { background: var(--primary); color: #fff; }
.pan-thumb {
    width: 32px; height: 32px; border-radius: 6px; object-fit: cover;
    vertical-align: -9px; background: #F2F2F4; flex-shrink: 0;
}
.pan-thumb-none {
    display: inline-block; text-align: center; line-height: 32px; font-size: 17px;
}
.pan-check { margin-right: 2px; }
.pan-miss { color: #2b7fd4; font-size: 12px; }
/* 已入计划的视频置灰禁选（服务端 item_keys 同口径判定，点按给 toast 不可再选） */
.pan-taken { opacity: .55; }
.pan-taken-check { color: #8b6fd8; }
.pan-taken-badge { margin-left: 6px; font-size: 11px; color: #8b6fd8; background: #F2EEFB;
    border-radius: 8px; padding: 1px 7px; vertical-align: 1px; }

/* 文件选择框不能 display:none：iOS Safari/微信 webview 会忽略隐藏文件框的程序化 click，
   改成视觉隐藏（保留渲染框）后 .click() 才能弹出系统选择器 */
.xde-file-input {
    position: fixed;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* 📑 弹层底部新建行：窄屏自动折行堆叠；按钮文字不折行，避免一高一矮 */
.vc-plan-new-row { flex-wrap: wrap; }
/* 新建按钮用弹窗统一的浅灰圆角风（不套 .btn 玩具风：厚底边+胶囊和弹层不搭） */
.vc-plan-new-btn {
    flex: 1 1 150px;
    min-width: 0;
    border: none;
    background: #F2F2F4;
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 6px;
    cursor: pointer;
    color: var(--ink);
    white-space: nowrap;
}
.vc-plan-new-btn:active { background: #E4E4E8; }

/* 📥 接收文件按钮跟随弹窗风格 */
.vc-plan-new-btn { box-sizing: border-box; }

/* ☰ 计划列表标题行「补齐未导入」小按钮 */
.vc-plan-fill-btn {
    border: none; background: #F2F2F4; border-radius: 8px;
    font-size: 12px; padding: 4px 8px; cursor: pointer; color: var(--primary);
    flex-shrink: 0; white-space: nowrap;
}
.vc-plan-fill-btn:active { background: #E4E4E8; }

/* 📤📥 局域网互传弹层 */
.lan-save-btn {
    border: none; background: #F2F2F4; border-radius: 8px;
    font-size: 12px; padding: 3px 8px; cursor: pointer; color: var(--primary);
    flex-shrink: 0; white-space: nowrap; margin-left: 6px;
}
.lan-save-btn:active { background: #E4E4E8; }
a.lan-save-btn { display: inline-block; text-align: center; text-decoration: none; box-sizing: border-box; }
.lan-plan-name { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0 8px; }
.lan-plan-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lan-copy-btn {
    border: none; background: #F2F2F4; border-radius: 8px;
    font-size: 12px; padding: 3px 8px; cursor: pointer; color: var(--primary);
    flex-shrink: 0; white-space: nowrap; margin-left: auto;
}
.lan-copy-btn:active { background: #E4E4E8; }
.lan-head { font-size: 14px; font-weight: 600; padding: 6px 0 10px; }
.lan-code { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: 8px; padding: 8px 0 2px; font-variant-numeric: tabular-nums; }
.lan-qr { display: block; margin: 10px auto 4px; border-radius: 8px; }
.lan-hint { font-size: 12px; color: #999; text-align: center; line-height: 1.7; padding: 8px 0; }
.lan-total { font-size: 12px; color: #999; padding: 2px 0 8px; }
.lan-file-list { max-height: 40vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.lan-file-row { padding: 6px 0; border-bottom: 1px solid #F2F2F4; font-size: 13px; }
.lan-file-name { display: flex; justify-content: space-between; gap: 8px; overflow: hidden; white-space: nowrap; }
.lan-file-size { color: #999; font-size: 12px; flex-shrink: 0; }
.lan-file-prog { height: 4px; background: #F2F2F4; border-radius: 2px; margin: 5px 0 3px; overflow: hidden; }
.lan-file-prog i { display: block; height: 100%; background: var(--primary); border-radius: 2px; transition: width .2s; }
.lan-ok { font-size: 13px; color: #2e9e5b; text-align: center; padding: 10px 0 4px; }
.lan-err { font-size: 13px; color: #d9534f; text-align: center; padding: 10px 0 4px; }
.lan-input {
    width: 100%; box-sizing: border-box; border: 1px solid #E4E4E8; border-radius: 8px;
    font-size: 22px; letter-spacing: 6px; text-align: center; padding: 10px 8px; outline: none;
    font-variant-numeric: tabular-nums;
}
.lan-input:focus { border-color: var(--primary); }
/* 互传弹层：中部内容超高可滚，底部按钮固定可见（文件多时「下载 zip/完成」不被裁掉） */
#lanBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#lanFoot { flex: 0 0 auto; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
#lanFoot:empty { display: none; }
#lanFoot .vc-plan-foot-btn { flex: 0 0 auto; width: 100%; }

/* ☰ 全部视频列表底部工具条：循环入口（普通模式）/ 全选·开始循环·取消（勾选模式） */
.vc-plan-list-foot {
    display: flex;
    flex-wrap: wrap;   /* 挽留小字独占一行（flex-basis 100%）需要允许换行 */
    gap: 8px;
    padding: 10px 8px 12px;
    border-top: 1px solid #F3EDE3;
}
.vc-plan-foot-btn {
    flex: 1;
    border: none;
    background: #F2F2F4;
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 4px;
    cursor: pointer;
    color: var(--ink);
}
.vc-plan-foot-btn:active { background: #E4E4E8; }
.vc-plan-foot-btn.primary { background: var(--primary); color: #5A3D00; font-weight: 600; }
.vc-plan-foot-btn.primary:active { filter: brightness(.95); }
.vc-plan-foot-btn:disabled { opacity: .45; cursor: default; }
a.vc-plan-foot-btn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
/* 列表底部挽留小字：lan 互传副本只存浏览器缓存可能被清，独占整行（flex 行内 basis 100% 换行） */
.vc-plan-foot-hint {
    flex: 0 0 100%;
    font-size: 12px;
    color: #b06a00;
    text-align: center;
    line-height: 1.5;
}
/* tab 列底翻页条：居中排布，翻页键放大（原 block 布局挤在左边、‹› 按内容宽度很小） */
.vc-plan-col-foot { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 8px 10px; }
.vc-plan-foot-btn.pg { flex: 0 0 auto; min-width: 72px; font-size: 20px; font-weight: 700; padding: 8px 18px; }

/* 听课区 tab：线条导航（选中高亮下划线） */
.listen-tab-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 2px 0 8px;
}
.listen-tab {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #B3A99A;
    padding: 6px 2px 9px;
    position: relative;
    cursor: pointer;
}
/* 面板顶部场景提示：一句话说清这个面板解决什么问题 */
.listen-panel-hint {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 8px;
}
.listen-tab::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
    transition: width .2s;
}
.listen-tab.active {
    color: var(--ink);
    font-weight: 600;
}
.listen-tab.active::after { width: 26px; }

/* 视频听课卡：音频文件（无画面）显示为紧凑播放器条 */
.video-study-card.as-audio video {
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* 新用户半遮屏引导：全屏半透明遮罩（挡点击防误触）+ 屏幕居中浮层卡片（约占半屏，首次进首页自动弹一次，app.js showOnboarding） */
.onboard-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.onboard-sheet {
    position: relative;
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: 62%;
    margin: 16px;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 22px 20px 18px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    animation: onboardUp 0.28s ease;
}
@keyframes onboardUp {
    from { transform: translateY(24px); opacity: 0.4; }
    to { transform: translateY(0); opacity: 1; }
}
/* 矮屏（iPhone SE/8 667px、横屏等）：收紧行距并放宽高度占比，保证两个按钮不滚动就能看见 */
@media (max-height: 740px) {
    .onboard-sheet { max-height: 80%; padding: 16px 18px 14px; }
    .onboard-title { font-size: 18px; margin-bottom: 10px; }
    .onboard-steps { gap: 6px; margin-bottom: 10px; }
    .onboard-step { font-size: 14px; padding: 6px 12px; }
    .onboard-step-emoji { width: 30px; height: 30px; font-size: 16px; }
    .onboard-desc { margin-bottom: 12px; }
    .onboard-cta { padding: 10px; margin-bottom: 6px; }
    .onboard-browse { padding: 7px; }
}
.onboard-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 18px;
    color: #9AA5B1;
    padding: 4px 8px;
    cursor: pointer;
}
.onboard-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.onboard-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.onboard-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    background: #F6F9FC;
    border-radius: 12px;
    padding: 8px 12px;
}
.onboard-step-emoji {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 0 rgba(46, 124, 184, 0.18);
    flex-shrink: 0;
}
.onboard-desc { font-size: 13px; color: var(--ink-light); line-height: 1.7; margin-bottom: 16px; }
.onboard-cta { width: 100%; padding: 12px; font-size: 16px; margin-bottom: 8px; }
.onboard-browse { width: 100%; padding: 9px; font-size: 14px; background: #F1F3F6; color: var(--ink-light); }
/* 重看模式（我的页「重看新手引导」）：用户已非全新，隐藏演示引导文案与大 CTA */
.onboard-mask.ob-replay .onboard-cta,
.onboard-mask.ob-replay .onboard-desc { display: none; }

/* 拍照确认·框选识别区域：wrap 尺寸由 JS 按弹层宽/50vh 高 aspect-fit 精确设置，
   保证遮罩坐标与图像像素线性映射；遮罩四块围出选区，无选区时全透明 */
#photoCropWrap {
    position: relative;
    margin: 0 auto;
    border-radius: 14px;
    border: 3px solid #E8DECF;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    cursor: crosshair;
    line-height: 0;   /* 消除 img 基线缝隙 */
}
#photoConfirmImg { display: block; border-radius: 11px; }
#photoCropShade { position: absolute; inset: 0; pointer-events: none; }
#photoCropShade .shade-t, #photoCropShade .shade-b,
#photoCropShade .shade-l, #photoCropShade .shade-r {
    position: absolute;
    background: rgba(0, 0, 0, .45);
    display: none;   /* 无选区时全透明（JS 有选区才亮出四块） */
}
#photoCropShade .shade-t { left: 0; right: 0; top: 0; }
#photoCropShade .shade-b { left: 0; right: 0; bottom: 0; }
#photoCropShade .shade-l { left: 0; }
#photoCropShade .shade-r { right: 0; }
#photoCropBox {
    position: absolute;
    display: none;
    border: 2px dashed #fff;
    background: rgba(255, 255, 255, .08);
    box-sizing: border-box;
}

/* 拍照确认·框选识别区域（iOS 相册式）：wrap=视口（尺寸 JS 按弹层宽/50vh 高 aspect-fit 精确设置），
   inner=变换层（transform-origin 0 0，预览态 translate+scale 把选区 contain 完整居中，留白透框外暗罩）。
   无选区时 shade/handles 全隐藏（=整图识别） */
#photoCropWrap {
    position: relative;
    margin: 0 auto;
    border-radius: 14px;
    border: 3px solid #E8DECF;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    cursor: crosshair;
    line-height: 0;   /* 消除 img 基线缝隙 */
}
#photoCropInner {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
}
#photoConfirmImg { display: block; border-radius: 11px; }
#photoCropShade { position: absolute; inset: 0; pointer-events: none; }
#photoCropShade .shade-t, #photoCropShade .shade-b,
#photoCropShade .shade-l, #photoCropShade .shade-r {
    position: absolute;
    background: rgba(0, 0, 0, .45);
    display: none;   /* 无选区时全透明（JS 有选区才亮出四块） */
}
#photoCropShade .shade-t { left: 0; right: 0; top: 0; }
#photoCropShade .shade-b { left: 0; right: 0; bottom: 0; }
#photoCropShade .shade-l { left: 0; }
#photoCropShade .shade-r { right: 0; }
#photoCropBox {
    position: absolute;
    display: none;
    border: 2px dashed #fff;
    background: rgba(255, 255, 255, .08);
    box-sizing: border-box;
}
.crop-handle {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    transform: translate(-50%, -50%);
    pointer-events: none;   /* 命中判定在 wrap 上统一做 */
    display: none;
}
/* 预览态（停 1 秒自动进入）：选区 cover 居中放大，隐藏四角手柄，框线改细实线 */
#photoCropWrap.preview { cursor: grab; }
#photoCropWrap.preview .crop-handle { display: none !important; }
#photoCropWrap.preview #photoCropBox { border-style: solid; border-width: 1.5px; background: none; }

/* 排序关·键盘输入模式：词组槽（宽度按词长 ch 自适应，仿样图逐词下划线） */
.ch3-kb-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 4px 14px;
    margin: 18px 0 10px;
}
.ch3-slot {
    border: none;
    border-bottom: 2px solid #C9BFAE;
    border-radius: 0;
    background: transparent;
    outline: none;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    padding: 2px 0;
    min-width: 2ch;
}
.ch3-slot:focus { border-bottom-color: #34A853; box-shadow: 0 2px 4px -2px rgba(52, 168, 83, .5); }   /* 正在输入=绿 */
.ch3-slot.err { border-bottom-color: #E04545; box-shadow: 0 2px 4px -2px rgba(224, 69, 69, .5); }       /* 判错=红 */

/* 赚积分任务中心 + 练习/赚积分游戏页 */
.earn-task-row {
    background: #fff;
    border: 2px solid #EFE8FA;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
/* 上下两行布局：上行 名称/规则（占满）+今日，下行按钮组右对齐——窄屏不再挤压竖排 */
.earn-task-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.earn-task-main { min-width: 0; }
.earn-task-name { font-weight: 700; color: #4a3f6b; font-size: 15px; }
.earn-task-rule { font-size: 12px; color: var(--ink-light); margin-top: 3px; }
.earn-task-today { font-weight: 800; color: var(--purple-dark); font-size: 14px; flex-shrink: 0; }
.earn-task-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.earn-task-actions .prac-btn { padding: 7px 14px; font-size: 13px; }
.earn-done-tag { font-size: 12px; color: #b0a8c8; align-self: center; }
.earn-section-title, .earn-milestone-title { font-weight: 800; color: #4a3f6b; margin: 18px 2px 8px; }
.earn-milestone-group { margin-top: 20px; }
.earn-milestone-hint { color: var(--ink-light); font-size: 12px; margin: 0 2px 10px; }
.earn-milestone-row.is-claimed { background: #F4FBF5; border-color: #D8EFDD; }
.earn-milestone-row.is-claimed .earn-task-today { color: #3B8F4B; }

/* 词组排序游戏：N 排目标槽 */
.prac-level-bar { margin-bottom: 10px; }
.prac-level-pick { display: flex; gap: 10px; margin-top: 12px; }
.prac-level-card {
    flex: 1;
    border: 2px solid #EFE8FA;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    padding: 16px 6px;
    cursor: pointer;
}
.prac-level-card:active { background: #F6F2FF; }
.prac-level-n { font-weight: 800; color: #4a3f6b; font-size: 16px; }
.prac-level-q { font-size: 12px; color: var(--ink-light); margin: 6px 0; }
.prac-level-p { font-weight: 800; color: #d4880e; font-size: 15px; }
.prac-row {
    border: 2px dashed #E8DECF;
    border-radius: 12px;
    padding: 8px 10px;
    margin-top: 10px;
    opacity: .75;
}
.prac-row.active { border-color: #8b6fd8; opacity: 1; }
.prac-row-head { font-size: 13px; font-weight: 700; color: #8a7bb8; cursor: pointer; margin-bottom: 6px; }
.prac-row-count { color: var(--ink-light); font-weight: 400; }
.prac-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.prac-slot {
    display: inline-block;
    min-width: 3ch;
    padding: 2px 6px;
    border-bottom: 2px solid #C9BFAE;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.prac-slot.filled, .prac-slot:not(:empty) { border-bottom-color: #8b6fd8; }
.prac-slot.err { border-bottom-color: #E04545; color: #E04545; }

/* 点词排序练习：每句发音小按钮 */
.prac-speak-btn {
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    padding: 0 2px;
    vertical-align: middle;
}

/* 键盘输入·单词提示（练习模式某槽连续错 3 次，槽下方亮出目标单词） */
.ch3-slot-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.ch3-slot-hint {
    font-size: 13px;
    font-weight: 600;
    color: #8a7bb8;
    min-height: 16px;
    line-height: 16px;
}

/* 选档卡禁用态：闯完句子不够该档 */
.prac-level-card.disabled { opacity: .4; }
.prac-level-bar button:disabled { opacity: .4; cursor: default; }

/* 录音循环播放：🔁 开关点亮态（紫底白字）+ 报告 ▶️ 播放中态 */
.src-rate-btn.on { background: #8b6fd8 !important; color: #fff !important; }

/* 成长课标签体系：chips / 详情标签行 / 列表筛选条 / 打标签面板 */
.rec-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    background: #F1F3F6;
    border-radius: 999px;
    padding: 2px 10px;
    margin: 2px 4px 2px 0;
    vertical-align: middle;
}
.rec-tag.plan { background: #EFE8FA; color: #4a3f6b; }   /* 计划归属 chip（紫系） */
.rec-tag.add { background: none; border: 1.5px dashed #C9BFAE; color: var(--ink-light); cursor: pointer; }
.record-tag-row { padding: 0 16px 10px; }
.record-tags-line { margin-top: 2px; }
.records-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.records-filter-label { font-size: 12px; font-weight: 800; color: var(--ink-light); flex: none; margin-right: 2px; }
button.rec-tag.fchip { border: none; cursor: pointer; color: var(--ink); }
button.rec-tag.fchip.on { background: #8b6fd8; color: #fff; }   /* 筛选选中态 */
/* 筛选按钮 + 当前条件摘要（#recordsFilterBar） */
.rec-filter-btn {
    border: none;
    background: #EFE8FA;
    color: #4a3f6b;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    margin: 2px 4px 2px 0;
    cursor: pointer;
}
.rec-filter-btn:active { background: #ddd0f5; }
/* 筛选弹窗：分区 + 标签下拉展开面板 */
.rec-filter-sec { margin-top: 12px; }
.rec-filter-sec-title { font-size: 13px; font-weight: 800; color: var(--ink-light); margin-bottom: 6px; }
.rec-filter-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rec-filter-drop-title { cursor: pointer; user-select: none; }
.rec-filter-drop-title span { float: right; color: var(--ink-light); }
.rec-filter-drop-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
}
.rec-filter-drop-panel.open { max-height: 40vh; overflow-y: auto; }
/* 可点击的计划片段标签（有 plan 信息的课）：视觉与普通计划标签完全一致，仅 cursor:pointer */
button.rec-tag.seg-play {
    border: none;
    cursor: pointer;
    font: inherit;
}
.tag-pick-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px solid #F1F3F6;
    cursor: pointer;
}
.tag-pick-check { flex: none; }
.tag-pick-name { flex: 1; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
.tag-pick-cnt { font-size: 12px; color: var(--ink-light); flex: none; }
.tag-pick-op { border: none; background: none; cursor: pointer; font-size: 14px; padding: 0 2px; }

/* 首页右侧快捷入口：贴边收起，hover/focus 展开；插件连接后自动展开状态 */
.home-quick-dock {
    position: fixed; right: 0; bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 85; display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
    padding-left: 8px;
}
.home-quick-btn {
    box-sizing: border-box; width: 48px; height: 46px; padding: 0 13px;
    display: flex; align-items: center; gap: 8px; overflow: hidden;
    border: 1px solid #E8DFD2; border-right: 0; border-radius: 16px 0 0 16px;
    background: rgba(255, 253, 248, .96); color: var(--ink);
    box-shadow: 0 5px 18px rgba(83, 64, 31, .14); cursor: pointer;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: width .22s ease, box-shadow .22s ease, background .22s ease;
    -webkit-tap-highlight-color: transparent;
}
.home-quick-btn:active { transform: scale(.97); }
.home-quick-icon { flex: none; font-size: 21px; line-height: 1; }
.home-quick-label { opacity: 0; transition: opacity .16s ease; }
.home-quick-dot {
    display: none; flex: none; width: 8px; height: 8px; border-radius: 50%;
    background: #38B96B; box-shadow: 0 0 0 4px rgba(56, 185, 107, .14);
}
.home-quick-btn:hover, .home-quick-btn:focus-visible,
.home-quick-btn.is-connecting, .home-quick-btn.is-on, .home-quick-btn.is-busy { width: 142px; }
.home-quick-btn:hover .home-quick-label, .home-quick-btn:focus-visible .home-quick-label,
.home-quick-btn.is-connecting .home-quick-label,
.home-quick-btn.is-on .home-quick-label, .home-quick-btn.is-busy .home-quick-label { opacity: 1; }
.home-quick-btn:focus-visible { outline: 3px solid rgba(43, 127, 212, .25); outline-offset: 2px; }
.home-quick-btn.is-connecting {
    background: rgba(255, 249, 232, .97); border-color: #EBD79B;
    box-shadow: 0 7px 22px rgba(190, 145, 35, .2);
}
.home-quick-btn.is-connecting .home-quick-dot {
    display: block; background: #D9A32E; box-shadow: 0 0 0 4px rgba(217, 163, 46, .14);
}
.home-quick-btn.is-on {
    background: rgba(240, 252, 244, .97); border-color: #B9E7C8;
    box-shadow: 0 7px 22px rgba(48, 164, 92, .23);
}
.home-quick-btn.is-on .home-quick-dot, .home-quick-btn.is-busy .home-quick-dot { display: block; }
.home-quick-btn.is-on .home-quick-dot { animation: homeQuickPulse 2s ease-in-out infinite; }
.home-quick-btn.is-busy {
    background: rgba(239, 248, 255, .97); border-color: #BEDCF3;
    box-shadow: 0 7px 22px rgba(43, 127, 212, .2);
}
.home-quick-btn.is-busy .home-quick-dot { background: #2b7fd4; box-shadow: 0 0 0 4px rgba(43, 127, 212, .13); }
@keyframes homeQuickPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(56, 185, 107, .13); }
    50% { box-shadow: 0 0 0 7px rgba(56, 185, 107, 0); }
}
@media (max-width: 480px) {
    .home-quick-dock { bottom: calc(86px + env(safe-area-inset-bottom)); gap: 8px; }
    .home-quick-btn.is-connecting, .home-quick-btn.is-on, .home-quick-btn.is-busy { width: 136px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-quick-btn, .home-quick-label { transition: none; }
    .home-quick-btn.is-on .home-quick-dot { animation: none; }
}

/* ========== 浏览器插件「一块听」（#extPairOverlay 配对弹层 + 📺 链接 chip，见 浏览器插件一块听方案.md §2）========== */
/* 弹层结构复用 vc-plan-list-mask/card，不新增主色：状态灯取现有 star/green/orange 令牌，chip 用天空蓝系 */
.ext-pair-body { padding: 4px 16px 14px; }
.ext-pair-tip { font-size: 12px; color: var(--ink-light); text-align: center; }
.ext-pair-code {
    display: block; width: 100%; cursor: pointer;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 10px;
    text-indent: 10px;   /* 末位字距不匀补偿 */
    color: var(--ink);
    background: #FFF7EA;
    border: 2px dashed var(--cream-border);
    border-radius: 14px;
    padding: 12px 0 7px;
    margin: 8px 0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    transition: background .15s, border-color .15s;
}
.ext-pair-code::after {
    content: '📋 点击复制'; display: block; margin-top: 4px;
    color: var(--blue); font-size: 11px; font-weight: 500; letter-spacing: 0; text-indent: 0;
}
.ext-pair-code:hover { background: #EDF5FA; border-color: var(--blue); }
.ext-pair-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-light);
    margin: 6px 0;
}
.ext-pair-dot { width: 9px; height: 9px; border-radius: 50%; background: #C9BBA6; flex: none; }
.ext-pair-dot.wait { background: var(--star); }
.ext-pair-dot.on { background: var(--green); }
.ext-pair-dot.busy { background: var(--orange); }
.ext-pair-course {
    margin-top: 10px;
    background: var(--card);
    border: 1px solid #F3EDE3;
    border-radius: 12px;
    padding: 10px 12px;
}
.ext-pair-course-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ext-pair-course-sub { font-size: 12px; color: var(--ink-light); margin-top: 4px; line-height: 1.5; }
.ext-pair-course-meta { font-size: 12px; color: var(--ink-light); margin-top: 4px; }
.ext-pair-course-btns { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
/* 面板底部插件下载/安装说明：超链接+文档形态，与上面的操作按钮区分（2026-10-27 用户定） */
.ext-pair-foot { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border, #e3ddd2); text-align: center; }
.ext-pair-link { display: inline-block; font-size: 12px; color: #2E6E8E; margin: 0 8px; cursor: pointer; text-decoration: underline; }
.ext-pair-link:active { opacity: .7; }
.ext-pair-foot .ext-pair-help { text-align: left; }
/* 插件课 📺 链接 chip：可点形态同 plan 片段 chip（去 button 默认边框），天空蓝系区分计划紫 */
button.rec-tag.ext-link {
    border: none;
    cursor: pointer;
    font: inherit;
    background: #E8F4FB;
    color: #2E6E8E;
}
button.rec-tag.ext-link:active { background: #D5EAF6; }

/* 句子库底部分页档位与低频打印入口 */
.sentence-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.sentence-page-size { display: flex; align-items: center; gap: 5px; color: var(--ink-light); font-size: 13px; white-space: nowrap; }
/* 视频精读：页头单行不折行（工具栏按钮已移除，2026-11-06） */
#intensivePage .quiz-header { flex-wrap: nowrap; }
#intensivePage .quiz-header h2 { flex: 0 0 auto; }
#intensiveVideoName {
    flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
    text-overflow: ellipsis; text-align: right;
}
.intensive-video-slot { margin-bottom: 14px; }
.intensive-video-slot #vcVideo { width: 100%; }
.intensive-video-float {
    position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 85;
    width: var(--ifw, min(320px, calc(100vw - 32px))); overflow: hidden; border-radius: 12px;
    background: #171717; box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
/* 右下角拖宽手柄（同扩展实时播放器口径）：宽度走 --ifw 变量——内联 width 会盖掉收起态 148px 窄条，变量不会 */
#intensiveVideoFloatResize { position: absolute; right: 2px; bottom: 2px; width: 22px; height: 22px; border: 0; padding: 0; background: transparent; cursor: nwse-resize; touch-action: none; z-index: 3; }
#intensiveVideoFloatResize::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-right: 2px solid #AAA; border-bottom: 2px solid #AAA; }
.intensive-video-float.collapsed #intensiveVideoFloatResize { display: none; }
.intensive-video-float-head {
    display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 4px 8px 4px 10px;
    color: #FFF; font-size: 12px; cursor: move; user-select: none; touch-action: none;
}
.intensive-video-float-head button {
    flex: none; min-width: 26px; height: 24px; padding: 0; border: 0; border-radius: 6px;
    background: rgba(255,255,255,.14); color: #FFF; font-size: 18px; line-height: 20px; cursor: pointer;
}
.intensive-video-float-body { line-height: 0; background: #000; position: relative; }   /* relative：浮动倍速钮（.src-rate-btn.float）定位锚点 */
.intensive-video-float-body #vcVideo { display: block; width: 100%; max-height: 38vh; }
.intensive-video-float.collapsed { width: 148px; }
.intensive-video-float.collapsed .intensive-video-float-body { display: none; }
@media (max-width: 700px) {
    .intensive-video-float { right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); width: var(--ifw, min(200px, calc(100vw - 16px))); }
    .intensive-video-float.collapsed { width: 138px; }
}
/* 精读句轨条：跟随视频（插槽/浮窗通用），深色底贴浮窗观感；块=课程/手动分段锚点 */
.it-strip { background: #171717; color: #DDD; padding: 6px 8px 7px; user-select: none; -webkit-user-select: none; }
.it-row { display: flex; align-items: center; gap: 6px; }
.it-jump { flex: none; width: 34px; height: 26px; border: 0; border-radius: 6px; background: rgba(255,255,255,.12); color: #FFF; font-size: 13px; cursor: pointer; padding: 0; }
.it-jump:active { background: rgba(255,255,255,.25); }
.it-abbtn { flex: none; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: rgba(255,255,255,.12); color: #FFF; font-size: 12px; font-weight: 700; letter-spacing: .5px; cursor: pointer; }
.it-abbtn.selecting { background: #4A90E2; }
.it-track { position: relative; flex: 1; height: 22px; min-width: 0; cursor: pointer; touch-action: none; transition: height .18s ease; }
.it-winlabel { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 10px; line-height: 1.2; color: rgba(255,255,255,.62); pointer-events: none; white-space: nowrap; }
.it-blocks { position: absolute; left: 0; right: 0; top: 6px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.10); overflow: hidden; transition: top .18s ease, height .18s ease; }
.it-block { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.30); border-radius: 2px; pointer-events: none; }
/* AB 选区态放大：纵向加高（好抓）+ 横向 60s 视窗（精细），过渡动画防突兀 */
.it-strip.zoomed .it-track { height: 56px; }
.it-strip.zoomed .it-blocks { top: 24px; height: 22px; border-radius: 6px; }
.it-strip.zoomed .it-block { border-radius: 3px; }
.it-strip.zoomed .it-band { top: 20px; height: 30px; }
.it-strip.zoomed .it-playhead { top: 4px; bottom: 4px; width: 3px; }
.it-strip.zoomed .it-tip { bottom: 58px; font-size: 12px; }
.it-block { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.30); border-radius: 2px; pointer-events: none; }
.it-block.manual { background: rgba(139,111,216,.60); }
.it-block.hit { background: #1E6FD0; box-shadow: 0 0 0 1px rgba(30,111,208,.55); }
.it-block.looping { background: #E6A23C; }
.it-band { position: absolute; top: 4px; height: 14px; background: rgba(74,144,226,.30); border: 1px solid rgba(74,144,226,.85); border-radius: 4px; pointer-events: none; transition: top .18s ease, height .18s ease; }
.it-playhead { position: absolute; top: 2px; bottom: 2px; left: 0; width: 2px; margin-left: -1px; background: #FFD34D; pointer-events: none; transition: top .18s ease, bottom .18s ease; }
/* AB 选点态 A 端点标记（绿竖线+小旗；放大态旗标沉底避让居中的视窗标签） */
.it-marker { position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; margin-left: -1.5px; background: #4CD964; pointer-events: none; z-index: 1; }
.it-marker::before { content: 'A'; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); font-size: 9px; line-height: 1; font-weight: 700; color: #4CD964; }
.it-strip.zoomed .it-marker { top: 4px; bottom: 4px; width: 4px; margin-left: -2px; }
.it-strip.zoomed .it-marker::before { top: auto; bottom: 2px; }
.it-tip { position: absolute; bottom: 24px; left: 0; transform: translateX(-50%); background: rgba(0,0,0,.88); color: #FFF; font-size: 11px; line-height: 1.4; padding: 2px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; max-width: 240px; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.it-abrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.it-ablabel { flex: none; font-size: 12px; color: #FFD34D; margin-right: 2px; }
.it-abrow button { height: 24px; padding: 0 7px; border: 0; border-radius: 6px; background: rgba(255,255,255,.12); color: #FFF; font-size: 11px; cursor: pointer; white-space: nowrap; }
.it-abrow button:active { background: rgba(255,255,255,.25); }
.it-strip.empty .it-track { opacity: .35; pointer-events: none; }
.intensive-section { margin-top: 18px; }
.intensive-section > h3, .intensive-section-title h3 { margin: 0 0 10px; color: var(--ink); font-size: 17px; }
.intensive-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.intensive-section-title h3 { margin: 0; }
.intensive-section-title .btn { flex: none; min-width: 0; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.intensive-segment-form {
    align-items: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding: 10px;
    border: 1px solid var(--cream-border); border-radius: 12px; background: #FFF9EC;
}
.intensive-segment-time { display: flex; flex: 1 1 275px; align-items: center; gap: 5px; min-width: 0; }
.intensive-segment-caption { flex: none; color: var(--ink); font-size: 13px; font-weight: 700; }
.intensive-segment-form .intensive-segment-time label { display: flex; flex: none; align-items: center; gap: 2px; color: var(--ink-light); font-size: 12px; }
.intensive-segment-form .intensive-segment-time input {
    box-sizing: border-box; width: 50px; min-width: 0; padding: 7px 4px;
    border: 1px solid #D8C6A5; border-radius: 8px; background: var(--card); color: var(--ink); font-size: 14px; text-align: center;
}
.intensive-segment-form .btn { flex: none; min-width: 0; padding: 8px 12px; }
.intensive-segment-form .intensive-time-now { margin-left: auto; padding: 7px 8px; font-size: 12px; white-space: nowrap; }
.intensive-manual-badge { margin-left: auto; color: #8B6100; font-size: 12px; }
.intensive-course.manual { border-style: dashed; }
.intensive-course-actions button.intensive-segment-delete { color: #B64B4B; }
.intensive-course {
    padding: 13px 14px; margin-bottom: 10px; border: 2px solid var(--cream-border);
    border-radius: 16px; background: var(--card); transition: border-color .15s, background .15s;
}
/* 命中高亮强化（2026-11-05 反馈：原高亮不明显）：加深底色+加粗深边+左侧 4px 橙色强调条 */
.intensive-course.hit { border-color: #EDA000; background: #FFEEC2; box-shadow: inset 4px 0 0 #F0A020; }
.intensive-course.open.hit { background: #FFF3D6; }
.intensive-course.return-focus { box-shadow: 0 0 0 3px rgba(240,180,60,.22); }
.intensive-course-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; }
.intensive-course-time { color: var(--ink-light); font-size: 12px; }
.intensive-course-range { color: #2E7CB8; font-size: 13px; font-weight: 800; }
.intensive-course.hit .intensive-course-range { color: #B57700; }
.intensive-course-done { margin-left: auto; color: var(--ink-light); font-size: 12px; }
/* 展开开关 + 播放中 chip（头部行唯一视觉面，命中提示一眼可见） */
.it-chevron { flex: none; width: 24px; height: 24px; border: 0; border-radius: 6px; background: #F2F2F4; color: var(--ink); font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.it-chevron:hover { background: #E8E8EC; }
.it-playing { flex: none; padding: 1px 7px; border-radius: 8px; background: #F0A020; color: #FFF; font-size: 11px; font-weight: 700; }
.intensive-course-body { margin-top: 9px; padding-top: 9px; border-top: 1px dashed #E7DCCB; }
/* 底部句子区简洁模式句行 */
.it-sent-row { display: flex; align-items: center; gap: 7px; padding: 8px 10px; margin-bottom: 7px; border: 1.5px solid var(--cream-border); border-radius: 11px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.it-sent-row:hover { border-color: #D8CBB6; background: #FFFDF7; }
.it-sent-row .it-chevron { background: transparent; }
.it-sent-emoji { flex: none; font-size: 15px; }
.it-sent-en { flex: 1; min-width: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.it-speak { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #F2F2F4; font-size: 14px; cursor: pointer; padding: 0; }
.it-speak:hover { background: #E8F4FF; }
/* 所属段命中（播放中）：行首同款橙色条呼应 */
.it-sent-row.hit { border-color: #EDA000; background: #FFF6E0; box-shadow: inset 3px 0 0 #F0A020; }
.it-sent-row.expanded { border-color: #2E7CB8; }
/* 行+展开卡的包裹层：宽屏双列网格里它才是 grid 项（min-width:0 防长内容撑破列宽），卡始终跟随所属行 */
.it-sent-item { display: flex; flex-direction: column; min-width: 0; }
.it-sent-full { margin: -2px 0 10px; padding: 0 4px; }
.it-sent-full .sentence-card { margin-bottom: 0; }
/* 原文/候选里已学置灰词：可点朗读感知（悬停下划线+手型） */
.intensive-word.addsent-contained { cursor: pointer; }
.intensive-word.addsent-contained:hover { text-decoration: underline; }
.intensive-summary { margin: 9px 0; color: var(--ink-light); font-size: 14px; line-height: 1.55; }
.intensive-course-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.intensive-course-actions button, .intensive-candidate button {
    border: none; border-radius: 9px; padding: 6px 10px; background: #F2F2F4;
    color: var(--ink); font-size: 13px; cursor: pointer;
}
.intensive-course-actions button.primary, .intensive-candidate button.primary { background: #E8F4FF; color: #2E7CB8; }
.intensive-course-actions button.looping { background: #FFF0C8; color: #8B6100; }
.intensive-course-actions button:disabled { opacity: .48; cursor: default; }
.intensive-candidates { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #E7DCCB; }
.intensive-candidate {
    display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; padding: 9px 10px;
    border: 1px solid #E7DCCB; border-radius: 10px; background: #FFFDF8; cursor: pointer;
    transition: border-color .15s, background .15s;
}
/* 「包含已加入」提示占整行，不与句子正文抢横向空间（否则句子被挤成逐词竖排） */
.addsent-contain-tip { flex-basis: 100%; }
.intensive-candidate:last-child { margin-bottom: 0; }
.intensive-candidate:hover { border-color: #D8C6A5; background: #FFF9EC; }
.intensive-candidate.selected { border-color: #F0B43C; background: #FFF0C8; }
.intensive-candidate-en { flex: 1; min-width: 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
.intensive-candidate.added .intensive-candidate-en { color: #8F8678; }
.intensive-added-label {
    flex: none; padding: 2px 6px; border-radius: 6px; background: #FFE6A7;
    color: #765500; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.intensive-transcript-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.intensive-transcript-tools > span { color: var(--ink-light); font-size: 12px; }
.intensive-transcript-tools button, .intensive-selection-actions > button {
    border: none; border-radius: 9px; padding: 6px 10px; background: #F2F2F4;
    color: var(--ink); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.intensive-transcript-tools button:disabled, .intensive-selection-actions button:disabled { opacity: .48; cursor: default; }
.intensive-selection-actions > button.primary { background: #E8F4FF; color: #2E7CB8; }
.intensive-transcript-text {
    max-height: 260px; overflow-y: auto; padding: 10px; border-radius: 10px;
    background: #FFFDF8; color: var(--ink); font-size: 15px; line-height: 1.9;
    white-space: pre-wrap; overflow-wrap: anywhere; user-select: none; -webkit-user-select: none;
}
.intensive-word {
    display: inline; margin: 0; border: none; border-radius: 4px; padding: 1px;
    background: transparent; color: inherit; font: inherit; line-height: inherit; cursor: pointer;
}
.intensive-word.selected { background: #FFE19A; color: #6F4B00; }
.intensive-selection-guide { margin-top: 6px; color: var(--ink-light); font-size: 12px; }
.intensive-selection-preview {
    position: relative;
    cursor: pointer; user-select: none;
    margin-top: 9px; padding: 10px 36px 10px 12px;
    border: 1.5px solid #F0B43C; border-radius: 10px;
    background: #FFF7DF; font-size: 15px; font-weight: 700; color: #6B5A2E;
    line-height: 1.55; word-break: break-word;
    box-shadow: 0 2px 0 rgba(240, 180, 60, 0.35);
    transition: transform 0.08s;
}
/* 复制入口可见化：右侧常驻 📋 图标，点按有按压反馈 */
.intensive-selection-preview::after {
    content: '📋'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 15px; opacity: 0.7;
}
.intensive-selection-preview:active { transform: scale(0.98); }
/* 补句弹窗：原文/拆分句子 并排双 tab */
.addsent-tabs { display: flex; gap: 8px; margin: 10px 0 4px; }
/* 原文选句弹窗媒体区（#addSentBody 外独立容器：选词/切 tab 重渲 body 不打断播放） */
.add-sent-media { padding: 0 14px; }
.add-sent-media:empty { padding: 0; }
.addsent-media-loading { color: var(--ink-light); font-size: 12px; padding: 4px 0 8px; }
.add-sent-media video { display: block; width: 100%; max-height: 32vh; border-radius: 10px; background: #000; margin-bottom: 8px; }
.add-sent-media audio { display: block; width: 100%; margin-bottom: 8px; }
.add-sent-media .src-mini-player { margin-bottom: 8px; }
/* 弹窗单滚动模型（2026-11-07 真机反馈）：原文区/候选列表不再各自内滚（消除嵌套滚动条
   卡手——内层先吃滚动、到边才链外层，tab 被滚走后很难滚回来）；整个正文只由
   #addSentBody 一条滚动条承载，tab 吸顶常驻，滚动位置不丢。限定 .add-sent-card 作用域，
   精读页的原文面板（260px 内滚）不受影响 */
.add-sent-card .intensive-transcript-text { max-height: none; overflow: visible; }
.add-sent-card .intensive-auto-candidates { max-height: none; overflow: visible; }
.add-sent-card .addsent-tabs {
    position: sticky; top: 0; z-index: 2;
    background: #fff; margin-top: 0; padding: 6px 0 4px;
}
/* 手机竖屏播放器占比过大挤压原文：压缩视频限高（电脑/平板保持 32vh，嫌大可用收起钮） */
@media (max-width: 699px) {
    .add-sent-media video { max-height: 20vh; }
}
/* 视频收起开关：收起后视频整块隐藏、原声照播，读原文释放空间；偏好 localStorage 记忆 */
.addsent-media-togglerow { display: flex; justify-content: flex-end; gap: 6px; }
.addsent-media-toggle {
    border: none; border-radius: 8px; background: #F2F2F4; color: var(--ink);
    font-size: 12px; padding: 3px 10px; cursor: pointer; margin-bottom: 4px;
}
.add-sent-media.media-collapsed .addsent-video-wrap { display: none; }
/* 弹窗视频浮窗（2026-11-11）：视频移出卡片浮在遮罩右下角（z 高于弹窗卡），原文/候选获得全文宽度，
   边看视频边选句；片段/循环控制行跟随视频进浮窗，「收起视频」偏好同样生效（隐藏浮窗块） */
.addsent-video-float {
    position: fixed; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 960;
    width: min(320px, 48vw); background: #000; border-radius: 12px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
/* 浮窗头横条：拖动把手（Pointer Events，视口钳制见 ensureAddsentFloatDrag）；深色区分视频画面 */
.addsent-video-float-head {
    padding: 5px 10px; background: #202124; color: #C9C9C9; font-size: 12px;
    cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
    display: flex; align-items: center; justify-content: space-between;
}
.addsent-video-float-head:active { cursor: grabbing; }
.addsent-video-float video { display: block; width: 100%; max-height: none; margin-bottom: 0; border-radius: 0; }
.addsent-video-float .addsent-clip-row {
    background: #FFFDF7; margin-bottom: 0; padding: 6px 8px; border-top: 1px solid #EFE6D6;
}
/* 弹窗视频片段开关/循环行（📼 本课片段 X–Y · 🔁 循环；开关高亮=选中锁定，灰色=自由播放） */
.addsent-clip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.addsent-clip-row .src-rate-btn { padding: 4px 9px; }
/* 本机缺字节明示：视频缓存每台设备各自一份（他机导入≠本机有），给直达归属计划的导入入口 */
.addsent-media-miss { color: var(--ink-light); font-size: 12px; padding: 4px 0 8px; }
.addsent-media-miss button {
    margin-left: 6px; border: none; border-radius: 8px; background: #E8F4FF; color: #2E7CB8;
    font-size: 12px; padding: 3px 10px; cursor: pointer;
}
.addsent-tab {
    flex: 1; height: 34px; border: none; border-radius: 9px;
    background: #F2F2F4; color: #666; font-size: 14px; font-weight: 700; cursor: pointer;
}
.addsent-tab.active { background: #4A90E2; color: #fff; }
/* 候选句包含已加入句子的部分：置灰提示（仍可选中新片段补充）；颜色与「已加入」候选正文同色（#8F8678），
   替换原浅灰 #B9B3AA——对比度从约 2.3:1 提升到约 3.3:1，原文/候选里已学句可读性（2026-11-07） */
.intensive-word.addsent-contained { color: #8F8678; }
.addsent-contain-tip { margin-top: 4px; font-size: 12px; color: #B0A89E; line-height: 1.5; }
.intensive-selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.intensive-selection-actions .speed-select { margin-right: 2px; }
.intensive-added-tip { margin-top: 7px; }
.intensive-auto-candidates {
    max-height: 280px; overflow-y: auto; margin-top: 10px; padding: 6px 6px 6px 0;
    border-top: 1px dashed #E7DCCB;
}
/* 原文/候选阅读字号宽屏加大（2026-11-07 iPad/电脑）：≥700px 生效。
   弹窗专属规则挂 .add-sent-card（卡片加宽、面板加高仅弹窗）；字号两条线值相同——
   全局线让精读页同款拉齐，弹窗内由更高优先级的 .add-sent-card 规则命中，不冲突 */
@media (min-width: 700px) {
    .add-sent-card { width: min(92%, 720px); }
    .add-sent-card .intensive-transcript-text { font-size: 17px; max-height: 46vh; }
    .add-sent-card .intensive-candidate-en { font-size: 16px; }
    .add-sent-card .intensive-auto-candidates { max-height: 46vh; }
    .add-sent-card .intensive-selection-preview { font-size: 17px; }
    .intensive-transcript-text { font-size: 17px; }
    .intensive-candidate-en { font-size: 16px; }
    .intensive-selection-preview { font-size: 17px; }
    .add-sent-card .intensive-selection-guide,
    .add-sent-card .addsent-contain-tip { font-size: 13px; }
    .intensive-selection-guide,
    .addsent-contain-tip { font-size: 13px; }
}
.intensive-sentence-list { gap: 12px; }
.intensive-course { cursor: pointer; }
.intensive-sentence-source { color: #AAA; font-size: 12px; margin: 2px 0 7px; }
.intensive-sentence-source button {
    border: none; background: #EFE8FA; color: #4a3f6b; border-radius: 999px;
    padding: 2px 8px; margin-right: 4px; font-size: 12px; cursor: pointer;
}
@media (max-width: 380px) {
    .intensive-candidate { align-items: flex-start; flex-direction: column; }
}

.sentence-page-size select, .sentence-print-controls select {
    border: 2px solid var(--cream-border); border-radius: 12px;
    background: var(--card); color: var(--ink); padding: 8px 10px; font-size: 14px;
}
.sentence-print-controls { display: flex; align-items: stretch; justify-content: flex-end; gap: 8px; flex: 1 1 240px; }
.sentence-print-controls select { flex-shrink: 0; max-width: 118px; }
.sentence-print-controls #libPrintBtn { flex: 1; min-width: 0; }

/* 插件实时标签页音视频悬浮窗与录制兔头 */
.ext-live-watch {
    position: fixed; right: 16px; bottom: calc(296px + env(safe-area-inset-bottom)); z-index: 80; width: min(360px, calc(100vw - 32px));
    overflow: hidden; border-radius: 14px; background: #171717; box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.ext-live-watch.intensive-ext-watch {
    position: static; width: 100% !important; max-width: none; z-index: auto;
    border-radius: 12px; box-shadow: none;
}
.ext-live-watch.intensive-ext-watch .ext-live-head,
.ext-live-watch.intensive-ext-watch .ext-live-resize { display: none; }
.ext-live-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; color: #FFF; font-size: 13px; cursor: move; user-select: none; touch-action: none; }
.ext-live-head button { width: 30px; height: 26px; border: 0; border-radius: 7px; background: rgba(255,255,255,.14); color: #FFF; cursor: pointer; }
.ext-live-head-actions { display: flex; gap: 6px; }
.ext-live-head .ext-live-close { font-size: 20px; line-height: 20px; }
.ext-live-head .ext-live-close:hover { background: #C94B40; }
.ext-live-resize { position: absolute; right: 2px; bottom: 2px; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none; }
.ext-live-resize::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-right: 2px solid #AAA; border-bottom: 2px solid #AAA; }
.ext-live-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ext-live-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ext-live-play {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.58);
    color: #FFF; font-size: 17px; font-weight: 700; cursor: pointer;
}
.ext-live-controls { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: #202124; color: #FFF; }
/* 播放器上的 ext 计划条：切集即见关联状态（查看/加入/创建，信息汇总在播放器不依赖配对面板） */
.ext-live-plan { display: flex; align-items: center; gap: 6px; padding: 6px 9px; background: #202124; border-top: 1px solid rgba(255,255,255,.1); color: #FFF; font-size: 12px; }
.ext-live-plan .elp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
/* 集数/已学状态独立 span：标题再长只省略标题，状态永不截断（真机反馈 title 太长看不到第几集） */
.ext-live-plan .elp-state { flex: none; white-space: nowrap; opacity: .92; font-variant-numeric: tabular-nums; }
.ext-live-plan button { border: 0; border-radius: 7px; padding: 4px 9px; background: rgba(255,255,255,.13); color: #FFF; cursor: pointer; font-size: 12px; flex: none; }
.ext-live-plan button.primary { background: #4776E6; }
.ext-live-controls button { min-width: 36px; height: 30px; border: 0; border-radius: 7px; background: rgba(255,255,255,.13); color: #FFF; cursor: pointer; font-size: 12px; }
.ext-live-controls button:hover { background: rgba(255,255,255,.22); }
.ext-live-controls button.active { background: #4D8FD1; }
.ext-live-controls #extLivePlayPause { font-size: 16px; }
.ext-live-play-time { flex: 1; min-width: 0; text-align: right; color: #DDD; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ext-live-collapsed {
    position: fixed; left: 16px; top: 16px; z-index: 80; border: 0; border-radius: 999px;
    padding: 10px 14px; background: #202124; color: #FFF; box-shadow: 0 4px 16px rgba(0,0,0,.24);
    cursor: grab; user-select: none; touch-action: none;
}
.ext-rec-fab {
    position: fixed; right: 16px; bottom: calc(196px + env(safe-area-inset-bottom)); z-index: 85;
    width: 84px; height: 84px; border-radius: 50%; border: 4px solid #F2C14E;
    background: #FFFDF7 url('/assets/brand/rabbit-head.jpg') center / 78% no-repeat;
    box-shadow: 0 3px 12px rgba(0,0,0,.16); cursor: grab; user-select: none; touch-action: none; animation: breathe 2.4s ease-in-out infinite;
}
.ext-rec-fab.recording { border-color: #E5644E; animation: pulse 1.2s ease-out infinite; }
.ext-rec-fab.recording::after { content: '⏹'; position: absolute; right: -3px; bottom: -3px; width: 28px; height: 28px; border-radius: 50%; background: #FFF; color: #E5644E; font-size: 18px; line-height: 28px; }
.ext-rec-fab.busy { border-color: #D8D3C6; animation: none; opacity: .75; cursor: default; }
.ext-rec-fab.done { border-color: #38B96B; animation: none; }
.ext-rec-fab.pending { opacity: .6; cursor: wait; }
.ext-rec-time {
    position: absolute; left: 50%; top: 3px; transform: translateX(-50%);
    min-width: 38px; padding: 1px 5px; border-radius: 8px; background: rgba(0,0,0,.68);
    color: #FFF; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
.ext-live-awaiting { z-index: 970; }
@media (max-width: 700px) {
    .ext-live-watch { right: 8px; bottom: calc(296px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 16px)); }
    .ext-rec-fab { right: 8px; bottom: calc(196px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
    .ext-live-controls { gap: 4px; padding: 6px; }
    .ext-live-controls button { min-width: 32px; padding-left: 3px; padding-right: 3px; }
    .ext-live-play-time { font-size: 10px; }
}
