/* 动态背景动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(2deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 10%, #fcd34d 20%, #fbbf24 30%, #f59e0b 40%, #d97706 50%, #b45309 60%, #fbbf24 70%, #fcd34d 80%, #fde68a 90%, #fef3c7 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    z-index: -1;
    opacity: 0.95;
}

.bg-animation::before,
.bg-animation::after,
.bg-animation .orb-1,
.bg-animation .orb-2,
.bg-animation .orb-3,
.bg-animation .orb-4 {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.bg-animation::before {
    width: 400px;
    height: 400px;
    background: rgba(255, 220, 100, 0.3);
    top: 5%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
}

.bg-animation::after {
    width: 350px;
    height: 350px;
    background: rgba(255, 180, 80, 0.25);
    bottom: 5%;
    left: 5%;
    animation: floatReverse 12s ease-in-out infinite;
}

.bg-animation .orb-1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 240, 150, 0.2);
    top: 40%;
    left: 20%;
    animation: float 14s ease-in-out infinite;
    animation-delay: -2s;
}

.bg-animation .orb-2 {
    width: 220px;
    height: 220px;
    background: rgba(255, 200, 100, 0.15);
    top: 60%;
    right: 30%;
    animation: floatReverse 16s ease-in-out infinite;
    animation-delay: -4s;
}

.bg-animation .orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 230, 120, 0.2);
    bottom: 20%;
    right: 15%;
    animation: float 13s ease-in-out infinite;
    animation-delay: -6s;
}

.bg-animation .orb-4 {
    width: 250px;
    height: 250px;
    background: rgba(255, 190, 90, 0.18);
    top: 15%;
    left: 35%;
    animation: floatReverse 11s ease-in-out infinite;
    animation-delay: -8s;
}

.bg-animation::before,
.bg-animation::after,
.bg-animation .orb-1,
.bg-animation .orb-2,
.bg-animation .orb-3,
.bg-animation .orb-4 {
    animation: pulse 4s ease-in-out infinite;
}

.bg-animation::before { animation-delay: 0s; }
.bg-animation::after { animation-delay: 1s; }
.bg-animation .orb-1 { animation-delay: 2s; }
.bg-animation .orb-2 { animation-delay: 0.5s; }
.bg-animation .orb-3 { animation-delay: 1.5s; }
.bg-animation .orb-4 { animation-delay: 2.5s; }

/* 容器 */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* 页面切换 */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    animation: fadeIn 0.3s ease-out;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state .empty-text {
    font-size: 18px;
    font-weight: 500;
    color: #6b7280;
}

/* 登录页面 */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(245, 245, 245, 0.8);
}

.login-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.login-box .btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
}

.login-links {
    margin-top: 20px;
    text-align: center;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #764ba2;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 128, 150, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #fbd38d 0%, #f6ad55 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.5);
}

/* 管理员页面 */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

/* 管理员内容 */
.manager-content {
    padding: 40px;
}

.manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.manager-header-buttons {
    display: flex;
    gap: 10px;
}

.manager-header h2 {
    color: #2d3748;
    font-size: 24px;
}

