* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);  /* 科技感深色背景 */
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);  /* 深色科技背景 */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 201, 255, 0.1);  /* 科技感阴影 */
    border: 1px solid rgba(0, 201, 255, 0.2);  /* 科技蓝边框 */
}

/* 主标题 - 大幅增大字体 */
.main-title {
    text-align: center;
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);  /* 科技蓝绿色渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 3.5em;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 201, 255, 0.5), 0 0 20px rgba(0, 201, 255, 0.3);  /* 霓虹光效 */
    position: relative;
}

/* 科技感装饰线 */
.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00c9ff, transparent);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #00c9ff; }
    to { box-shadow: 0 0 20px #00c9ff, 0 0 30px #00c9ff; }
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
}

h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.student-info {
    background: rgba(255, 255, 255, 0.1);  /* 半透明背景 */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 201, 255, 0.1);  /* 科技感阴影 */
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);  /* 半透明边框 */
    backdrop-filter: blur(10px);  /* 毛玻璃效果 */
}

.student-info input {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #00c9ff;  /* 科技蓝边框 */
    border-radius: 8px;
    margin: 0 10px;
    width: 200px;
    background: rgba(0, 0, 0, 0.3);  /* 深色背景 */
    color: white;  /* 白色文字 */
}

.student-info input::placeholder {
    color: #aaa;  /* 占位符颜色 */
}

.student-info button {
    padding: 12px 30px;
    font-size: 16px;
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);  /* 科技感渐变 */
    color: #000;  /* 黑色文字提高对比度 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.5);  /* 霓虹光效 */
}

.student-info button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 201, 255, 0.8);  /* 悬停光效增强 */
}

.student-info button:hover {
    transform: scale(1.05);
}

.leaderboard {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.leaderboard h3 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    margin: 8px 0;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.leaderboard-item.top3 {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    font-weight: bold;
}

.lesson-selector {
    margin-bottom: 30px;
    text-align: center;
}

/* 课文选择下拉框与确定按钮尺寸对齐“学生姓名”输入区 */
.lesson-selector select {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #00c9ff;
    border-radius: 8px;
    margin: 0 10px;
    width: 200px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.lesson-selector button {
    padding: 12px 30px;
    font-size: 16px;
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.5);
}

.lesson-selector button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 201, 255, 0.8);
}

.student-name-display {
    display: inline-block;
    margin-left: 20px;
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    color: #667eea;
    font-weight: bold;
}

.exercise-type-selector {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

/* 题型按钮 - 放大字体 */
.type-btn {
    padding: 15px 35px;  /* 增加内边距 */
    margin: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3em;  /* 从 16px 增加到 1.3em */
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.type-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.type-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 25px rgba(240, 147, 251, 0.5);
    transform: scale(1.05);
}

.lesson-btn {
    padding: 12px 30px;
    font-size: 16px;
    margin: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.lesson-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.lesson-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 25px rgba(240, 147, 251, 0.5);
    transform: scale(1.05);
}

.submit-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    margin-left: 20px;
    font-weight: bold;
    padding: 12px 30px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.score-display {
    display: inline-block;
    margin-left: 20px;
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    color: #f5576c;
    font-weight: bold;
    font-size: 18px;
}

.exercise-section {
    margin-top: 30px;
}

/* 题型标题 - 大幅放大字体 */
.exercise-section h2 {
    color: #667eea;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    font-size: 2.2em;  /* 从默认增加到 2.2em */
    font-weight: 700;
    text-align: center;
    border-left: 6px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

/* 选择题样式 */
.question-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.question-num {
    font-weight: bold;
    color: #667eea;
    margin-right: 8px;
}

.sentence {
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
}

.question-title {
    margin: 15px 0;
    font-weight: bold;
    color: #555;
}

.option-label {
    display: block;
    padding: 12px 20px;
    margin: 8px 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option-label.selected {
    border-color: #667eea;
    background: #e3f2fd;
}

.option-label.correct {
    border-color: #28a745;
    background: #d4edda;
}

.option-label.wrong {
    border-color: #dc3545;
    background: #f8d7da;
}

.option-label.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 常用义项匹配题样式 */
.meaning-word-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.meaning-word-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.matching-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.example-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.example-text {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

.drop-zone {
    min-height: 45px;
    padding: 10px;
    background: #fff;
    border: 2px dashed #aaa;
    border-radius: 6px;
    text-align: center;
    line-height: 25px;
    color: #999;
    font-size: 0.9em;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    background: #e3f2fd;
    border-color: #667eea;
}

.drop-zone.correct {
    border-color: #28a745;
    background: #d4edda;
    border-style: solid;
}

.drop-zone.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
    border-style: solid;
}

.meanings-column {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meaning-tag {
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border-radius: 6px;
    cursor: move;
    user-select: none;
    transition: all 0.3s;
    text-align: center;
}

.meaning-tag:hover {
    background: #764ba2;
    transform: scale(1.05);
}

.meaning-tag.dragging {
    opacity: 0.5;
}

/* 语段通记填空题样式 */
.passage-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
}

.passage-text {
    font-size: 1.1em;
    line-height: 2;
    color: #333;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.passage-drop-zone {
    display: inline-block;
    min-width: 150px;
    min-height: 30px;
    padding: 5px 10px;
    margin: 0 5px;
    background: #fff;
    border: 2px dashed #667eea;
    border-radius: 6px;
    vertical-align: middle;
    text-align: center;
}

.passage-drop-zone.drag-over {
    background: #e3f2fd;
    border-color: #764ba2;
}

.passage-drop-zone.correct {
    border-color: #28a745;
    background: #d4edda;
    border-style: solid;
}

.passage-drop-zone.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
    border-style: solid;
}

.passage-options-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.passage-option-tag {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border-radius: 6px;
    cursor: move;
    user-select: none;
    transition: all 0.3s;
}

.passage-option-tag:hover {
    background: #764ba2;
    transform: scale(1.05);
}

.passage-option-tag.dragging {
    opacity: 0.5;
}

/* 成绩激励画面 */
.score-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.score-modal.show {
    display: flex;
}

.score-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.final-score {
    font-size: 60px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.score-details {
    margin: 20px 0;
    color: #666;
    font-size: 16px;
}

.score-content button {
    padding: 12px 30px;
    margin: 10px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: transform 0.2s;
}

.score-content button:hover {
    transform: scale(1.05);
}

/* 管理员面板 */
.admin-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 999;
}

.admin-panel input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.admin-panel button {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.admin-panel button:hover {
    background: #764ba2;
}
