
        /* 基础字体调整为16px（移动端标准） */
        html { font-size: 26px; }

        .container { 
            display: flex;
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            position: relative;
        }

        .sidebar {
             width: 120px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            transition: all 0.3s ease;
            position: relative;
        }
         /* 折叠状态下的侧边栏 */
        .sidebar.collapsed {
            width: 50px;
            padding: 15px 5px;
        }
 .toggle-btn {
            position: absolute;
            top: 500px;
            right: -25px;
            width: 30px;
            height: 30px;
            background: #2ecc71;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            z-index: 10;
            font-size: 18px;
            transition: transform 0.3s;
        }

        .group-menu {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .group-btn {
            padding: 20px;
            font-size: 20px;
            border: 1px solid #ddd;
            background: white;
            cursor: pointer;
            border-radius: 5px;
            transition: all 0.3s;
        }

        .group-btn.active {
            background: #2ecc71;
            color: white;
            border-color: #27ae60;
        }
        .sidebar.collapsed .group-btn {
            padding: 15px 5px;
            font-size: 16px;
            writing-mode: vertical-rl;
            text-orientation: mixed;
        }

        .group-btn.active {
            background: #2ecc71;
            color: white;
            border-color: #27ae60;
        }
        .content-area {
            flex: 1;
            max-width: 880px;
            min-height: 80vh; /* 确保内容区域足够大 */
             padding-bottom: 60px; /* 为状态栏预留空间 */
             box-sizing: border-box;
              width: 100%;
            height: 100%; /* 添加高度设置 */
            overflow: hidden; /* 防止内部滚动干扰滑动检测 */
            position: relative; /* 确保定位正确 */
            touch-action: pan-y; /* 允许垂直滚动 */
        }
   /* 全屏模式下的内容区域 */
        .sidebar.collapsed + .content-area {
            max-width: 100%;
            flex: 0 0 calc(100% - 50px);
        }
        .mode-buttons { margin-bottom: 20px; }

        .word-list { 
            display: grid; 
            grid-template-columns: repeat(3, 1fr); 
            gap: 15px; 
        }
        .word-controls {
            position: sticky;
            bottom: 10px;
            display: flex;
            justify-content: start;
            margin-top: 20px;
            padding: 10px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 100;
        }
        
        .toggle-all-btn {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 20px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .toggle-all-btn:hover {
            background-color: #45a049;
        }
        
        .toggle-all-btn.reset {
            background-color: #f44336;
        }
        
        .toggle-all-btn.reset:hover {
            background-color: #d32f2f;
        }
        body {
        user-select: none;
       }
       
       /* 修改Choose Lesson按钮样式 */
.choose-lesson-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 15px 0;
    width: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.choose-lesson-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 课程完成状态样式 */
.group-card.completed {
    background: #e74c3c !important;
    color: white;
    position: relative;
    overflow: hidden;
}

.group-card.completed::before {
    content: "Finish";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

/* Done按钮样式 */
.daily-done-btn {
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.daily-done-btn.active {
    background: #27ae60;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.daily-done-btn.active:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

/* 单词控制按钮容器样式调整 */
.word-controls {
      display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}
/* 模态框头部控制区域 */
.modal-header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

/* Done按钮在模态框中的样式 */
.modal-header-controls .daily-done-btn {
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-header-controls .daily-done-btn.active {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    transform: translateY(-1px);
}

.modal-header-controls .daily-done-btn.active:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #58d68d 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

/* Done状态指示文本 */
.done-status-text {
    flex: 1;
    margin-left: 15px;
}

#done-status-indicator {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

#done-status-indicator.unlocked {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.3);
}

/* 长按效果 */
.long-press-effect {
    animation: longPressAnimation 0.3s ease-out;
    background-color: rgba(0, 255, 0, 0.2);
    border-radius: 4px;
}

@keyframes longPressAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
        .word-item { 
            user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
            border: 1px solid #ddd; 
            padding: 10px; 
            cursor: pointer; 
        }
            /* 发音相关样式 */
            .word-item .en {
                cursor: pointer;
                position: relative;
                transition: all 0.2s;
                padding: 5px;
                border-radius: 4px;
            }
            
            .word-item .en:hover {
                background-color: rgba(0, 120, 255, 0.1);
            }
            
           
            .word-item:hover .en::after {
                opacity: 1;
            }
        .hidden { display: none; }

        .eliminated { background: #e0ffe0; }

        .context span.fill { 
            border-bottom: 1px solid #999; 
            margin: 0 2px; 
        }

        .print-only { display: none; }

        /* 已掌握标记样式 */
        .eliminated {
            opacity: 0.5;
            background: #f0f0f0;
            position: relative;
            overflow: hidden;
        }

        .eliminated::after {
            content: "✔ 已掌握";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(76, 175, 80, 0.9);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8em;
        }

        /* 填空样式 */
      /* 空白占位符样式 */
            .blank {
                display: inline-block;
                min-width: 50px;
                border-bottom: 2px solid #666;
                margin: 0 2px;
                height: 1em;
                vertical-align: baseline;
                position: relative;
                top: 0;
            }
            /* 纯文本下划线（仅在打印时显示） */
            .blank-text {
                display: none;
            }
            /* 修复context内容中的垂直对齐 */
            #contextContent > div {
                line-height: 1.8;
                vertical-align: baseline;
            }
        .filled {
            color: #2ecc71;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        /* 内容容器 */
        .context {
            font-size: 1.1em;
            line-height: 1.8;
            margin: 20px;
            padding: 25px;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: relative; /* 定位基准 */
            padding-bottom: 60px; /* 按钮空间 */
        }

        .fill-blanks {
            font-family: 'Source Serif Pro', 'Times New Roman', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            font-kerning: normal;
            text-rendering: optimizeLegibility;
            font-feature-settings: "kern", "liga", "clig", "calt";
            font-size: 1.2em;
            white-space: pre-wrap;
            padding: 25px;
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            line-height: 1.6;
            letter-spacing: 0.1em;
            word-spacing: 0.2em;
            position: relative; /* 定位基准 */
            padding-bottom: 60px; /* 按钮空间 */
        }


        /* 头部控制栏 */
        .header-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            gap: 10px;
        }

        .left-buttons, .right-buttons {
            display: flex;
            gap: 6px;
            font-size: 1em;
            flex-wrap: wrap;
        }
/* 锁定状态下的中英按钮样式 */
.left-buttons button.locked {
    background: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    position: relative;
}

.left-buttons button.locked::after {
    content: "🔒";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.left-buttons button.locked:hover {
    background: #bdc3c7 !important;
    transform: none !important;
    box-shadow: none !important;
}
/* 乱序按钮特殊样式（当被锁定时） */
#shuffle-btn.locked {
    background: #bdc3c7 !important;
    color: #7f8c8d !important;
}
/* 状态指示器的不同状态 */
#done-status-indicator {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#done-status-indicator.unlocked {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.3);
}
        .header-controls button {
            font-size: 0.65em;
            padding: 6px 12px;
            border-radius: 8px;
            transition: all 0.2s;
            white-space: nowrap;
        }

        /* 右侧按钮组 */
        .right-buttons button:last-child {
            margin-left: auto;
            color: black;
        }

        /* 词性音标 */
        .pos {
            font-size: 0.8em;
            color: #87ceeb;
            margin-top: 5px;
        }
/* 组选择模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 85%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.group-filter {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.logout-btn {
    padding: 4px !important;
    background-color: transparent;
    color: #ff4d4f;
}
#group-search {
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #4a76a8;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.alphabet-letter {
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
}

.alphabet-letter:hover, .alphabet-letter.active {
    background-color: #4a76a8;
    color: white;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.group-card {
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.group-card.active {
    background-color: #4a76a8;
    color: white;
    border-color: #2c5282;
}
/* 在原有CSS基础上添加以下样式 */

/* 修复复习选择模态框样式 */
#review-select-modal .modal-content {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.review-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
    box-sizing: border-box;
}

.review-lesson-card {
    padding: 15px 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    user-select: none;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.review-lesson-card:hover {
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: #fff3e0;
}

.review-lesson-card.selected {
    background: #e67e22 !important;
    color: white !important;
    border-color: #d35400 !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4) !important;
    transform: translateY(-2px);
}

.review-lesson-card.selected:hover {
    background: #d35400 !important;
    border-color: #bf4f1a !important;
}

.review-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.review-modal-footer button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.review-modal-footer button:first-child {
    background: #27ae60;
    color: white;
}

.review-modal-footer button:first-child:hover {
    background: #2ecc71;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.review-modal-footer button:last-child {
    background: #95a5a6;
    color: white;
}

.review-modal-footer button:last-child:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* 管理端复习样式 */
#admin-review-modal .modal-content {
    max-width: 900px;
    max-height: 85vh;
}

#admin-review-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
}

#admin-review-lessons-grid .review-lesson-card {
    padding: 15px 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    user-select: none;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

#admin-review-lessons-grid .review-lesson-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: #e3f2fd;
}

#admin-review-lessons-grid .review-lesson-card.selected {
    background: #3498db !important;
    color: white !important;
    border-color: #2980b9 !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4) !important;
}