/* 学生网格 */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.student-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.student-card .student-name {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.student-card .student-info {
    font-size: 14px;
    color: #718096;
    margin-bottom: 5px;
}

.student-card .student-points {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-card .points-num {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.student-card .level-badge {
    background: linear-gradient(135deg, #fbd38d 0%, #f6ad55 100%);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.student-card .manager-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.student-card .manager-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.student-card .manager-checkbox.checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.student-card .manager-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.student-card .manager-delete-btn {
    padding: 6px 15px;
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-card .manager-delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 101, 101, 0.4);
}

/* 添加学生卡片 */
.add-student-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed #667eea;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    color: #667eea;
    font-size: 48px;
    transition: all 0.3s ease;
}

.add-student-card:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
    transform: none;
}

.add-student-card span {
    font-size: 16px;
    margin-top: 10px;
}

/* 学生页面 */
.tab-nav {
    display: flex;
    gap: 10px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tab-btn:hover:not(.active) {
    color: #667eea;
}

main {
    padding: 30px 40px;
}

/* 内容区域 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #2d3748;
    font-size: 20px;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    max-width: 300px;
}

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

.search-bar select {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* 表格列表 */
.table-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 50px repeat(5, 1fr);
    padding: 15px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-weight: 700;
    color: #4a5568;
    font-size: 14px;
}

.table-row {
    display: grid;
    grid-template-columns: 50px repeat(5, 1fr);
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.table-row:hover {
    background: #f7fafc;
}

.table-row.completed {
    opacity: 0.7;
}

.table-row.record-good {
    background: rgba(104, 211, 145, 0.1);
}

.table-row.record-bad {
    background: rgba(245, 101, 101, 0.1);
}

/* 复选框 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.custom-checkbox.checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.custom-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.custom-checkbox:hover {
    border-color: #667eea;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.tag-入门 { background: #48bb78; }
.tag-基础 { background: #4299e1; }
.tag-进阶 { background: #ed8936; }
.tag-日常 { background: #9f7aea; }
.tag-兴趣 { background: #ed64a6; }
.tag-数学 { background: #38b2ac; }
.tag-语文 { background: #f56565; }
.tag-英语 { background: #718096; }
.tag-物理 { background: #805ad5; }
.tag-化学 { background: #667eea; }
.tag-文具 { background: #38b2ac; }
.tag-玩具 { background: #f56565; }
.tag-奖励 { background: #48bb78; }
.tag-惩罚 { background: #fc8181; }

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.delete-row-btn {
    padding: 6px 15px;
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-row-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 101, 101, 0.4);
}

.status-tag {
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.status-pending {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.guest-disabled {
    color: #a0aec0;
    font-size: 12px;
}

.type-earn { color: #48bb78; font-weight: 600; }
.type-spend { color: #f56565; font-weight: 600; }

/* 隐藏列 */
.hidden-column {
    display: none !important;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 积分展示 */
.points-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.points-card,
.level-card,
.progress-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.points-label,
.level-label,
.progress-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
}

.points-value {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-value {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbd38d 0%, #f6ad55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #4a5568;
    font-weight: 600;
}

/* 个人中心 */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
}

.info-value {
    font-weight: 600;
    color: #2d3748;
}

.points-color {
    color: #667eea;
}

.level-color {
    color: #f6ad55;
}

.logout-student-btn {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    border: 2px solid #ef4444;
    background: white;
    color: #ef4444;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.logout-student-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}

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

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

.modal-content h3 {
    margin-bottom: 20px;
    color: #2d3748;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.modal-content .close:hover {
    color: #4a5568;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 拼图验证码 */
.puzzle-content {
    max-width: 400px;
}

.puzzle-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 20px auto;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.puzzle-piece {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    cursor: grab;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.puzzle-piece:active {
    cursor: grabbing;
}

.slider-container {
    width: 300px;
    margin: 20px auto;
}

.slider-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    position: relative;
}

.slider-thumb {
    position: absolute;
    top: -5px;
    left: 0;
    width: 40px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.slider-thumb:active {
    cursor: grabbing;
}

/* 触屏支持 */
@media (hover: none) {
    .btn:active {
        transform: scale(0.95);
    }
    
    .student-card:active {
        transform: scale(0.98);
    }
    
    .tab-btn:active {
        transform: scale(0.95);
    }
    
    .delete-row-btn:active {
        transform: scale(0.95);
    }
    
    .manager-delete-btn:active {
        transform: scale(0.95);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tab-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 50px repeat(3, 1fr);
        font-size: 12px;
    }
    
    .table-header > div:last-child,
    .table-row > div:last-child {
        display: none;
    }
    
    .student-grid {
        grid-template-columns: 1fr;
    }
    
    .manager-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}