/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #1565c0;
}

/* 顶部控制栏 */
.top-control-bar {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 顶部控制内容布局 */
.top-control-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 左侧信息区域 */
.left-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

/* 中间区域 */
.center-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

/* 右侧按钮区域 - 与Add按钮对齐 */
.right-action-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: 200px; /* 固定宽度，与Add按钮区域一致 */
}


/* 统一控制项样式 */
.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.control-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-value {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.control-value-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.score-btn:active {
    transform: scale(0.95);
}

.score-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.control-value i {
    font-size: 16px;
}

/* 竞赛目标显示样式 */
.competition-goal-item {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 20px;
    padding: 8px 16px;
    min-width: 100px;
}

.competition-goal-value {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.competition-goal-value i {
    color: #ffc107;
    font-size: 16px;
}

/* 答案输入组样式 - 输入框与BINGO按钮融合 */
.answer-input-group {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 右对齐，与下方框对齐 */
    width: 100%;
    gap: 0; /* 无间隙，让输入框和按钮融合 */
}

.correct-answer-input-field {
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px 0 0 8px; /* 减少圆角，更方一点 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-right: none; /* 移除右边框，与按钮融合 */
    transition: all 0.3s ease;
    min-width: 150px; /* 减半长度 */
    flex: 0 0 auto; /* 固定宽度，不自动扩展 */
}

.correct-answer-input-field::placeholder {
    color: #999;
    font-style: italic;
}

.correct-answer-input-field:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 融合的BINGO按钮样式 */
.bingo-btn-fused {
    border-radius: 0 8px 8px 0 !important; /* 减少圆角，更方一点 */
    border-left: none !important; /* 移除左边框，与输入框融合 */
    margin-left: 0 !important;
    padding: 12px 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.bingo-btn-fused:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

/* 学生报告页面特殊背景 */
body.report-page {
    background: linear-gradient(135deg, #0d1421 0%, #1a1a2e 50%, #16213e 100%) !important;
    color: #ffffff !important;
}

/* 学生报告页面文字颜色调整 - 背景区域 */
body.report-page h1,
body.report-page h2,
body.report-page h3,
body.report-page h4,
body.report-page h5,
body.report-page h6 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

body.report-page p,
body.report-page span,
body.report-page div {
    color: #ffffff !important;
}

body.report-page .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.report-page .text-white {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 学生报告页面按钮样式 */
body.report-page .btn {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.report-page .btn-light {
    color: #1565c0 !important;
    background-color: #ffffff !important;
    border-color: #1565c0 !important;
}

body.report-page .btn-primary {
    color: #ffffff !important;
    background-color: #1565c0 !important;
    border-color: #1565c0 !important;
}

body.report-page .btn-secondary {
    color: #ffffff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* 学生报告页面徽章样式 */
body.report-page .badge {
    color: #ffffff !important;
    font-weight: bold !important;
}

body.report-page .badge.bg-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

body.report-page .badge.bg-primary {
    background-color: #007bff !important;
    color: #ffffff !important;
}

body.report-page .badge.bg-info {
    background-color: #17a2b8 !important;
    color: #ffffff !important;
}

body.report-page .badge.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

body.report-page .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* 学生报告页面列表项样式 */
body.report-page .list-group-item {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(33, 150, 243, 0.2) !important;
    color: #1565c0 !important;
}

body.report-page .list-group-item .fw-bold {
    color: #1565c0 !important;
    font-weight: bold !important;
}

body.report-page .list-group-item small {
    color: #6c757d !important;
}

/* 学生报告页面进度条样式 */
body.report-page .progress {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

body.report-page .progress-bar {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* 学生报告页面图表文字样式 */
body.report-page canvas {
    background-color: transparent !important;
    border-radius: 8px !important;
    padding: 10px !important;
}

/* 学习参与记录中的时间条形图样式 */
.time-bar-container {
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    flex-grow: 1; /* 让条形图占据剩余空间 */
    display: flex;
    align-items: center;
}

.time-bar-container[style*="width"] {
    flex-grow: 0; /* 当设置了固定宽度时，不使用flex-grow */
}

.time-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.time-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 学生报告页面卡片样式 */
body.report-page .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(227, 242, 253, 0.9) 100%) !important;
    border: 2px solid rgba(52, 73, 94, 0.3) !important;
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.2) !important;
}

body.report-page .card h1,
body.report-page .card h2,
body.report-page .card h3,
body.report-page .card h4,
body.report-page .card h5,
body.report-page .card h6,
body.report-page .card p,
body.report-page .card span,
body.report-page .card div {
    color: #1565c0 !important;
}

body.report-page .card .text-muted {
    color: #6c757d !important;
}

body.report-page .card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    border-bottom: 2px solid rgba(52, 73, 94, 0.3) !important;
    color: #ffffff !important;
}

body.report-page .card-header.bg-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    color: #ffffff !important;
}

body.report-page .card-header.bg-light {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    color: #ffffff !important;
}

body.report-page .card-header h1,
body.report-page .card-header h2,
body.report-page .card-header h3,
body.report-page .card-header h4,
body.report-page .card-header h5,
body.report-page .card-header h6,
body.report-page .card-header p,
body.report-page .card-header span,
body.report-page .card-header div,
body.report-page .card-header i {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

body.report-page .card-header .text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.report-page .card-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.report-page .alert-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(30, 136, 229, 0.1)) !important;
    border: 2px solid rgba(33, 150, 243, 0.3) !important;
    color: #1565c0 !important;
}

body.report-page .alert-info h1,
body.report-page .alert-info h2,
body.report-page .alert-info h3,
body.report-page .alert-info h4,
body.report-page .alert-info h5,
body.report-page .alert-info h6,
body.report-page .alert-info p,
body.report-page .alert-info span,
body.report-page .alert-info div {
    color: #1565c0 !important;
}

body.report-page .alert-light {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 183, 77, 0.1)) !important;
    border: 2px solid rgba(255, 193, 7, 0.3) !important;
    color: #f57c00 !important;
}

body.report-page .alert-light h1,
body.report-page .alert-light h2,
body.report-page .alert-light h3,
body.report-page .alert-light h4,
body.report-page .alert-light h5,
body.report-page .alert-light h6,
body.report-page .alert-light p,
body.report-page .alert-light span,
body.report-page .alert-light div {
    color: #f57c00 !important;
}

body.report-page .alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(69, 160, 73, 0.1)) !important;
    border: 2px solid rgba(76, 175, 80, 0.3) !important;
    color: #2e7d32 !important;
}