/* 新增乱序按钮样式 */
        #shuffle-btn {
            background-color: white;
        }
        
        #shuffle-btn:hover {
            background-color: white;
        }
    .word-list.no-animation .word-item {
    animation: none !important;
}
  /* 乱序动画样式 */
        @keyframes shuffleAnimation {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
       /* 确保这个规则不会被覆盖 */
.word-list .word-item.shuffle-animate {
    animation: shuffleAnimation 0.5s ease forwards !important;
    animation-delay: var(--animation-delay) !important;
}

        /* 添加防止动画覆盖的保护 */
        .word-item.shuffle-animate {
            animation: shuffleAnimation 0.5s ease forwards !important;
        }
        
/* 添加播放状态样式 */
 .audio-control {
     display: flex;
    justify-content: flex-end; /* 右对齐 */
    margin-bottom: 15px; /* 保持与内容的间距 */
    }

        
.play-audio-btn {
    background-color: #e74c3c !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* 播放按钮加载状态 */
.play-audio-btn.loading {
    position: relative;
    color: transparent !important;
     
    padding-right: 10px; /* 可选的右边距 */
}

.play-audio-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 跟读按钮样式 */
#follow-read-btn {
    background-color: #3498db !important;
    color: white !important;
}

#follow-read-btn.active {
    background-color: #e74c3c !important;
    animation: pulse 1.5s infinite;
}

