/* 快捷选择学生样式 - 从index.html分离 */
/* 悬浮按钮样式 - 更小巧精致 */
.quick-student-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.35), 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fabPulse 2.5s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 3px 15px rgba(102, 126, 234, 0.35), 0 6px 20px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5), 0 8px 25px rgba(0, 0, 0, 0.2); }
}

.quick-student-fab:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45), 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: none;
}

.quick-student-fab:active {
    transform: scale(0.96);
}

.fab-icon {
    font-size: 22px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
    transition: transform 0.25s ease;
}

.quick-student-fab:hover .fab-icon {
    transform: scale(1.15);
}

/* 提示文字 */
.fab-tooltip {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(30, 41, 59, 0.95);
}

.quick-student-fab:hover .fab-tooltip {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* 模态框样式 */
.quick-student-modal .modal-content {
    max-width: 98vw;
    max-height: 95vh;
    width: 1400px;
    display: flex;
    flex-direction: column;
    /* 添加过渡动画 */
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-student-modal.active .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.quick-student-modal .modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 模态框平滑过渡 - 针对快捷选择和宠物管理 */
.quick-student-modal,
#scoreModal {
    z-index: 10000 !important; /* 确保模态框在悬浮按钮(9998)之上 */
    /* 使用opacity实现淡入淡出 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quick-student-modal.active,
#scoreModal.active {
    opacity: 1;
    visibility: visible;
}

.quick-student-modal .modal-content,
#scoreModal .modal-content {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* 宠物管理模态框的进入动画 */
#scoreModal .modal-content {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
}

#scoreModal.active .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 工具栏 - PC端三元素同一行，自动填充 */
.quick-student-toolbar {
    display: flex;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* PC端字母索引栏嵌入工具栏 - 占据剩余空间 */
.quick-letter-index {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.quick-letter-index::before {
    content: '🔤';
    font-size: 16px;
    opacity: 0.7;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    margin-right: 10px;
    flex-shrink: 0;
}

.letter-index-container {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    flex: 1;
    min-height: 40px;
    padding: 6px 0;
}

/* 移动端独立字母索引栏 */
.quick-letter-index-mobile {
    display: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
    flex-shrink: 0;
    min-height: 50px;
    align-items: center;
}

.quick-letter-index-mobile .letter-index-container {
    padding-left: 26px;
    gap: 2px;
    min-height: 38px;
}

.letter-index-container::-webkit-scrollbar {
    display: none;
}

/* PC端工具栏内字母项 - 调整尺寸确保26个字母完整显示 */
.quick-letter-index .letter-index-item {
    min-width: 26px;
    height: 30px;
    font-size: 13px;
    border-radius: 6px;
    margin: 2px 0;
    flex-shrink: 0;
    padding: 0 2px;
}

/* 确保PC端字母索引容器足够容纳所有字母 */
@media (min-width: 769px) {
    .quick-letter-index .letter-index-container {
        gap: 2px;
        justify-content: space-between;
    }
}

/* 独立字母索引栏字母项 */
.quick-letter-index-mobile .letter-index-item,
.letter-index-item {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin: 2px 0;
    flex-shrink: 0;
}

.letter-index-item:hover:not(.disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.letter-index-item:active:not(.disabled) {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.letter-index-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.letter-index-item.disabled {
    color: #cbd5e1;
    background: #f1f5f9;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #e2e8f0;
    opacity: 0.6;
}

/* 字母提示气泡 */
.letter-index-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: white;
    z-index: 10001;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5), 0 0 0 4px rgba(255,255,255,0.2) inset;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.letter-index-toast.show {
    transform: translate(-50%, -50%) scale(1);
}

/* PC端搜索框 */
.quick-search-box {
    flex: 0 0 220px;
    position: relative;
}

.quick-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.6;
}

.quick-search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.quick-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 排序下拉菜单 */
.quick-sort-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.sort-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.quick-sort-dropdown.active .sort-arrow {
    transform: rotate(180deg);
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid #e2e8f0;
}

.quick-sort-dropdown.active .sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sort-option {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: #f1f5f9;
    color: #667eea;
}

.sort-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* 学生矩阵网格 */
.quick-student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* PC端样式 - 宽度更大，支持滚动条 */
@media (min-width: 1024px) {
    .quick-student-modal .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        width: 1400px;
        min-width: 1200px;
    }

    .quick-student-grid {
        display: grid;
        gap: 10px;
        padding: 20px;
        overflow-y: auto;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        flex: 1;
        align-content: start;
        max-height: calc(90vh - 200px);
    }

    /* 学生卡片自适应 */
    .quick-student-card {
        min-height: 70px;
        padding: 10px 8px;
        height: auto;
    }
}

/* 学生卡片 */
.quick-student-card {
    background: white;
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    touch-action: manipulation; /* 防止双击缩放，优化触摸响应 */
    -webkit-touch-callout: none; /* 禁用iOS长按菜单 */
    user-select: none; /* 防止文本选择 */
}

.quick-student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-student-card:hover::before {
    opacity: 1;
}

.quick-student-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.quick-student-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* 学生序号 - 字号加大 */
.quick-student-no {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'SF Mono', monospace;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* 学生信息行 - 姓名和积分同一行 */
.quick-student-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 4px;
}

/* 积分显示行 - 在姓名下一行 */
.quick-student-score-row {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1;
}

/* 学生姓名 */
.quick-student-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    word-break: break-all;
    flex-shrink: 1;
}

/* 积分显示 - 保留原样式用于其他场景 */
.quick-student-score {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(245, 158, 11, 0.1);
    padding: 3px 6px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

/* 颜色主题 - 交替颜色 */
.quick-student-card:nth-child(6n+1) { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); }
.quick-student-card:nth-child(6n+2) { background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%); }
.quick-student-card:nth-child(6n+3) { background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%); }
.quick-student-card:nth-child(6n+4) { background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%); }
.quick-student-card:nth-child(6n+5) { background: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 100%); }
.quick-student-card:nth-child(6n+6) { background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%); }