body.report-page .alert-success h1,
body.report-page .alert-success h2,
body.report-page .alert-success h3,
body.report-page .alert-success h4,
body.report-page .alert-success h5,
body.report-page .alert-success h6,
body.report-page .alert-success p,
body.report-page .alert-success span,
body.report-page .alert-success div {
    color: #2e7d32 !important;
}

/* 课堂容器 */
.classroom-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部控制栏 */
.top-control-bar {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.9), rgba(21, 101, 192, 0.8));
    padding: 1.5rem 0;
    backdrop-filter: blur(20px);
    border-bottom: 3px solid rgba(13, 71, 161, 0.5);
    box-shadow: 0 6px 25px rgba(13, 71, 161, 0.3);
    border-radius: 0 0 20px 20px;
}

.round-status {
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.4rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.status-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.status-value {
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.status-text {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    opacity: 0.9;
}

.score-display {
    text-align: center;
    color: white;
}

.score-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.score-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.score-control .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    display: inline-block;
    min-width: 50px;
}

.answer-input-group {
    display: flex;
    align-items: center;
}

.answer-input-group .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

.timer-display {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
    float: right;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

/* 浅色按钮样式 */
.btn-success {
    background: linear-gradient(135deg, #81c784, #66bb6a) !important;
    border: none !important;
    color: white !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffb74d, #ffa726) !important;
    border: none !important;
    color: white !important;
}

.btn-info {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6) !important;
    border: none !important;
    color: white !important;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-lg:hover::before {
    left: 100%;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* 右下角隐藏按钮 */
.hidden-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.hidden-controls .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hidden-controls .btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* 学生管理区域 */
.students-management-area {
    flex: 1;
    padding: 1rem 0 0.5rem; /* 减少上下内边距，缩小底部留白 */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(227, 242, 253, 0.7));
    border-radius: 20px;
    margin: 0 1rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(21, 101, 192, 0.2);
    box-shadow: 0 10px 35px rgba(21, 101, 192, 0.15);
}

.students-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(187, 222, 251, 0.6));
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #1565c0;
    border: 2px solid rgba(21, 101, 192, 0.3);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.15);
}