/* 当前跟读单词高亮样式 */
.word-item.follow-reading {
    animation: highlightWord 1s infinite alternate;
    border: 2px solid #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

@keyframes highlightWord {
    from {
        background-color: rgba(52, 152, 219, 0.1);
    }
    to {
        background-color: rgba(52, 152, 219, 0.3);
    }
}
        

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-header-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-header-controls .review-mode-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .review-lessons-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 8px;
        padding: 15px;
    }
    
    .review-lesson-card {
        padding: 12px 6px;
        font-size: 14px;
    }
    
    .review-modal-footer {
        flex-direction: column;
    }
    
    .review-modal-footer button {
        width: 100%;
    }
}        
        /* 打印样式 */
        /* 常规样式（非打印时） */
.print-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
}

#print-area {
  font-family: "SimSun", "宋体", serif;
  font-size: 16pt  !important;
  line-height: 1.3;
  width: calc(100% - 40mm) !important; /* 匹配左右边距 */
  min-height: 297mm;
  margin: 0 auto;
   padding: 0 10mm; /* 额外内边距保险 */
  box-sizing: border-box;
}

.print-header, .print-footer {
  text-align: center;
  margin: 10mm 0;
}

.content-body {
  text-align: justify;
  text-justify: inter-ideograph;
}



/* 确保原始内容中的加粗元素有明确标记 */
strong, b {
    font-weight: bold;
}

/* 修复语境内容中的加粗标记 */
.context strong {
    font-weight: 700 !important;
}

