* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 15px;
    margin: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    height: 95vh;
}

header {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    text-align: center;
}

/* 主内容区域 */
.main-content {
    display: flex;
    height: calc(95vh - 120px);
}

.video-section {
    flex: 3;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8f9fa;
}

.evaluation-section {
    flex: 2;
    padding: 20px;
    background: #f8f9fa;
    border-left: 2px solid #e9ecef;
    overflow-y: auto;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/*视频容器 */
.video-container {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
}

.video-wrapper {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.video-header {
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-header h3 {
    font-size: 1.3rem;
}

.video-player {
    position: relative;
    background: #000;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.video-progress-control {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 5px;
}

.video-player:hover .video-progress-control {
    opacity: 1;
}

.progress-slider {
    width: 100%;
    height: 5px;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.progress-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/*全局控制 */
.global-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: white;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.global-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.next-btn {
    background: #FF5722;
    color: white;
}

.prev-btn {
    background: #2196F3;
    color: white;
}

.import-btn {
    background: #9C27B0;
    color: white;
}

#playPauseBtn {
    background: #4CAF50;
    color: white;
}

#syncBtn {
    background: #2196F3;
    color: white;
}

#uploadBtnA, #uploadBtnB {
    background: #FF9800;
    color: white;
}

.global-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 评估表单 */
.evaluation-form {
    padding: 0;
}

.warning-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.warning-content {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.warning-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.warning-text {
    font-weight: 500;
    color: #856404;
}

.keyboard-hint {
    font-size: 0.9em;
    color: #6c757d;
}

.keyboard-hint .key {
    display: inline-block;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 3px;
    font-family: monospace;
}

.progress-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

#progressCounter, #currentGroupCounter {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.evaluation-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#globalNotice {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#globalNotice:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* 问题样式 */
.question-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.options-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.option-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.option-btn.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

/*表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.export-btn {
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(76, 175, 80, 0.3);
}

.reset-btn {
    background: #f44336;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(244, 67, 54, 0.3);
}

.form-actions button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/*响应式设计 */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
    }
    
    .options-container {
        flex-direction: column;
    }
    
    .global-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 初始配置上传弹窗 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.popup-body {
    margin: 20px 0;
}

.select-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
}

.file-name-display {
    margin: 15px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    min-height: 20px;
    word-break: break-all;
}

.popup-actions {
    margin-top: 20px;
}

.cancel-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

.upload-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}