.header-left {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-count-display {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 2px solid rgba(21, 101, 192, 0.3);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
    margin-left: 1rem;
}

.student-count-label {
    font-size: 0.9rem;
    color: #1565c0;
    font-weight: 500;
}

.student-count-number {
    font-size: 1.2rem;
    color: #1565c0;
    font-weight: 700;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-student-form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-student-form-inline .form-control-sm {
    border: 2px solid rgba(21, 101, 192, 0.3);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.9);
}

.add-student-form-inline .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border: none;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
}

.header-right {
    font-size: 1rem;
    opacity: 0.9;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 0.5rem; /* 减少网格底部间距 */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start; /* 确保所有卡片从顶部开始对齐 */
}

.student-card {
    background: rgba(255, 255, 255, 0.95); /* 恢复白色背景 */
    border-radius: 12px;
    padding: 10px; /* 从12px减少到10px，减少整体内边距 */
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden; /* 改为 hidden 防止内容溢出重叠 */
    min-height: auto; /* 移除固定最小高度，让卡片根据内容自适应 */
    /* 移除 max-height 限制，让卡片根据内容自然增长 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 改为 flex-start，确保内容从上开始排列 */
    color: #333333;
    backdrop-filter: blur(8px);
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.student-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 0.5rem; /* 从1rem减少到0.5rem，减少头像底部间距 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.student-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.student-emoji {
    font-size: 2.2rem;
    line-height: 1;
    display: block;
}

.student-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50 !important; /* 深蓝灰色，在白色背景上更清楚 */
    margin-bottom: 0.3rem; /* 从0.5rem减少到0.3rem，减少名字底部间距 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* 白色阴影增强对比 */
}

.student-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0; /* 从1rem改为0，移除输入组底部间距 */
    height: 40px;
    align-items: center;
}

.student-input-group .form-control {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}

.student-input-group .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 答案输入框加密样式 */
.student-answer-input {
    -webkit-text-security: disc; /* WebKit browsers (Chrome, Safari) */
    -moz-text-security: disc;    /* Firefox */
    text-security: disc;         /* Standard property */
    font-family: monospace;      /* 等宽字体确保星号对齐 */
    letter-spacing: 0.1em;       /* 字符间距 */
}

/* 兼容性处理：对于不支持text-security的浏览器 */
@supports not (text-security: disc) {
    .student-answer-input {
        color: transparent;
        text-shadow: 0 0 0 #000;
    }
}

/* 编辑竞赛目标对话框样式 */
.edit-goal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.edit-goal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.edit-goal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1976d2;
    text-align: center;
}

.edit-goal-content .form-group {
    margin-bottom: 1rem;
}

.edit-goal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.edit-goal-content input,
.edit-goal-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.edit-goal-content input:focus,
.edit-goal-content textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.edit-goal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.form-actions .btn-secondary:hover {
    background-color: #5a6268;
}

.form-actions .btn-primary {
    background-color: #1976d2;
    color: white;
}

.form-actions .btn-primary:hover {
    background-color: #1565c0;
}

.submit-btn {
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
}

.student-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 8px;
    padding: 6px 8px;
    background-color: transparent !important;
    border-radius: 0;
    flex-shrink: 0;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #333333 !important;
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 12px;
    color: #333333 !important;
    font-weight: 700;
    text-shadow: none;
}