/* 修复填空内容中的加粗标记 */
.fill-blanks strong {
    font-weight: 700 !important;
}

        /* 移动端适配 */
        /* 移动端适配 (小于768px) */
        @media (max-width: 768px) {
            /* 基础字号调整为适合手机阅读 */
            /* 新增：增大单词列表字体 */
            .word-item .en, 
            .word-item .zh {
                font-size: 1.5em; /* 增大约一倍 */
                line-height: 1.4;
            }
            .word-item .pos {
                font-size: 1.2em; /* 增大音标/词性字体 */
            }
            
            /* 新增：增大语境和填空区域字体 */
            .context, 
            .fill-blanks {
                font-size: 1.5rem !important; /* 增大并添加!important覆盖原有样式 */
            }

            
            /* 容器改为垂直布局 */
            .container { 
                flex-direction: column;
                padding: 10px;
                min-height: 100vh; /* 撑满整个视口高度 */
            }

            /* 侧边栏全宽度显示 */
            .sidebar {
                width: 100%;
                padding: 10px;
                margin-bottom: 1rem;
            }
            .sidebar.collapsed {
                width: 100%;
                padding: 10px;
            }
               .toggle-btn {
                top: auto;
                bottom: -25px;
                right: 15px;
                background: #3498db;
            }

            /* 组按钮改为水平滚动 */
            .group-menu {
                flex-direction: row;
                overflow-x: auto;
                padding-bottom: 5px; /* 给滚动条留空间 */
            }
             .sidebar.collapsed .group-btn {
                writing-mode: horizontal-tb;
                padding: 10px;
                font-size: 14px;
            }

            .group-btn {
                padding: 5px;
                min-width: 100px;
                font-size: 1.2rem;
            }

            /* 单词列表改为双列显示 */
            .word-list {
                grid-template-columns: repeat(2, 1fr) !important; /* 正确设置为两列 */
                gap: 10px;
            }

            /* 控制栏按钮适应小屏幕 */
            .header-controls {
                flex-direction: column;
                gap: 3px;
            }

            .left-buttons, .right-buttons {
                width: 100%;
                justify-content: space-between;
                font-size: 1.5rem;
            }

            .header-controls button {
                padding: 5px 5px;
                font-size: 1.2rem;
                flex-grow: 1;
            }

            /* 内容区域增加可读性 */
            .context, .fill-blanks {
                padding: 15px;
                font-size: 1.8rem;
                line-height: 1.6;
            }
                  .touch-area {
                display: none;
            }
            /* 打印按钮适当缩小 */
            .print-btn {
                padding: 8px 16px;
                font-size: 0.9rem;
                bottom: 10px;
                right: 10px;
            }

            .review-lessons-grid,
            #admin-review-lessons-grid {
                grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
                gap: 10px;
                padding: 15px;
            }
            
            .review-lesson-card {
                padding: 12px 8px;
                font-size: 13px;
                min-height: 35px;
            }
            
            .review-modal-footer {
                flex-direction: column;
                gap: 10px;
            }
            
            .review-modal-footer button {
                width: 100%;
                min-width: auto;
            }




        }

        /* 超小屏幕适配 (小于480px) */
        @media (max-width: 480px) {
            html { 
                font-size: 14px !important; 
            }
            
            /* 更紧凑的布局 */
            .group-btn {
                padding: 12px;
                min-width: 80px;
            }

            .word-item {
                padding: 8px;
            }

            /* 调整控制按钮内边距 */
            .header-controls button {
                padding: 8px 10px;
            }

            /* 语境内容优化 */
            .context, .fill-blanks {
                padding: 12px;
                font-size: 0.95rem;
            }
        }

        /* 授权验证提示样式 */
        #auth-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        
        .auth-container {
            background: white;
            padding: 40px;
            border-radius: 15px;
            text-align: center;
            max-width: 600px;
            width: 90%;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .auth-container h2 {
            color: #2ecc71;
            font-size: 28px;
            margin-bottom: 20px;
        }
        
        .auth-input {
            width: 100%;
            padding: 15px;
            margin: 20px 0;
            border: 2px solid #2ecc71;
            border-radius: 8px;
            font-size: 18px;
            text-align: center;
        }
        
        .auth-btn {
            background: #2ecc71;
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 18px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
        }
        
        .auth-btn:hover {
            background: #27ae60;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        /* 授权信息底部显示样式 */
        #auth-info {
            position: fixed;
            bottom: 0;
            width: 100%;
            text-align: center;
            background: rgba(255, 255, 255, 0.92);
            padding: 12px 0;
            z-index: 9999;
            font-size: 0.8rem;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            border-top: 1px solid #ddd;
            display: flex;
            justify-content: center;
            gap: 25px;
            backdrop-filter: blur(5px);
                /* 添加折叠效果 */
        transform: translateY(100%); /* 默认隐藏（在屏幕下方） */
        transition: transform 0.3s ease-in-out;
         will-change: transform; /* 优化动画性能 */
      
        }
        /* 滚动提示器 */
        #scroll-indicator {
            position: fixed;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0.3;
            transition: opacity 0.3s;
            font-size: 12px;
            background: rgba(255,255,255,0.8);
            padding: 4px 10px;
            border-radius: 10px;
            cursor: pointer;
            z-index: 9998;
            white-space: nowrap;
        }
        
        #scroll-indicator:hover {
            opacity: 1;
        }

        #auth-info.visible {
        transform: translateY(0); /* 显示出来 */
        }
        .auth-info-item {
            padding: 0 15px;
        }
        
        .auth-info-item .label {
            font-weight: bold;
            color: #2ecc71;
            margin-right: 5px;
        }
        
        #remaining-time {
            font-weight: bold;
            color: #c0392b;
        }
        
        .activation-success {
            animation: pulseSuccess 1.5s ease-in-out infinite;
            font-weight: bold;
            padding: 12px 20px;
            border-radius: 6px;
            background: rgba(39, 174, 96, 0.15);
            display: inline-block;
            margin: 15px 0;
        }
        
        @keyframes pulseSuccess {
            0% { transform: scale(1); background-color: rgba(39, 174, 96, 0.1); }
            50% { transform: scale(1.02); background-color: rgba(39, 174, 96, 0.25); }
            100% { transform: scale(1); background-color: rgba(39, 174, 96, 0.1); }
        }
        
        /* 授权信息样式增强 */
        #auth-message {
            min-height: 30px;
            padding: 5px 0;
            font-weight: bold;
            font-size: 16px;
            display: none; /* 初始隐藏，需要时显示 */
        }

        .auth-message-title {
            font-size: 18px;
            margin-bottom: 15px;
        }
        
        .loader {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid #2ecc71;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
            display: inline-block;
            margin-right: 10px;
            vertical-align: middle;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
