/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 模态框基础样式 ==================== */
.modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    transform: scale(0.9);
    animation: modalAppear 0.3s ease forwards;
}

.modal-dialog.modal-large .modal-content {
    max-width: 95%;
    width: 1000px;
}

.modal-dialog.modal-medium .modal-content {
    max-width: 90%;
    width: 600px;
}

.modal-dialog.modal-small .modal-content {
    max-width: 400px;
}

.modal-header {
    background: linear-gradient(135deg, rgb(78, 205, 196) 0%, rgb(69, 183, 175) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 成功和错误模态框样式 */
.modal-content.success .modal-header {
    background: linear-gradient(135deg, rgb(78, 205, 196) 0%, rgb(69, 183, 175) 100%);
}

.modal-content.error .modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.modal-content.warning .modal-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* 成功/失败/警告对话框最小宽度限制 */
.success-modal .modal-content,
.error-modal .modal-content,
.warning-modal .modal-content,
.info-modal .modal-content {
    min-width: 350px;
    width: auto;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .success-modal .modal-content,
    .error-modal .modal-content,
    .warning-modal .modal-content,
    .info-modal .modal-content {
        min-width: 300px;
        max-width: 95%;
    }
}

/* ==================== 积分操作页面样式 ==================== */
.points-tab.active {
    color: #4ecdc4 !important;
    border-color: #4ecdc4 !important;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    margin: 15px 0;
}

.points-item {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.points-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.points-item.add {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
}

.points-item.add:hover {
    background: linear-gradient(135deg, #ddf2dd 0%, #e8f5e8 100%);
}

.points-item.subtract {
    background: linear-gradient(135deg, #ffe8e8 0%, #fff0f0 100%);
}

.points-item.subtract:hover {
    background: linear-gradient(135deg, #ffdddd 0%, #ffe8e8 100%);
}

.points-item .points-icon {
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1;
}

.points-item .points-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.1;
}

.points-item .points-value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.points-item.add .points-value {
    color: #2d8f47;
}

.points-item.subtract .points-value {
    color: #d73527;
}

.points-item.custom {
    border: 2px dashed;
    background: white;
    box-shadow: none;
}

.points-item.custom:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.points-item.custom.add {
    border-color: #a7d7a7;
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f9f0 100%);
}

.points-item.custom.subtract {
    border-color: #f5a5a5;
    background: linear-gradient(135deg, #fef8f8 0%, #fff0f0 100%);
}

/* ==================== 通用按钮样式 ==================== */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn.primary-btn {
    background: #4ecdc4;
    color: white;
}

.btn.primary-btn:hover {
    background: #44a08d;
}

.btn.success-btn {
    background: #059669;
    color: white;
}

.btn.success-btn:hover {
    background: #047857;
}

.btn.danger-btn {
    background: #ef4444;
    color: white;
}

.btn.danger-btn:hover {
    background: #dc2626;
}

.btn.secondary-btn {
    background: #6b7280;
    color: white;
}

.btn.secondary-btn:hover {
    background: #4b5563;
}

.btn.disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================== 无数据状态 ==================== */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== 辅助类 ==================== */
.hidden {
    display: none !important;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 75vh;
    }

    .modal-footer {
        padding: 10px 15px;
    }
    
    .points-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 4px;
    }
    
    .points-item {
        width: 95px;
        height: 95px;
        padding: 8px 4px;
        box-shadow: none;
    }

    .points-item:hover {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

    .points-item .points-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .points-item .points-name {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .points-item .points-value {
        font-size: 13px;
    }
}

/* ==================== 特定模态框尺寸 ==================== */

/* 中等大小对话框 - 积分操作相关 */
.points-operation-dialog .modal-content,
.batch-points-operation-dialog .modal-content {
    max-width: 800px !important;
    width: 95% !important;
}

/* 小型对话框 - 自定义积分输入 */
.confirm-points-compact .modal-content,
.custom-batch-points-dialog-add .modal-content,
.custom-batch-points-dialog-subtract .modal-content {
    max-width: 480px !important;
    width: 90% !important;
}

/* 大型对话框 */
.reward-manager-dialog .modal-content,
.rule-manager-dialog .modal-content,
.settings-dialog .modal-content {
    max-width: 1000px !important;
    width: 95% !important;
}

/* 超大对话框 */
.student-manager-dialog .modal-content {
    max-width: 1000px !important;
    width: 95% !important;
}

/* 添加学生对话框 */
.add-student-dialog .modal-content {
    max-width: 450px !important;
    width: 95% !important;
}

/* ==================== 加载动画样式 ==================== */
.loading-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

/* 按钮加载状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
    
/* ==================== 数据统计分析页面样式 ==================== */

/* 统计分析对话框 */
.statistics-dialog .modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
}

/* 统计分析对话框的modal-body特殊处理 */
.statistics-dialog .modal-body {
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px 20px 20px 20px;
}

/* 统计控制面板 */
.statistics-controls {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-range-buttons {
    display: flex;
    gap: 8px;
}

.time-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-btn:hover {
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.time-btn.active {
    background: #4ecdc4;
    border-color: #4ecdc4;
    color: white;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* 统计概览卡片 */
.statistics-overview {
    padding: 20px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
}

.card-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 12px;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

/* Tab导航 */
.statistics-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    padding: 0 20px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #4ecdc4;
}

.tab-btn.active {
    color: #374151;
    background-color: white;
    border-bottom-color: #4ecdc4;
}

/* 统计内容区域 */
.statistics-content-area {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 统计列表容器 */
.stats-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 详细统计弹窗 */
.detailed-stats-dialog .modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
}

.detailed-stats-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 详细统计信息卡片 */
.stats-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.chart-container h4 {
    margin-bottom: 16px;
    color: #374151;
    font-weight: 600;
}

.chart-container canvas {
    width: 100% !important;
    height: 200px !important;
}

/* 详细记录区域 */
.records-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.records-section h4 {
    margin-bottom: 16px;
    color: #374151;
    font-weight: 600;
}

/* 加载和错误状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-range-buttons {
        flex-wrap: wrap;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .statistics-tabs {
        flex-wrap: wrap;
    }
    
    /* 移动端统计分析对话框调整 */
    .statistics-dialog .modal-body {
        max-height: 45vh;
    }
}
    
/* ==================== 导出设置对话框样式 ==================== */

/* 导出设置对话框 */
.export-dialog .modal-content {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
}

.export-dialog .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 导出选项容器 */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 选项组 */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 时间范围选项 */
.time-range-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    user-select: none;
}

.radio-option:hover {
    border-color: #4ecdc4;
    color: #4ecdc4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + span {
    color: white;
}

/* 选中的单选按钮样式 - 使用JS类控制 */
.radio-option.selected {
    background: linear-gradient(135deg, rgb(78, 205, 196) 0%, rgb(69, 183, 175) 100%);
    border-color: #4ecdc4;
    color: white;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.radio-option.selected span {
    color: white;
}

/* 自定义导出时间范围 */
.custom-export-range {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.custom-export-range span {
    font-weight: 500;
    color: #6b7280;
}

/* 导出内容选项 */
.export-content-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    user-select: none;
}

.checkbox-option:hover {
    border-color: #4ecdc4;
    color: #4ecdc4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4ecdc4;
    cursor: pointer;
}

/* 选中的复选框样式 - 使用JS类控制 */
.checkbox-option.selected {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

/* 文件名输入 */
.filename-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.filename-input:focus {
    border-color: #4ecdc4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.filename-input::placeholder {
    color: #9ca3af;
}

.filename-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* 模态框操作按钮 */
.modal-actions {
    padding: 16px 20px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f9fafb;
}

.modal-actions .btn {
    min-width: 120px;
    padding: 10px 20px;
    font-weight: 600;
}

/* 导出设置响应式 */
@media (max-width: 768px) {
    .export-dialog .modal-content {
        width: 98%;
        max-width: 98vw;
    }

    .export-dialog .modal-body {
        padding: 16px;
    }
    
    .time-range-options {
        flex-direction: column;
    }

    .radio-option {
        justify-content: center;
    }

    .custom-export-range {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-actions {
        flex-direction: column-reverse;
        padding: 12px 16px 16px;
    }

    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .export-dialog .modal-content {
        width: 98%;
        margin: 5px;
    }

    .export-dialog .modal-body {
        padding: 12px;
    }

    .export-options {
        gap: 16px;
    }

    .option-group {
        gap: 8px;
    }

    .option-label {
        font-size: 14px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 8px 12px;
        font-size: 13px;
    }

    .filename-input {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==================== 学生管理和批量导入样式 ==================== */

/* 表单输入样式 */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

/* ==================== Emoji选择器样式 ==================== */
.emoji-picker-dialog .modal-content {
    width: 600px;
    max-width: 95vw;
    max-height: 600px;
}

.emoji-picker-dialog .modal-body {
    padding: 25px;
}

.emoji-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 18px;
}

.emoji-category {
    padding: 12px 18px;
    border-radius: 25px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #6b7280;
    position: relative;
}

.emoji-category:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emoji-category.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border-color: #4ecdc4;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
    transform: translateY(-1px);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding: 20px 10px;
    background: #fafafa;
    border-radius: 12px;
    position: relative;
}

.emoji-grid::before {
    content: '点击选择您喜欢的图标';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.emoji-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid transparent;
    position: relative;
}

.emoji-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
    z-index: 10;
}

.emoji-item:active {
    transform: scale(1.1);
}

/* 为选中的emoji添加特殊效果 */
.emoji-item.selected {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    border-color: #4ecdc4;
}

/* 滚动条美化 */
.emoji-grid::-webkit-scrollbar {
    width: 8px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 10px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #44a08d;
}

/* 添加加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.emoji-grid.loading .emoji-item {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .emoji-picker-dialog .modal-content {
        width: 95vw;
        max-height: 70vh;
    }
    
    .emoji-picker-dialog .modal-body {
        padding: 20px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        max-height: 280px;
        padding: 15px 8px;
    }
    
    .emoji-grid::before {
        font-size: 12px;
        top: -20px;
    }
    
    .emoji-item {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .emoji-item:hover {
        transform: scale(1.2);
    }
    
    .emoji-categories {
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 15px;
    }
    
    .emoji-category {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .emoji-item {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .emoji-category {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 图标选择输入框样式 */
.icon-input {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-input input {
    flex: 1;
    border-radius: 0;
    border-right: none;
}

.icon-input button {
    white-space: nowrap;
    border-radius: 0;
    font-size: 18px;
    min-width: 60px;
}

/* ==================== 统一管理页面样式 ==================== */

/* 管理页面对话框样式 */
.student-manager-dialog .modal-content,
.rule-manager-dialog .modal-content,
.reward-manager-dialog .modal-content {
    max-width: 90vw;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* 管理页面工具栏统一样式 */
.management-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.management-toolbar .button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.management-toolbar .stats-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* 统一的操作按钮样式 */
.management-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.management-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
    background: linear-gradient(135deg, #44a08d, #4ecdc4);
}

.management-btn:focus {
    outline: none;
    ring: 2px solid rgba(78, 205, 196, 0.5);
}

.management-btn.primary {
    background: linear-gradient(135deg, #44a08d, #2f7a6b);
}

.management-btn.primary:hover {
    background: linear-gradient(135deg, #2f7a6b, #44a08d);
    box-shadow: 0 4px 12px rgba(68, 160, 141, 0.4);
}

.management-btn.danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.management-btn.danger:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* 统一的添加表单样式 */
.management-add-form {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(68, 160, 141, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.management-add-form h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.management-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.management-form-field {
    display: flex;
    flex-direction: column;
}

.management-form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.management-form-field input,
.management-form-field textarea,
.management-form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    height: 3rem;
}

.management-form-field textarea {
    height: auto;
    resize: vertical;
    min-height: 3rem;
}

.management-form-field input:focus,
.management-form-field textarea:focus,
.management-form-field select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

/* 统一的列表样式 */
.management-list-container {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.management-list-header {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.management-list-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.management-table {
    width: 100%;
    border-collapse: collapse;
}

.management-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.management-table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.management-table tbody {
    background: white;
}

.management-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.management-table tbody tr:hover {
    background: #f9fafb;
}

.management-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* 统一的空状态样式 */
.management-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.management-empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.management-empty-state .title {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.management-empty-state .subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* 统一的操作按钮组样式 */
.management-actions {
    display: flex;
    gap: 0.5rem;
}

.management-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

/* 统一的统计卡片样式 */
.management-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 120px;
}

.management-stat-card .label {
    font-size: 0.875rem;
    color: #6b7280;
}

.management-stat-card .value {
    font-weight: 600;
    color: #4ecdc4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .management-toolbar .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .management-toolbar .stats-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .management-form-grid {
        grid-template-columns: 1fr;
    }
    
    .management-table {
        font-size: 0.875rem;
    }
    
    .management-table th,
    .management-table td {
        padding: 0.5rem;
    }
}

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

.management-list-container,
.management-add-form {
    animation: fadeInUp 0.3s ease-out;
}

/* 表格排序和筛选样式 */
.management-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.management-table th.sortable:hover {
    background: #f3f4f6;
}

.management-table th.sortable.asc::after {
    content: ' ↑';
    color: #4ecdc4;
}

.management-table th.sortable.desc::after {
    content: ' ↓';
    color: #4ecdc4;
}

/* 批量操作样式 */
.management-batch-actions {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
}

.management-batch-actions.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.management-batch-actions .text {
    color: #92400e;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.management-batch-actions .buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 成功和错误状态样式 */
.management-success {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #15803d;
}

.management-error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #dc2626;
}

.management-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

/* 导入结果样式 */
.import-result {
    text-align: center;
    padding: 2rem;
}

.import-result .result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #16a34a;
}

.import-result h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.import-result .result-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.import-result .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    min-width: 100px;
}

.import-result .stat-item.success {
    background: #dcfce7;
    border: 1px solid #16a34a;
}

.import-result .stat-item.error {
    background: #fef2f2;
    border: 1px solid #dc2626;
}

.import-result .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.import-result .stat-item.success .stat-number {
    color: #16a34a;
}

.import-result .stat-item.error .stat-number {
    color: #dc2626;
}

.import-result .stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.import-result p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 导入进度样式 */
.import-progress {
    text-align: center;
    padding: 2rem;
}

.import-progress .progress-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.import-progress .progress-info p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.import-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.import-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #45b7af 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* 系统设置样式 */
.system-settings-dialog .modal-content {
    max-width: 600px;
}

.setting-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.setting-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.setting-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.setting-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.setting-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.setting-control {
    margin-left: 16px;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 滑块样式 */
.range-control {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.range-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-value {
    font-weight: 500;
    color: #374151;
    min-width: 40px;
    text-align: center;
    font-size: 0.875rem;
}

/* 简洁模式样式 */
/* 简化学生卡片的渐变背景，但保留基本的美观效果 */
.simple-mode .student-card.gradient-bg,
.simple-mode .student-card.bg-gradient-to-br {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
}

/* 保留标题的渐变效果 */
.simple-mode h1.bg-gradient-to-r {
    background: linear-gradient(to right, #ff6b6b, #4ecdc4, #3498db) !important;
    border: none !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* 保留按钮的渐变效果，只简化学生卡片 */
.simple-mode button.bg-gradient-to-r,
.simple-mode .btn.bg-gradient-to-r {
    /* 保持按钮的渐变效果 */
}

/* 简化过度的悬停效果，但保留基本的交互反馈 */
.simple-mode .student-card:hover {
    transform: translateY(-2px) !important; /* 保留轻微的悬停效果 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; /* 保留轻微阴影 */
}

/* 保留过渡动画，让交互更自然 */
.simple-mode .transition-all {
    transition: all 0.2s ease !important; /* 保留较快的过渡动画 */
}

/* 简化复杂的动画效果，但保留基本的交互反馈 */
.simple-mode .hover\:scale-110:hover {
    transform: scale(1.05) !important; /* 减小缩放效果 */
}

.simple-mode .hover\:-translate-y-1:hover {
    transform: translateY(-1px) !important; /* 减小移动效果 */
}

/* 简化阴影效果，但保留层次感 */
.simple-mode .shadow-lg {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; /* 简化阴影 */
}

.simple-mode .hover\:shadow-xl:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; /* 简化悬停阴影 */
}

/* 简洁模式下隐藏奖励区域 */
body.simple-mode #rewardsSection {
    display: none !important;
}

.simple-mode #rewardsContainer,
.simple-mode .rewards-container {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .setting-control {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .range-control {
        min-width: auto;
    }
}

/* ==================== 用户管理页面样式 ==================== */

/* 模态框宽度 */
.user-manager-dialog .modal-content {
    max-width: 700px;
    width: 95%;
}

/* 用户信息卡片容器 */
.user-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* 单个用户信息卡片 */
.user-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.user-card:hover {
    background: #ffffff;
    border-color: #4ecdc4;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
    transform: translateY(-2px);
}

/* 卡片标题 */
.user-card .card-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

/* 卡片数值 */
.user-card .card-value {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

/* 特殊高亮卡片（剩余天数） */
.user-card.highlight {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-color: #4ecdc4;
    color: white;
}

.user-card.highlight .card-title {
    color: rgba(255, 255, 255, 0.9);
}

.user-card.highlight .card-value {
    color: white;
    font-size: 20px;
}

.user-card.highlight:hover {
    background: linear-gradient(135deg, #44a08d, #3a8c7f);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.25);
}

/* 操作按钮区域 */
.user-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.user-actions .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-manager-dialog .modal-content {
        max-width: 95%;
        width: 95%;
    }
    
    .user-info-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .user-card {
        padding: 20px 16px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .user-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ==================== 修改密码页面样式 ==================== */

/* 修改密码模态框宽度 */
.change-password-dialog .modal-content {
    max-width: 450px;
    width: 95%;
}

/* 密码表单容器 */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 密码输入框样式 */
.password-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.password-form input[type="password"]:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
    background: #ffffff;
}

.password-form input[type="password"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .change-password-dialog .modal-content {
        max-width: 95%;
        width: 95%;
    }
    
    .password-form input[type="password"] {
        padding: 12px 14px;
        font-size: 14px;
    }
}