.student-status {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.student-status.submitted {
    color: #28a745;
}

.student-status.correct {
    color: #28a745;
}

.student-status.wrong {
    color: #dc3545;
}

/* 学生答题状态样式 */
.student-card.correct-answer {
    background: rgba(255, 255, 255, 0.95) !important; /* 恢复白色背景 */
    border-color: rgba(76, 175, 80, 0.6) !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
    color: #333333 !important;
}

.student-card.correct-answer .student-name {
    color: #2c3e50 !important; /* 保持深色人名 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.student-card.correct-answer .stat-label {
    color: #333333 !important;
    font-weight: 600;
}

.student-card.correct-answer .stat-value {
    color: #333333 !important;
    font-weight: bold;
    text-shadow: none;
}

.student-card.wrong-answer {
    background: rgba(255, 255, 255, 0.95) !important; /* 恢复白色背景 */
    border-color: rgba(244, 67, 54, 0.6) !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2) !important;
    color: #333333 !important;
}

.student-card.wrong-answer .student-name {
    color: #2c3e50 !important; /* 保持深色人名 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.student-card.wrong-answer .stat-label {
    color: #333333 !important;
    font-weight: 600;
}

.student-card.wrong-answer .stat-value {
    color: #333333 !important;
    font-weight: bold;
    text-shadow: none;
}

.student-card.no-answer {
    background: rgba(255, 255, 255, 0.95) !important; /* 恢复白色背景 */
    border-color: rgba(158, 158, 158, 0.6) !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.2) !important;
    color: #333333 !important;
}

.student-card.no-answer .student-name {
    color: #2c3e50 !important; /* 保持深色人名 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.student-card.no-answer .stat-label {
    color: #333333 !important;
    font-weight: 600;
}

.student-card.no-answer .stat-value {
    color: #333333 !important;
    font-weight: bold;
    text-shadow: none;
}

/* 动画效果 - 只有正确的学生晃动 */
@keyframes correct-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.correct-bounce-animation {
    animation: correct-bounce 1s infinite;
}

/* 学生提交状态样式 */
.student-submitted {
    text-align: center;
    padding: 0.4rem;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    min-height: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
}

.submitted-text {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

.submitted-time {
    font-size: 1rem;
    color: rgba(40, 167, 69, 0.9);
    font-weight: 600;
}

.student-result {
    text-align: center;
    padding: 0.3rem;
    border-radius: 8px;
    margin-top: 0.2rem;
    font-weight: bold;
    font-size: 0.8rem;
    animation: resultAppear 0.5s ease-out;
}

.result-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 16px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.result-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

.result-label {
    font-size: 1rem;
}

/* 正确结果样式 */
.correct-result {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.correct-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* 错误结果样式 */
.wrong-result {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: 2px solid #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.wrong-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

/* 未作答结果样式 */
.no-answer-result {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: 2px solid #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.no-answer-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

/* 答题结果出现动画 */
@keyframes resultAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 正确答案显示样式 */
.correct-answer-display {
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.15));
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.25);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.correct-answer-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
    border-color: rgba(255, 193, 7, 0.6);
}

/* Next Challenge按钮样式 - 避免与背景撞色 */
#nextRoundBtn {
    background: linear-gradient(135deg, #FF6B35, #F7931E) !important;
    border: 2px solid rgba(255, 107, 53, 0.6) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
    transition: all 0.3s ease !important;
}

#nextRoundBtn:hover {
    background: linear-gradient(135deg, #E55A2B, #E8851A) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4) !important;
    border-color: rgba(255, 107, 53, 0.8) !important;
}

.correct-answer-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.correct-answer-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 2px solid #4CAF50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    animation: answerGlow 2s ease-in-out infinite alternate;
}

