@charset "utf-8";
/* CSS Document */

/* ===== StoryR ===== */


        /* ===== 逐词高亮 ===== */
        .lrc-word {
            border-radius: 3px;
            transition: background-color 0.0s ease-out, color 0.0s ease-out;/* 高亮出现时快（.08s），消失时慢（1.0s），形成"影子"拖尾 */
        }
        .lrc-word.lrc-word-active {
            background-color: #ffd54a;
            color: #4a3400;
			transition: background-color .08s linear, color .08s linear;/* 高亮瞬间点亮，不要过渡延迟 */
        }


        /* ===== 课程头部卡片 ===== */
        .lrc-lesson-header {
            max-width: 980px;
			margin: 20px auto;
			background: #ffffff;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 36px;
            padding: 1.8rem 2.2rem;
            box-shadow: 0 20px 50px rgba(0, 20, 30, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(255,255,255,0.6);
            max-height: none;
            overflow-y: visible;
            scrollbar-width: none;
            -ms-overflow-style: none;
			font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;	
			display: flex;
            align-items: center;
	
        }

        .lrc-lesson-header:hover {
            box-shadow: 0 24px 60px rgba(0, 20, 30, 0.14);
            background: rgba(255, 255, 255, 0.8);
        }

        /* 特色图片 */
        .lrc-lesson-image {
            flex: 0 0 320px;
            height: auto;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	        background: #eef4f9;  /* 浅灰绿色，与主题协调 */
	        margin:0 1.8rem 0 0;
        }
        .lrc-lesson-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }
        .lrc-lesson-header:hover .lrc-lesson-image img {
            transform: scale(1.03);
        }

        /* 课程信息 */
        .lrc-lesson-info {
            flex: 1;
            min-width: 0; /* 防止溢出 */
        }
        .lrc-lesson-summary {
            font-size: 1rem;
            line-height: 1.6;
            color: #4a5a6a;
            margin: 0;
        }



        /* ===== 转录文本区域（无滚动轴） ===== */
        .lrc-transcript {
            max-width: 980px;
			margin: 20px auto;
			background: #ffffff;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 36px;
            padding: 1.8rem 2.2rem;
            box-shadow: 0 20px 50px rgba(0, 20, 30, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(255,255,255,0.6);
            max-height: none;
            overflow-y: visible;
            scrollbar-width: none;
            -ms-overflow-style: none;
			font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
        }
        .lrc-transcript::-webkit-scrollbar {
            display: none;
        }

        .lrc-sentence {
            margin: 0.9rem 0;
            padding: 0.7rem 3rem 0.7rem 1.2rem;
            border-radius: 16px;
            background: #f8fafc;
            border-left: 4px solid transparent;
            transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
            cursor: pointer;
            position: relative;
        }
        .lrc-sentence:hover {
            background: #eef4f9;
            border-left-color: #b0c8da;
        }
        .lrc-sentence.active {
            background: rgba(144, 238, 144, 0.25);
            border-left-color: #88d8a8;
            box-shadow: 0 4px 14px rgba(136, 216, 168, 0.25);
            transform: scale(1.01);
        }
        .lrc-sentence.active::after {
            content: "▶";
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            color: #88d8a8;
            opacity: 0.6;
            animation: lrc-pulse 1.2s ease-in-out infinite;
        }
        @keyframes lrc-pulse {
            0% { opacity: 0.4; transform: translateY(-50%) scale(0.9); }
            50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
            100% { opacity: 0.4; transform: translateY(-50%) scale(0.9); }
        }

        .lrc-pinyin {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #8a9aa8;
            margin-bottom: 0.1rem;
            transition: all 0.25s ease;
			cursor: pointer;
        }
        .lrc-pinyin.hidden {
            display: none;
        }
        .lrc-cn {
            font-size: 1.2rem;
            line-height: 1.8;
            color: #1e2f3f;
            font-weight: 500;
			cursor: pointer;
        }
        .lrc-translation {
            font-size: 1rem;
            line-height: 1.6;
            color: #5a7a8a;
            margin-top: 0.2rem;
            font-style: italic;
            transition: all 0.25s ease;
        }
        .lrc-translation.hidden {
            display: none;
        }

        /* ===== 词汇 / 语法标记 - 无角标 ===== */
        .lrc-vocab,
        .lrc-grammar {
            position: relative;
            cursor: pointer;
            padding: 2px 4px;
			font-weight:600;
            transition: background 0.2s, color 0.2s;
            border-radius: 3px;
        }
        .lrc-vocab {
            border-bottom-color: #4caf84;
            color: #1e6b4c;
        }
        .lrc-grammar {
            border-bottom-color: #e8a830;
            color: #a87b1a;
        }

        .lrc-vocab::after,
        .lrc-grammar::after {
            content: none;
        }

        .lrc-vocab:hover,
        .lrc-grammar:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .lrc-popup-data {
            display: none;
        }

        /* ===== 模态框（白色弹出框） ===== */
        .lrc-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        .lrc-modal-overlay.show {
            display: flex;
        }

        .lrc-modal-card {
            background: #ffffff;
            color: #1e2f3f;
            max-width: 700px;
            width: 90%;
            padding: 30px;
            border-radius: 28px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            animation: lrc-modalFade 0.25s ease;
            max-height: 65vh;
            overflow-y: auto;
            cursor: default;
			margin:10px;
			/* 新增/修改以下属性 */
            overflow-x: hidden;           /* 禁止横向滚动 */
            word-wrap: break-word;        /* 允许长单词或URL换行 */
            overflow-wrap: break-word;    /* 更现代的换行属性（兼容） */
        }
        .lrc-modal-card::-webkit-scrollbar {
            width: 8px;
        }
        .lrc-modal-card::-webkit-scrollbar-track {
            background: #f0f2f5;
            margin-top: 50px;
			margin-bottom: 50px;
			border-radius: 10px;
        }
        .lrc-modal-card::-webkit-scrollbar-thumb {
            background: #cbd8e3;
            border-radius: 10px;
            transition: background 0.2s;
			
			
        }
        .lrc-modal-card::-webkit-scrollbar-thumb:hover {
            background: #a8bccb;
        }

        @keyframes lrc-modalFade {
            from {
                opacity: 0;
                transform: scale(0.92) translateY(8px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .lrc-modal-card .lrc-modal-close {
            position: absolute;
            top: 14px;
            right: 20px;
            font-size: 1.8rem;
            cursor: pointer;
            color: #6b7f8f;
            transition: color 0.2s, transform 0.2s;
            line-height: 1;
        }
        .lrc-modal-card .lrc-modal-close:hover {
            color: #1a2b3c;
            transform: rotate(90deg);
        }

        /* ===== 标题（Vocab / Grammar）居中 ===== */
        .lrc-modal-type {
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #4caf84;
            margin-bottom: 1.2rem; /* 与下方内容拉开距离 */
            font-weight: 500;
            text-align: center; /* 居中 */
            padding-bottom: 0.6rem;
            border-bottom: 2px solid #f0f2f5; /* 视觉分隔线 */
        }

        /* 术语 + 词性 在同一行 */
        .lrc-modal-term {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #1a2b3c;
            line-height: 1.3;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px 16px;
        }
        .lrc-modal-term .lrc-modal-icon {
            display: none;
        }
        .lrc-modal-term .lrc-modal-term-text {
            flex-shrink: 0;
        }
        .lrc-modal-pos {
            font-size: 0.85rem;
            color: #4caf84;
            background: rgba(76, 175, 132, 0.1);
            padding: 0.05rem 0.7rem;
            border-radius: 20px;
            font-weight: 400;
            flex-shrink: 0;
            display: inline-block;
        }
        .lrc-modal-pos.hidden {
            display: none;
        }

        .lrc-modal-pinyin {
            font-size: 1rem;
            color: #5a7a8a;
            margin-bottom: 0.4rem;
        }
        .lrc-modal-en {
            font-size: 1rem;
            color: #1e2f3f;
            margin-bottom: 0.4rem;
        }
        .lrc-modal-def {
            font-size: 1.05rem;
            line-height: 1.7;
            color: #1e2f3f;
            margin-bottom: 0.8rem;
			white-space: pre-line;          /* 确保换行生效 */
        }

        /* ===== 例句区域（白色主题）- 每个例句独立开关 ===== */
        .lrc-modal-example-wrapper {
            margin-top: 1.2rem;
        }
        .lrc-modal-example-block {
            margin-bottom: 1rem;
            padding-bottom: 0.6rem;
            border-bottom: 1px solid #f0f2f5;
        }
        .lrc-modal-example-block:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        /* 例句头部：标签 + 开关在同一行 */
        .lrc-modal-example-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.2rem;
        }
        .lrc-modal-example-label {
            font-weight: 500;
            color: #8a9aa8;
            font-size: 1rem;
        }

        /* 例句开关组（开关 + 提示文字） */
        .lrc-example-toggle-group {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.6rem;
            color: #6b7f8f;
        }
        .lrc-example-toggle-group .lrc-toggle-hint {
            font-size: 0.8rem;
            color: #8a9aa8;
            user-select: none;
			margin:0 4px 6px 0;
        }

        /* 例句开关（更小尺寸） */
        .lrc-example-switch {
            position: relative;
            display: inline-block;
			width: 25px;
            height: 14px;
            flex-shrink: 0;
			margin-bottom:5px;
        }
        .lrc-example-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .lrc-example-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #d0d8e0;
            transition: background 0.3s ease;
            border-radius: 34px;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
        }
        .lrc-example-slider::before {
            content: "";
            position: absolute;
            height: 10px;
            width: 10px;
            left: 2px;
            bottom: 2px;
            background: white;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        }
        .lrc-example-switch input:checked + .lrc-example-slider {
            background: linear-gradient(135deg, #7ec8a0, #4caf84);
        }
        .lrc-example-switch input:checked + .lrc-example-slider::before {
            transform: translateX(8px);
        }
        .lrc-example-switch input:focus-visible + .lrc-example-slider {
            box-shadow: 0 0 0 2px rgba(76, 175, 132, 0.3);
        }

        .lrc-modal-example-pinyin {
            font-size: 0.9rem;
            color: #6b7f8f;
            line-height: 1.5;
            margin-bottom: 0.1rem;
			margin-top:12px;
            letter-spacing: 0.3px;
            padding-left: 10px;
            transition: all 0.25s ease;
        }
        .lrc-modal-example-pinyin.example-hidden {
            display: none;
        }

        .lrc-modal-example {
            font-size: 1.2rem;
            line-height: 1.7;
            color: #1e2f3f;
            padding: 0.5rem 1rem;
            background: #f8fafc;
            border-radius: 12px;
        }

        .lrc-modal-example-translation {
            font-size: 0.9rem;
            color: #6b7f8f;
            line-height: 1.5;
            margin-top: 0.2rem;
            padding-left: 10px;
            font-style: normal;
            border-left: none;
            transition: all 0.25s ease;
        }
        .lrc-modal-example-translation.example-hidden {
            display: none;
        }

        .lrc-modal-example-pinyin:empty,
        .lrc-modal-example-translation:empty {
            display: none;
        }

        /* ===== 例句中的高亮样式 ===== */
        .lrc-highlight-vocab {
            background: rgba(76, 175, 132, 0.15);
            color: #1e6b4c;
            font-weight: 600;
            padding: 0.1rem 0.3rem;
            border-radius: 4px;
        }
        .lrc-highlight-grammar {
            background: rgba(232, 168, 48, 0.15);
            color: #a87b1a;
            font-weight: 600;
            padding: 0.1rem 0.3rem;
            border-radius: 4px;
        }

        /* ===== 底部控制栏（播放器 + 右侧开关） ===== */
        .lrc-bottom-bar {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            background: rgba(144, 238, 144, 0.20);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 60px;
            padding: 6px 18px 6px 18px;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(144, 238, 144, 0.3);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
            transition: all 0.3s ease;
            box-sizing: border-box;
            flex-wrap: nowrap;
        }
        .lrc-bottom-bar:hover {
            background: rgba(144, 238, 144, 0.30);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        }

        .lrc-player-section {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }

        /* ===== 播放按钮 - SVG图标，完全居中无偏移 ===== */
        .lrc-player-btn {
            background: rgba(144, 238, 144, 0.15);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            flex-shrink: 0;
            padding: 1px 0px 0px 2px;
            margin-right: 10px;
            color: #2a5a3a;
        }
        .lrc-player-btn:hover {
            background: rgba(144, 238, 144, 0.35);
        }
        .lrc-player-btn:active {
            transform: scale(0.92);
        }
        .lrc-player-btn svg {
            display: block;
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .lrc-progress-container {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .lrc-progress-time {
            color: #2a5a3a;
            font-size: 0.7rem;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            letter-spacing: 0.2px;
            font-weight: 400;
        }

        .lrc-bottom-bar input[type="range"].lrc-progress-slider {
            -webkit-appearance: none !important;
            appearance: none !important;
            flex: 1;
            height: 3px !important;
            border-radius: 4px !important;
            background: #d0d8e0 !important;
            outline: none !important;
            min-width: 30px !important;
            transition: background 0.2s;
            border: none !important;
            padding: 0 !important;
            box-shadow: none !important;
            margin: 0 !important;
        }
        .lrc-bottom-bar input[type="range"].lrc-progress-slider::-webkit-slider-thumb {
            -webkit-appearance: none !important;
            appearance: none !important;
            width: 12px !important;
            height: 12px !important;
            border-radius: 50% !important;
            background: #88d8a8 !important;
            cursor: pointer !important;
            box-shadow: 0 1px 4px rgba(136, 216, 168, 0.4) !important;
            border: none !important;
            transition: 0.15s;
            margin-top: -1px;
        }
        .lrc-bottom-bar input[type="range"].lrc-progress-slider::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 2px 8px rgba(136, 216, 168, 0.5) !important;
        }
        .lrc-bottom-bar input[type="range"].lrc-progress-slider::-moz-range-thumb {
            width: 12px !important;
            height: 12px !important;
            border-radius: 50% !important;
            background: #88d8a8 !important;
            cursor: pointer !important;
            border: none !important;
            box-shadow: 0 1px 4px rgba(136, 216, 168, 0.4) !important;
        }
        .lrc-bottom-bar input[type="range"].lrc-progress-slider {
            background: linear-gradient(to right, #88d8a8 0%, #88d8a8 0%, #d0d8e0 0%, #d0d8e0 100%) !important;
        }

        .lrc-toggle-group {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            padding-left: 4px;
            border-left: 1px solid rgba(144, 238, 144, 0.3);
        }
        .lrc-toggle-item {
            display: flex;
            align-items: center;
            gap: 3px;
            cursor: pointer;
            user-select: none;
            font-size: 0.75rem;
            color: #2a5a3a;
            background: rgba(144, 238, 144, 0.15);
            padding: 2px 7px 2px 5px;
            border-radius: 30px;
            border: 1px solid rgba(144, 238, 144, 0.2);
            transition: background 0.2s;
            white-space: nowrap;
        }
        .lrc-toggle-item:hover {
            background: rgba(144, 238, 144, 0.30);
        }
        .lrc-switch {
            position: relative;
            display: inline-block;
            width: 28px;
            height: 17px;
            flex-shrink: 0;
        }
        .lrc-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .lrc-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #d0d8e0;
            transition: background 0.3s ease;
            border-radius: 34px;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
        }
        .lrc-slider::before {
            content: "";
            position: absolute;
            height: 13px;
            width: 13px;
            left: 2px;
            bottom: 2px;
            background: white;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            border-radius: 50%;
            box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        }
        .lrc-switch input:checked + .lrc-slider {
            background: linear-gradient(135deg, #7ec8a0, #4caf84);
        }
        .lrc-switch input:checked + .lrc-slider::before {
            transform: translateX(11px);
        }
        .lrc-toggle-label {
            font-size: 0.7rem;
            font-weight: 500;
            color: #2a5a3a;
            letter-spacing: 0.3px;
        }
        .lrc-toggle-status {
            font-size: 0.6rem;
            font-weight: 600;
            color: #6b7f8f;
            background: rgba(0,0,0,0.04);
            padding: 0 0.4rem;
            border-radius: 10px;
            min-width: 1.2rem;
            text-align: center;
        }
        .lrc-switch input:checked ~ .lrc-toggle-status {
            background: rgba(76, 175, 132, 0.2);
            color: #2a6b4a;
        }


/* ===== NR ===== */

/* ===== 逐词高亮 ===== */
.nr-word {
    border-radius: 3px;
    transition: background-color 0.0s ease-out, color 0.0s ease-out;
    cursor: pointer;
}
.nr-word.nr-word-active {
    background-color: #ffd54a;
    color: #4a3400;
    transition: background-color .08s linear, color .08s linear;
}

/* ============================================================
   顶部固定显示区（吸顶）
   ============================================================ */
.nr-top-panel {
    position: sticky;
    top: 0;
    z-index: 900;
    max-width: 980px;
    margin: 20px auto;
    padding: 15px 16px 12px;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 24, 40, 0.09), 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: box-shadow 0.3s ease;

}

.nr-top-panel:hover {
    box-shadow: 0 14px 38px rgba(0, 24, 40, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nr-panel-block {
    border-radius: 14px;
    padding: 8px 20px;
	margin:4px 20px;
    transition: background 0.25s ease;
}
.nr-block-pinyin {
    background: rgba(238, 249, 243, 0.75);
    border-left: 3px solid rgba(136, 216, 168, 0.55);
}
.nr-block-translation {
    background: rgba(240, 246, 252, 0.75);
    border-left: 3px solid rgba(160, 196, 226, 0.55);
}

.nr-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}
.nr-panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #93a5b3;
    user-select: none;
}
.nr-block-pinyin .nr-panel-label { color: #6fae8f; }
.nr-block-translation .nr-panel-label { color: #7d9fbd; }

.nr-panel-body {
    font-size: 1rem;
    line-height: 1.65;
    min-height: 1.65em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: opacity 0.2s ease;
}
.nr-block-pinyin .nr-panel-body {
    font-size: 0.94rem;
    color: #5d7f70;
    letter-spacing: 0.02em;
}
.nr-block-translation .nr-panel-body {
    font-size: 0.95rem;
    color: #4a6a83;
    font-style: italic;
}

.nr-panel-block.nr-collapsed .nr-panel-body {
    display: none;
}
.nr-panel-block.nr-collapsed {
    padding-bottom: 6px;
    opacity: 0.75;
}

/* ===== 迷你开关 ===== */
.nr-mini-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}
.nr-mini-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.nr-mini-slider {
    position: absolute;
    inset: 0;
    background: #d3dbe2;
    border-radius: 30px;
    transition: background 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.nr-mini-slider::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    z-index: 3;
}
.nr-mini-switch input:checked + .nr-mini-slider {
    background: linear-gradient(135deg, #7ec8a0, #4caf84);
}
.nr-mini-switch input:checked + .nr-mini-slider::before {
    transform: translateX(18px);
}
.nr-mini-switch input:focus-visible + .nr-mini-slider {
    box-shadow: 0 0 0 2px rgba(76, 175, 132, 0.35);
}

.nr-mini-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
	padding:0px 2px;
}
.nr-mini-text-on {
    left: 4px;
    color: #4caf84;
}
.nr-mini-text-off {
    right: 4px;
    color: #8896a3;
}
.nr-mini-switch input:checked ~ .nr-mini-text-on {
    color: #ffffff;
}
.nr-mini-switch input:checked ~ .nr-mini-text-off {
    color: #ffffff;
}

/* ============================================================
   课程头部卡片
   ============================================================ */
.nr-lesson-header {

    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
	
	max-width: 980px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 2.4rem 3rem 3.4rem;
    box-shadow: 0 16px 40px rgba(0, 20, 30, 0.08), 0 6px 18px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255,255,255,0.7);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
}
.nr-lesson-header:hover {
    box-shadow: 0 20px 50px rgba(0, 20, 30, 0.11);
}

.nr-lesson-image {
    flex: 0 0 300px;
    border-radius: 18px;
    overflow: hidden;
    background: #eef4f9;
    margin: 0 1.8rem 0 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.nr-lesson-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.nr-lesson-header:hover .nr-lesson-image img {
    transform: scale(1.04);
}

.nr-lesson-info { flex: 1; min-width: 0; }

.nr-lesson-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #16293a;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.nr-lesson-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #6b8a9e;
    margin: 0 0 0.6rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.nr-lesson-summary {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #5a6f80;
    margin: 0;
}

/* ============================================================
   正文
   ============================================================ */
.nr-transcript {
    max-width: 980px;
    margin: 20px auto 100px;
    background: #ffffff;
    border-radius: 30px;
    padding: 2.4rem 3rem 3.4rem;
    box-shadow: 0 16px 40px rgba(0, 20, 30, 0.08), 0 6px 18px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255,255,255,0.7);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
}

.nr-transcript .nr-pinyin,
.nr-transcript .nr-translation {
    display: none !important;
}

.nr-sentence {
    margin: 10px 0px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s ease;
}

.nr-sentence:hover {
    background: rgba(240, 246, 251, 0.85);
	cursor: pointer;
}

.nr-sentence.active {
    background: rgba(144, 238, 144, 0.17);
}

.nr-cn {
    font-size: 1.24rem;
    line-height: 2.0;
    color: #1e2f3f;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ============================================================
   词汇 / 语法标记
   ============================================================ */
.nr-vocab,
.nr-grammar {
    position: relative;
    cursor: pointer;
    padding: 2px 4px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    border-radius: 3px;
}
.nr-vocab { color: #1e6b4c; }
.nr-grammar { color: #a87b1a; }
.nr-vocab:hover,
.nr-grammar:hover {
    background: rgba(0, 0, 0, 0.045);
}

.nr-popup-data { display: none; }

/* ============================================================
   模态框
   ============================================================ */
.nr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.nr-modal-overlay.show { display: flex; }

.nr-modal-card {
    background: #ffffff;
    color: #1e2f3f;
    max-width: 700px;
    width: 90%;
    padding: 30px;
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: nr-modalFade 0.25s ease;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: default;
    margin: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.nr-modal-card::-webkit-scrollbar { width: 8px; }
.nr-modal-card::-webkit-scrollbar-track {
    background: #f0f2f5;
    margin-top: 50px;
    margin-bottom: 50px;
    border-radius: 10px;
}
.nr-modal-card::-webkit-scrollbar-thumb {
    background: #cbd8e3;
    border-radius: 10px;
}
.nr-modal-card::-webkit-scrollbar-thumb:hover { background: #a8bccb; }

@keyframes nr-modalFade {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.nr-modal-card .nr-modal-close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7f8f;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}
.nr-modal-card .nr-modal-close:hover {
    color: #1a2b3c;
    transform: rotate(90deg);
}

.nr-modal-type {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4caf84;
    margin-bottom: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f0f2f5;
}

.nr-modal-term {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a2b3c;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.nr-modal-icon { display: none; }
.nr-modal-term-text { flex-shrink: 0; }

.nr-modal-pos {
    font-size: 0.85rem;
    color: #4caf84;
    background: rgba(76, 175, 132, 0.1);
    padding: 0.05rem 0.7rem;
    border-radius: 20px;
    font-weight: 400;
    flex-shrink: 0;
    display: inline-block;
}
.nr-modal-pos.hidden { display: none; }

.nr-modal-pinyin {
    font-size: 1rem;
    color: #5a7a8a;
    margin-bottom: 0.4rem;
}
.nr-modal-en {
    font-size: 1rem;
    color: #1e2f3f;
    margin-bottom: 0.4rem;
}
.nr-modal-def {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e2f3f;
    margin-bottom: 0.8rem;
    white-space: pre-line;
}

/* ===== 例句区域 ===== */
.nr-modal-example-wrapper { margin-top: 1.2rem; }

.nr-modal-example-block {
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f0f2f5;
}
.nr-modal-example-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.nr-modal-example-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}
.nr-modal-example-label {
    font-weight: 500;
    color: #8a9aa8;
    font-size: 1rem;
}

.nr-example-toggle-group {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: #6b7f8f;
}
.nr-example-toggle-group .nr-toggle-hint {
    font-size: 0.8rem;
    color: #8a9aa8;
    user-select: none;
    margin: 0 4px 6px 0;
}

.nr-example-switch {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 14px;
    flex-shrink: 0;
    margin-bottom: 5px;
}
.nr-example-switch input { opacity: 0; width: 0; height: 0; }
.nr-example-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #d0d8e0;
    transition: background 0.3s ease;
    border-radius: 34px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.nr-example-slider::before {
    content: "";
    position: absolute;
    height: 10px;
    width: 10px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.nr-example-switch input:checked + .nr-example-slider {
    background: linear-gradient(135deg, #7ec8a0, #4caf84);
}
.nr-example-switch input:checked + .nr-example-slider::before {
    transform: translateX(8px);
}
.nr-example-switch input:focus-visible + .nr-example-slider {
    box-shadow: 0 0 0 2px rgba(76, 175, 132, 0.3);
}

.nr-modal-example-pinyin {
    font-size: 0.9rem;
    color: #6b7f8f;
    line-height: 1.5;
    margin-top: 12px;
    margin-bottom: 0.1rem;
    letter-spacing: 0.3px;
    padding-left: 10px;
    transition: all 0.25s ease;
}
.nr-modal-example-pinyin.example-hidden { display: none; }

.nr-modal-example {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #1e2f3f;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.nr-modal-example-translation {
    font-size: 0.9rem;
    color: #6b7f8f;
    line-height: 1.5;
    margin-top: 0.2rem;
    padding-left: 10px;
    transition: all 0.25s ease;
}
.nr-modal-example-translation.example-hidden { display: none; }

.nr-modal-example-pinyin:empty,
.nr-modal-example-translation:empty { display: none; }

.nr-highlight-vocab {
    background: rgba(76, 175, 132, 0.15);
    color: #1e6b4c;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}
.nr-highlight-grammar {
    background: rgba(232, 168, 48, 0.15);
    color: #a87b1a;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* ============================================================
   底部播放条
   ============================================================ */
.nr-bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 90%);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: 60px;
    padding: 7px 20px;
    box-shadow: 0 8px 28px rgba(0, 20, 30, 0.10), 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(144, 238, 144, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nr-bottom-bar:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 36px rgba(0, 20, 30, 0.13);
}

.nr-player-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.nr-player-btn {
    background: rgba(144, 238, 144, 0.22);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
    padding: 1px 0 0 2px;
    margin-right: 8px;
    color: #2a5a3a;
}
.nr-player-btn:hover { background: rgba(144, 238, 144, 0.4); }
.nr-player-btn:active { transform: scale(0.92); }
.nr-player-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nr-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nr-progress-time {
    color: #3d5f4c;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.nr-bottom-bar input[type="range"].nr-progress-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 1;
    height: 3px !important;
    border-radius: 4px !important;
    background: #d0d8e0 !important;
    outline: none !important;
    min-width: 30px !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background 0.2s;
}
.nr-bottom-bar input[type="range"].nr-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #88d8a8 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 4px rgba(136, 216, 168, 0.4) !important;
    border: none !important;
    transition: 0.15s;
    margin-top: -1px;
}
.nr-bottom-bar input[type="range"].nr-progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(136, 216, 168, 0.5) !important;
}
.nr-bottom-bar input[type="range"].nr-progress-slider::-moz-range-thumb {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #88d8a8 !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(136, 216, 168, 0.4) !important;
}

/* ===== 会员提示气泡 ===== */
.nr-player-section {
    position: relative;
}

.nr-membership-tip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #ffc233;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 50;
}

.nr-membership-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #ffb606;
}

.nr-membership-tip.nr-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nr-membership-tip a {
    color: #1a1a1a !important;
    text-decoration: underline !important;
}

/* 播放按钮上的小红点 */
.nr-player-btn.nr-locked::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #ff3838;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    animation: nrPulse 1.6s ease-in-out infinite;
}

@keyframes nrPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.75; }
}



        /* ===== 响应式 ===== */
        @media (max-width: 600px) {
            .lrc-transcript {
                padding: 1.2rem 1rem;
                max-height: none;
                overflow-y: visible;
            }
            .lrc-cn {
                font-size: 1rem;
            }
            .lrc-pinyin {
                font-size: 0.85rem;
            }
            .lrc-translation {
                font-size: 0.9rem;
            }
            .lrc-bottom-bar {
                padding: 4px 12px;
                gap: 6px;
                bottom: 12px;
                width: 90%;
                border-radius: 40px;
                flex-wrap: nowrap;
            }
            .lrc-player-section {
                gap: 6px;
            }
            .lrc-player-btn {
                width: 28px;
                height: 28px;
                margin-right: 6px;
            }
            .lrc-player-btn svg {
                width: 18px;
                height: 18px;
            }
            .lrc-progress-time {
                font-size: 0.6rem;
            }
            .lrc-toggle-group {
                gap: 4px;
                padding-left: 6px;
            }
            .lrc-toggle-item {
                font-size: 0.65rem;
                padding: 1px 5px 1px 4px;
                gap: 2px;
            }
            .lrc-switch {
                width: 24px;
                height: 15px;
            }
            .lrc-slider::before {
                height: 11px;
                width: 11px;
                left: 2px;
                bottom: 2px;
            }
            .lrc-switch input:checked + .lrc-slider::before {
                transform: translateX(9px);
            }
            .lrc-toggle-label {
                font-size: 0.6rem;
            }
            .lrc-toggle-status {
                font-size: 0.5rem;
                padding: 0 0.3rem;
                min-width: 1rem;
            }
            .lrc-modal-card {
                padding: 1.5rem 1.5rem 1.5rem;
                max-height: 60vh;
            }
            .lrc-modal-type {
                font-size: 0.95rem;
                margin-bottom: 1rem;
            }
            .lrc-modal-term {
                font-size: 1.4rem;
                gap: 6px 12px;
            }
            .lrc-modal-pos {
                font-size: 0.75rem;
                padding: 0.05rem 0.5rem;
            }
            .lrc-vocab,
            .lrc-grammar {
                padding: 0 2px;
                margin: 0 2px;
            }
            .lrc-modal-example {
                font-size: 1.2rem;
                padding: 0.5rem 0.8rem;
            }
            .lrc-modal-example-pinyin {
                font-size: 0.9rem;
            }
            .lrc-modal-example-translation {
                font-size: 0.9rem;
            }
            .lrc-modal-example-label {
                font-size: 1rem;
            }
            .lrc-modal-example-wrapper {
                margin-top: 1rem;
            }
            .lrc-example-switch {
                width: 25px;
                height: 14px;
            }
            .lrc-example-slider::before {
                height: 10px;
                width: 10px;
                left: 2px;
                bottom: 2px;
            }
            .lrc-example-switch input:checked + .lrc-example-slider::before {
                transform: translateX(10px);
            }

            .lrc-lesson-header {
                flex-direction: column;
                align-items: stretch;
            }
            .lrc-lesson-image {
                flex: none;
				margin:0 0 1.8rem;
            }
            .lrc-lesson-summary {
                padding:0 6px;
            }


    .nr-top-panel {
        padding: 8px 10px 10px;
        border-radius: 20px;
        gap: 5px;
    }
    .nr-panel-block {
        padding: 5px 11px 7px;
        border-radius: 12px;
    }
    .nr-panel-label { font-size: 0.8rem; }
    .nr-block-pinyin .nr-panel-body { font-size: 0.86rem; }
    .nr-block-translation .nr-panel-body { font-size: 0.88rem; }

    .nr-lesson-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem 1.3rem;
        margin-top: 16px;
        border-radius: 24px;
    }
    .nr-lesson-image {
        flex: none;
        margin: 0 0 1.2rem;
    }
    .nr-lesson-title { font-size: 1.2rem; }

    .nr-transcript {
        padding: 1.4rem 1.1rem 2.4rem;
        margin-bottom: 130px;
        border-radius: 24px;
    }
    .nr-cn { font-size: 1.06rem; line-height: 1.95; }
    .nr-sentence { padding: 5px 6px; }

    .nr-bottom-bar {
        padding: 5px 14px;
        gap: 6px;
        bottom: 12px;
        width: 92%;
        border-radius: 40px;
    }
    .nr-player-btn {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }
    .nr-player-btn svg { width: 18px; height: 18px; }
    .nr-progress-time { font-size: 0.62rem; }

    .nr-modal-card { padding: 1.5rem 1.5rem 1.5rem; max-height: 60vh; }
    .nr-modal-type { font-size: 0.95rem; margin-bottom: 1rem; }
    .nr-modal-term { font-size: 1.4rem; gap: 6px 12px; }
    .nr-modal-pos { font-size: 0.75rem; padding: 0.05rem 0.5rem; }
    .nr-modal-example { font-size: 1.2rem; padding: 0.5rem 0.8rem; }
    .nr-modal-example-pinyin { font-size: 0.9rem; }
    .nr-modal-example-translation { font-size: 0.9rem; }
    .nr-modal-example-label { font-size: 1rem; }

        }
		
		
        @media (max-width: 400px) {
			.lrc-sentence.active::after {
                display: none;
            }
			
			.lrc-toggle-status {
                display: none;
            }
			
			.nr-cn { font-size: 1rem; }
        }