.quick-student-card:nth-child(6n+1):hover { background: linear-gradient(135deg, #fde68a 0%, #fef3c7 100%); }
.quick-student-card:nth-child(6n+2):hover { background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%); }
.quick-student-card:nth-child(6n+3):hover { background: linear-gradient(135deg, #a7f3d0 0%, #d1fae5 100%); }
.quick-student-card:nth-child(6n+4):hover { background: linear-gradient(135deg, #fbcfe8 0%, #fce7f3 100%); }
.quick-student-card:nth-child(6n+5):hover { background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%); }
.quick-student-card:nth-child(6n+6):hover { background: linear-gradient(135deg, #99f6e4 0%, #ccfbf1 100%); }

/* 空状态 */
.quick-student-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.quick-student-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.quick-student-empty-text {
    font-size: 16px;
    font-weight: 600;
}

/* 结果计数 */
.quick-student-count {
    padding: 12px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    font-weight: 600;
    flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 更小的悬浮按钮 */
    .quick-student-fab {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
    }

    .fab-icon {
        font-size: 18px;
    }

    .fab-tooltip {
        display: none;
    }

    .quick-student-modal .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    /* 移动端模态框内容区域允许滚动 */
    .quick-student-modal .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 当任何模态框打开时，隐藏悬浮按钮，避免遮挡 */
    body:has(.modal.active) .quick-student-fab,
    body:has(.modal.active) .settings-trigger {
        display: none !important;
    }

    /* 移动端快捷选择学生模态框动画优化 - 从底部滑入更自然 */
    .quick-student-modal {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .quick-student-modal .modal-content {
        transform: translateY(100%); /* 初始位置在屏幕下方 */
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); /* 使用更自然的缓动曲线 */
    }

    .quick-student-modal.active .modal-content {
        transform: translateY(0); /* 滑入到正常位置 */
    }

    /* 工具栏 - 搜索和排序同一行，字母索引隐藏 */
    .quick-student-toolbar {
        flex-direction: row;
        padding: 12px 16px;
        gap: 10px;
        flex-shrink: 0;
        align-items: center;
    }

    .quick-student-toolbar .quick-letter-index {
        display: none;
    }

    /* 移动端显示独立字母索引栏 */
    .quick-letter-index-mobile {
        display: flex;
    }

    /* 移动端字母索引 */
    .quick-letter-index-mobile {
        padding: 10px 12px 10px 36px; /* 增加左侧内边距，为图标留出固定空间 */
        min-height: 50px;
        position: relative; /* 修复：添加相对定位，使::before正确定位 */
        /* 添加左侧背景遮罩，防止滚动内容遮挡图标 */
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    }

    .quick-letter-index-mobile::before {
        content: '🔤';
        position: absolute;
        left: 12px; /* 调整位置 */
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        opacity: 0.7;
        /* 添加背景，确保图标不被遮挡 */
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        padding: 4px 2px;
        z-index: 2;
    }

    .quick-letter-index-mobile .letter-index-container {
        padding-left: 0; /* 移除左侧内边距，因为父元素已设置 */
        gap: 2px;
        min-height: 38px;
        /* 美化横向滚动条 */
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    /* 移动端字母索引横向滚动条样式 */
    .quick-letter-index-mobile .letter-index-container::-webkit-scrollbar {
        display: block;
        height: 4px;
    }

    .quick-letter-index-mobile .letter-index-container::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 2px;
    }

    .quick-letter-index-mobile .letter-index-container::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #cbd5e1, #94a3b8);
        border-radius: 2px;
    }

    .quick-letter-index-mobile .letter-index-container::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, #94a3b8, #64748b);
    }

    .quick-letter-index-mobile .letter-index-item {
        min-width: 26px;
        height: 26px;
        font-size: 11px;
        border-radius: 5px;
        margin: 2px 0;
    }

    .quick-search-box {
        flex: 1;
        width: auto;
        max-width: none;
    }

    .quick-search-box input {
        padding: 10px 12px 10px 36px;
        font-size: 14px;
    }

    .quick-search-box .search-icon {
        left: 12px;
        font-size: 14px;
    }

    .quick-sort-dropdown {
        width: auto;
        flex-shrink: 0;
    }

    .sort-btn {
        width: auto;
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .sort-btn span:first-child {
        font-size: 14px;
    }

    #quickSortLabel {
        display: none;
    }

    .sort-menu {
        left: auto;
        right: 0;
        min-width: 140px;
    }

    /* 移动端改为自适应布局 */
    .quick-student-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
        max-height: none;
        overflow-y: visible;
    }

    /* 移动端卡片更小更精致 */
    .quick-student-card {
        padding: 8px 5px;
        min-height: 65px;
        border-radius: 12px;
        height: auto;
    }

    /* 学号字号 */
    .quick-student-no {
        font-size: 10px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    /* 信息行 */
    .quick-student-info {
        margin-bottom: 3px;
    }

    /* 姓名字号 */
    .quick-student-name {
        font-size: 12px;
        line-height: 1.3;
    }

    /* 积分更小 */
    .quick-student-score {
        font-size: 10px;
        padding: 2px 4px;
        border-radius: 6px;
    }

    .quick-student-score span:first-child {
        font-size: 9px;
    }

    /* 积分行移动端适配 */
    .quick-student-score-row {
        font-size: 10px;
        padding: 1px 4px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕保持3列 */
    .quick-student-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 10px;
    }

    .quick-student-card {
        padding: 6px 4px;
        border-radius: 10px;
        min-height: 58px;
    }

    .quick-student-no {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .quick-student-info {
        margin-bottom: 2px;
    }

    .quick-student-name {
        font-size: 11px;
    }

    .quick-student-score {
        font-size: 9px;
        padding: 1px 3px;
    }

    .quick-student-score-row {
        font-size: 9px;
        padding: 1px 3px;
        border-radius: 4px;
    }

    /* 工具栏更紧凑 */
    .quick-student-toolbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .sort-btn {
        padding: 8px 10px;
    }

    /* 超小屏幕字母索引 */
    .quick-letter-index {
        padding: 8px 10px;
        min-height: 44px;
    }

    .letter-index-container {
        min-height: 34px;
    }

    .letter-index-item {
        min-width: 24px;
        height: 24px;
        font-size: 11px;
        margin: 2px 0;
    }
}

/* 动画效果 */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-student-card {
    animation: cardAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.quick-student-card:nth-child(1) { animation-delay: 0.02s; }
.quick-student-card:nth-child(2) { animation-delay: 0.04s; }
.quick-student-card:nth-child(3) { animation-delay: 0.06s; }
.quick-student-card:nth-child(4) { animation-delay: 0.08s; }
.quick-student-card:nth-child(5) { animation-delay: 0.10s; }
.quick-student-card:nth-child(6) { animation-delay: 0.12s; }
.quick-student-card:nth-child(7) { animation-delay: 0.14s; }
.quick-student-card:nth-child(8) { animation-delay: 0.16s; }
.quick-student-card:nth-child(9) { animation-delay: 0.18s; }
.quick-student-card:nth-child(10) { animation-delay: 0.20s; }
.quick-student-card:nth-child(n+11) { animation-delay: 0.22s; }
/* ============================================
   批量选择模式 - 新增样式
   ============================================ */

/* 批量选择切换按钮 - 工具栏内 */
.quick-batch-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.quick-batch-toggle-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f5f3ff;
}

.quick-batch-toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* 批量操作栏（PC端：在工具栏下方，移动端：固定底部） */
.quick-batch-action-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-bottom: 2px solid #c7d2fe;
    flex-shrink: 0;
    flex-wrap: wrap;
    animation: batchBarSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-batch-action-bar.active {
    display: flex;
}

@keyframes batchBarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-batch-count {
    font-weight: 700;
    color: #4338ca;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-batch-count span {
    background: #667eea;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.quick-batch-action-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.quick-batch-action-btn.btn-select-all {
    background: #e0e7ff;
    color: #4338ca;
}
.quick-batch-action-btn.btn-select-all:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}

.quick-batch-action-btn.btn-invert {
    background: #f3f4f6;
    color: #4b5563;
}
.quick-batch-action-btn.btn-invert:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.quick-batch-action-btn.btn-feed {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
    font-weight: 700;
}
.quick-batch-action-btn.btn-feed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.45);
}
.quick-batch-action-btn.btn-feed:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quick-batch-action-btn.btn-cancel-batch {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.quick-batch-action-btn.btn-cancel-batch:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* 批量模式下学生卡片样式 */
.quick-student-card.batch-selectable {
    cursor: pointer;
    position: relative;
}

.quick-student-card.batch-selectable:hover {
    border-color: #667eea;
}

.quick-student-card.batch-selected {
    border-color: #667eea !important;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    transform: scale(1.03);
    z-index: 5;
}

/* 批量模式下的选中勾选标记 */
.quick-batch-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
    transition: all 0.2s ease;
    z-index: 6;
    pointer-events: none;
}

.quick-student-card.batch-selected .quick-batch-check {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* 批量模式下字母索引提示 - 已移除文字提示，保持简洁 */
.quick-letter-index.batch-mode::before {
    content: '🔤';
    font-size: 16px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    margin-right: 10px;
    flex-shrink: 0;
}

/* ============================================
   移动端适配
   ============================================ */
@media (max-width: 768px) {
    .quick-batch-toggle-btn {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 20px;
        gap: 4px;
    }

    .quick-batch-action-bar {
        padding: 10px 14px;
        gap: 8px;
        justify-content: center;
    }

    .quick-batch-action-bar.active {
        display: flex;
    }

    .quick-batch-action-btn {
        padding: 7px 11px;
        font-size: 12px;
        border-radius: 16px;
        gap: 3px;
    }

    .quick-batch-count {
        font-size: 12px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .quick-student-card.batch-selected {
        transform: scale(1.02);
    }

    .quick-batch-check {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: 4px;
        right: 4px;
    }

}

@media (max-width: 480px) {
    .quick-batch-action-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
    }
    .quick-batch-action-btn {
        padding: 6px 9px;
        font-size: 11px;
        border-radius: 14px;
    }
}

/* 快捷选择学生样式结束 */