/* 进度统计显示样式 */
.progress-stats-display {
    display: flex;
    flex-direction: column;
    gap: 6px;  /* 减少间距，更紧凑 */
    padding: 8px 8px 8px 20px; /* 左侧增加padding，让条形图右移 */
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px; /* 减少最大宽度 */
}

.progress-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;  /* 减少间距，更紧凑 */
    width: 100%;
    min-width: 0;
}

.progress-label {
    font-size: 12px;
    color: #ffffff !important;  /* 强制纯白色 */
    font-weight: 600;
    text-align: left;
}

.progress-bar-container {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    height: 20px;  /* 从16px增加到20px */
    overflow: visible;  /* 允许内容超出容器显示 */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

#participationBar {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

#accuracyBar {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

#timeBar {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3);
}

.progress-percentage {
    position: absolute;
    right: 10px;  /* 放在条形图内部右侧 */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;  /* 增大字体 */
    font-weight: 700;
    color: #ffffff !important;  /* 强制纯白色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);  /* 添加阴影以提高可读性 */
    white-space: nowrap;  /* 防止换行 */
    z-index: 10;  /* 确保文本在进度条上方 */
    min-width: 50px;  /* 确保有足够空间显示数值 */
}

@keyframes answerGlow {
    0% {
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(76, 175, 80, 0.3);
    }
    100% {
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 16px rgba(76, 175, 80, 0.5);
    }
}

/* 滑入动画 */
@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 添加学生区域 */
.add-student-area {
    padding: 1rem 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(233, 236, 239, 0.6));
    border-top: 1px solid rgba(108, 117, 125, 0.2);
    margin: 0 1rem;
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none; /* 默认隐藏 */
}

.add-student-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.add-student-form .form-control {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
}

.add-student-form .btn {
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
}

.quick-tip {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .students-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-group .btn {
        margin-bottom: 0.5rem;
    }
    
    .add-student-form {
        flex-direction: column;
    }
    
    .students-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}/* 颁奖典礼样式 */
.ceremony-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #3b82f6 50%, #06b6d4 75%, #10b981 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.ceremony-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.celebration-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 50px 50px, 80px 80px, 60px 60px, 70px 70px;
    animation: sparkle 3s ease-in-out infinite;
}

.celebration-confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
    background-size: 100px 100px;
    animation: confetti 2s linear infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes confetti {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

.fireworks-left {
    position: absolute;
    left: 3%;
    top: 15%;
    width: 300px;
    height: 400px;
    background-image: 
        radial-gradient(circle at 20% 10%, #ff6b6b 8px, transparent 8px),
        radial-gradient(circle at 80% 20%, #4ecdc4 6px, transparent 6px),
        radial-gradient(circle at 30% 40%, #feca57 10px, transparent 10px),
        radial-gradient(circle at 70% 60%, #ff9ff3 7px, transparent 7px),
        radial-gradient(circle at 50% 80%, #54a0ff 9px, transparent 9px),
        radial-gradient(circle at 10% 70%, #ff6b6b 5px, transparent 5px),
        radial-gradient(circle at 90% 30%, #4ecdc4 8px, transparent 8px);
    background-size: 80px 80px, 100px 100px, 60px 60px, 120px 120px, 90px 90px, 70px 70px, 110px 110px;
    animation: fireworksLeft 4s ease-in-out infinite;
    opacity: 0.9;
    filter: blur(1px);
}

.fireworks-right {
    position: absolute;
    right: 3%;
    top: 15%;
    width: 300px;
    height: 400px;
    background-image: 
        radial-gradient(circle at 80% 10%, #ff6b6b 8px, transparent 8px),
        radial-gradient(circle at 20% 20%, #4ecdc4 6px, transparent 6px),
        radial-gradient(circle at 70% 40%, #feca57 10px, transparent 10px),
        radial-gradient(circle at 30% 60%, #ff9ff3 7px, transparent 7px),
        radial-gradient(circle at 50% 80%, #54a0ff 9px, transparent 9px),
        radial-gradient(circle at 90% 70%, #ff6b6b 5px, transparent 5px),
        radial-gradient(circle at 10% 30%, #4ecdc4 8px, transparent 8px);
    background-size: 80px 80px, 100px 100px, 60px 60px, 120px 120px, 90px 90px, 70px 70px, 110px 110px;
    animation: fireworksRight 4s ease-in-out infinite;
    opacity: 0.9;
    filter: blur(1px);
}

@keyframes fireworksLeft {
    0% { 
        opacity: 0;
        transform: scale(0.3) translateY(100px) rotate(0deg);
    }
    30% { 
        opacity: 0.9;
        transform: scale(1.2) translateY(-20px) rotate(180deg);
    }
    70% { 
        opacity: 0.7;
        transform: scale(1) translateY(0) rotate(360deg);
    }
    100% { 
        opacity: 0;
        transform: scale(0.5) translateY(50px) rotate(540deg);
    }
}

@keyframes fireworksRight {
    0% { 
        opacity: 0;
        transform: scale(0.3) translateY(100px) rotate(0deg);
    }
    30% { 
        opacity: 0.9;
        transform: scale(1.2) translateY(-20px) rotate(-180deg);
    }
    70% { 
        opacity: 0.7;
        transform: scale(1) translateY(0) rotate(-360deg);
    }
    100% { 
        opacity: 0;
        transform: scale(0.5) translateY(50px) rotate(-540deg);
    }
}

.ceremony-header {
    text-align: center;
    margin-bottom: 200px;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s ease-out;
    position: relative;
    z-index: 2;
}

.ceremony-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}
.ceremony-icon {
    color: #ffd700;
    margin: 0 20px;
    animation: iconSpin 3s linear infinite;
}.ceremony-subtitle {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

@keyframes titleGlow {
    0% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.8); }
}

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

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 80px;
    margin-top: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    position: relative;
    z-index: 2;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.podium-base {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 140px;
    border: 3px solid #ecf0f1;
}

.first-place .podium-base {
    height: 220px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #f39c12 100%);
    box-shadow: 0 12px 35px rgba(243, 156, 18, 0.5);
    border-color: #f1c40f;
}

.second-place .podium-base {
    height: 170px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 50%, #95a5a6 100%);
    box-shadow: 0 10px 30px rgba(149, 165, 166, 0.5);
    border-color: #bdc3c7;
}

.third-place .podium-base {
    height: 140px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.5);
    border-color: #d2691e;
}

.podium-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.podium-trophy {
    font-size: 2.5rem;
    margin-top: auto;
    margin-bottom: 10px;
}

.gold-trophy {
    color: #f1c40f;
    animation: trophyGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
}

.silver-trophy {
    color: #bdc3c7;
    animation: trophyGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(189, 195, 199, 0.6);
}

.bronze-trophy {
    color: #d2691e;
    animation: trophyGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(210, 105, 30, 0.6);
}

@keyframes trophyGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3); }
}

.medal-on-neck {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    z-index: 10;
}

.gold-medal-neck {
    color: #f1c40f;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.8);
    animation: medalNeckGlow 2s ease-in-out infinite alternate;
}

.silver-medal-neck {
    color: #bdc3c7;
    text-shadow: 0 0 8px rgba(189, 195, 199, 0.8);
    animation: medalNeckGlow 2s ease-in-out infinite alternate;
}

.bronze-medal-neck {
    color: #d2691e;
    text-shadow: 0 0 8px rgba(210, 105, 30, 0.8);
    animation: medalNeckGlow 2s ease-in-out infinite alternate;
}

@keyframes medalNeckGlow {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.1); }
}

.student-on-podium {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin-bottom: 20px;
}

.student-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: avatarBounce 2s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

.student-emoji-large {
    font-size: 2.5rem;
}

.student-name-large {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.student-score-large {
    font-size: 1rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes avatarBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cheering-students {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    position: relative;
    z-index: 2;
}

.cheering-student {
    text-align: center;
    animation: cheeringBounce 1.5s ease-in-out infinite;
}

.cheering-student:nth-child(odd) {
    animation-delay: 0.2s;
}

.cheering-student:nth-child(even) {
    animation-delay: 0.4s;
}

.cheering-student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.cheering-student-emoji {
    font-size: 1.8rem;
}

.cheering-student-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 3px;
}

.cheering-student-score {
    font-size: 0.8rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes cheeringBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ceremony-controls {
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    position: relative;
    z-index: 2;
}

.ceremony-controls .btn {
    margin: 0 10px;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ceremony-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.no-students-message {
    text-align: center;
    color: #fff;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.no-students-message i {
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-students-message h3 {
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.no-students-message p {
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 - 颁奖典礼 */
@media (max-width: 768px) {
    .ceremony-title {
        font-size: 2.5rem;
    }
    
    .ceremony-subtitle {
        font-size: 1.2rem;
    }
    
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .podium-place {
        order: 2;
    }
    
    .first-place {
        order: 1;
    }
    
    .second-place {
        order: 2;
    }
    
    .third-place {
        order: 3;
    }
    
    .student-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .student-emoji-large {
        font-size: 2rem;
    }
    
    .cheering-students {
        gap: 15px;
    }
    
    .cheering-student-avatar {
        width: 50px;
        height: 50px;
    }
    
    .cheering-student-emoji {
        font-size: 1.5rem;
    }
}/* 班级详情页面样式 */
.class-detail-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

.class-header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.class-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.class-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.class-meta {
    display: flex;
    gap: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

.class-actions {
    display: flex;
    gap: 15px;
}

.section-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    margin: 0;
    color: #1565c0;
    font-size: 1.3rem;
    font-weight: 600;
}

.student-count-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.add-student-section {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
}

.add-student-section .input-group {
    max-width: 400px;
}

.no-students-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-students-message i {
    color: #ccc;
    margin-bottom: 20px;
}

.no-students-message h3 {
    color: #999;
    margin-bottom: 10px;
}

.no-students-message p {
    color: #aaa;
    margin-bottom: 0;
}

/* 竞赛目标部分 */
.goal-section {
    margin-bottom: 30px;
}

.goal-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.goal-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.goal-header h3 {
    margin: 0;
    color: #8b4513;
    font-size: 1.3rem;
    font-weight: 600;
}

.goal-status {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.goal-content {
    padding: 25px;
}

.goal-content h4 {
    color: #1565c0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.goal-content p {
    color: #666;
    margin-bottom: 20px;
}

/* 竞赛目标卡片样式 */
.competition-goal-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.competition-goal-card .goal-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.competition-goal-card .goal-header h3 {
    margin: 0;
    color: #8b4513;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.competition-goal-card .goal-header h3 i {
    color: #8b4513;
}

.competition-goal-card .goal-status {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.competition-goal-card .goal-content {
    padding: 25px;
}

.competition-goal-card .goal-info {
    text-align: center;
}

.competition-goal-card .goal-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 10px;
}

.competition-goal-card .goal-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 1rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(0, 123, 255, 0.2);
}

.competition-goal-card .goal-date i {
    color: #007bff;
}

.competition-goal-card .goal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.competition-goal-card .metric-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.competition-goal-card .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.competition-goal-card .metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.goal-progress {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.progress-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.progress-value {
    font-size: 1rem;
    color: #1565c0;
    font-weight: 600;
}

.progress-bar-container {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    height: 100%;
    transition: width 0.3s ease;
}

/* 课程历史部分 */
.courses-list {
    padding: 25px;
}

.course-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #4facfe;
}

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

.course-name {
    margin: 0;
    color: #1565c0;
    font-size: 1.1rem;
    font-weight: 600;
}

.course-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-status.active {
    background: #d4edda;
    color: #155724;
}

.course-status.completed {
    background: #f8d7da;
    color: #721c24;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.course-meta .meta-item {
    font-size: 0.85rem;
    color: #666;
}

.course-actions {
    display: flex;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .class-header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .class-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-info {
        grid-template-columns: 1fr;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 8px;
    }
}







