/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8eaed;
}

/* Logo区域样式 */
.logo-bar {
    background: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #e8eaed;
}

.logo-bar img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 0;
    color: white;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1em;
    color: #666;
}

/* 区块样式 */
.section {
    padding: 40px;
}

/* 用户登录区域 */
#user-login {
    text-align: center;
}

#user-login h2 {
    color: #333;
    margin-bottom: 30px;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

#user-id-input,
#password-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#user-id-input:focus,
#password-input:focus {
    outline: none;
    border-color: #667eea;
}

.login-hint {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

/* 用户信息栏 */
.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.export-btn,
.logout-btn {
    padding: 10px 20px;
    font-size: 14px;
    background: #28a745;
}

.logout-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.export-btn:hover {
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

/* 周次选择器 */
.week-selector {
    margin-bottom: 30px;
}

.week-selector label {
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
}

.week-selector select {
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

/* 视频列表 */
.video-list h3 {
    color: #333;
    margin-bottom: 20px;
}

#videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.video-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.video-card.completed {
    border-color: #28a745;
    background: #e8f5e9;
}

.video-card.locked {
    background: #f0f0f0;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.video-card.locked:hover {
    border-color: #ccc;
    box-shadow: none;
    transform: none;
}

.video-card.locked h4 {
    color: #999;
}

.video-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.video-card .status {
    font-size: 14px;
    color: #666;
}

.video-card .status.completed {
    color: #28a745;
    font-weight: bold;
}

.video-card .status.locked-text {
    color: #999;
    font-weight: 500;
}

/* 视频播放器 */
#video-player-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
}

#main-video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    z-index: 10;
}

.overlay-content {
    text-align: center;
}

.overlay-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

#start-video-btn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

#video-progress-info {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 问卷区域 */
#questionnaire-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

#questionnaire-section h3 {
    color: #333;
    margin-bottom: 10px;
}

.questionnaire-intro {
    color: #666;
    margin-bottom: 30px;
}

.question {
    margin-bottom: 25px;
}

.question label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.question textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.question select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

#questionnaire-form button {
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

/* 标签导航栏 */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    background: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 18px 30px;
    font-size: 1.1em;
    font-weight: bold;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    color: #666;
}

.tab-button:hover {
    background: #e8e8e8;
}

.tab-button.active {
    background: white;
    color: #333;
}

.tab-button:first-child.active {
    border-bottom-color: #667eea;
}

.tab-button:nth-child(2).active {
    border-bottom-color: #11998e;
}

.tab-button:nth-child(3).active {
    border-bottom-color: #f5576c;
}

/* 主内容容器 */
.main-content {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

/* 标签页内容 */
.tab-content {
    display: none;
    width: 100%;
    min-height: 600px;
    animation: fadeIn 0.3s ease-in;
}

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

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

/* 标签页内部容器 */
.tab-inner {
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 空白占位符样式 */
.empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #999;
    font-size: 1.2em;
    text-align: center;
}

.empty-placeholder p:first-child {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #666;
}

.placeholder-text {
    font-size: 1em;
    font-style: italic;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.modal-header .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.modal-body {
    color: #666;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions button {
    flex: 1;
    max-width: 150px;
    padding: 15px 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8a8a8 0%, #7c7c7c 100%);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.btn-success:hover {
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

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

.btn-warning:hover {
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

/* 问卷模态框样式 */
.questionnaire-modal .modal-content {
    max-width: 700px;
    padding: 30px;
}

/* 必填问卷样式 - 阻止点击外部关闭 */
.questionnaire-required {
    pointer-events: all;
}

.questionnaire-required .modal-content {
    pointer-events: all;
}

.questionnaire-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow-y: auto;
}

.questionnaire-question {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.questionnaire-question:last-child {
    margin-bottom: 0;
}

.question-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.question-subtitle {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
    font-style: italic;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 问卷指导语样式 */
.questionnaire-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.questionnaire-instructions p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 0.95em;
}

.questionnaire-instructions p:first-child {
    margin-top: 0;
}

.questionnaire-instructions p:last-child {
    margin-bottom: 0;
}

/* 量表选项布局 */
.question-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.scale-option:hover {
    border-color: #667eea;
    background: #f5f7ff;
    transform: translateY(-2px);
}

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

.scale-option label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    font-size: 0.9em;
    line-height: 1.4;
}

.scale-option input[type="radio"]:checked ~ label {
    font-weight: bold;
    color: #667eea;
}

.scale-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.scale-option:has(input[type="radio"]:checked) label {
    color: white;
}

.scale-option:has(input[type="radio"]:checked) label span {
    color: rgba(255, 255, 255, 0.9);
}

/* NA选项特殊样式 */
.na-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ffc107;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff8e1;
    margin-left: auto;
}

.na-option:hover {
    border-color: #ff9800;
    background: #ffecb3;
}

.na-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.na-option label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #f57c00;
}

.na-option input[type="radio"]:checked + label {
    font-weight: bold;
}

/* 旧的选项样式（向后兼容） */
.option-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.option-item input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.option-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: normal;
}

.option-item input[type="radio"]:checked + label {
    font-weight: bold;
    color: #667eea;
}

.questionnaire-submit {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.questionnaire-submit button {
    min-width: 200px;
    padding: 15px 40px;
}

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

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

.questionnaire-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.questionnaire-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .section {
        padding: 20px;
    }
    
    #videos-container {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-inner {
        padding: 15px;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .modal-content {
        padding: 25px;
        max-width: 95%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
        flex-shrink: 0;
        margin-bottom: 15px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        max-width: 100%;
    }
    
    .questionnaire-container {
        max-height: none;
        flex: 1;
        overflow-y: auto;
        margin-bottom: 15px;
    }
    
    .questionnaire-submit {
        flex-shrink: 0;
        padding-top: 15px;
        padding-bottom: 0;
    }
    
    /* 移动端量表选项调整 */
    .question-scale {
        flex-direction: column;
    }
    
    .scale-option {
        width: 100%;
        min-width: unset;
    }
    
    .na-option {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
    
    .questionnaire-instructions {
        padding: 15px;
        font-size: 0.9em;
    }
    
    .question-title {
        font-size: 0.95em;
    }
}

/* ==================== Q&A样式 ==================== */

.qa-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.qa-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.qa-description {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.qa-description p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 1.05em;
}

.qa-description p:first-child {
    margin-top: 0;
}

.qa-description p:last-child {
    margin-bottom: 0;
}

.qa-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.qa-form label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.qa-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.qa-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}

.char-counter span {
    font-weight: 600;
}

.qa-form .submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.3s;
}

.qa-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.qa-form .submit-btn:active {
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
    animation: slideIn 0.3s ease-out;
}

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

/* ==================== 密集追踪问卷样式 ==================== */

.intensive-tracking-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    animation: fadeInUp 0.5s ease;
}

.intensive-tracking-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* 填写要求说明 */
.tracking-requirements {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tracking-requirements h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.tracking-requirements p {
    margin: 0 0 10px 0;
    font-size: 1em;
    line-height: 1.6;
}

.tracking-requirements ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.tracking-requirements li {
    margin: 8px 0;
    font-size: 1em;
    line-height: 1.6;
}

.tracking-requirements strong {
    font-weight: 700;
    text-decoration: underline;
}

/* 统计信息 */
.tracking-stats {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.stat-value {
    display: inline-block;
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin: 0 5px;
}

/* 提醒信息 */
.tracking-reminder {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

.tracking-reminder.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.tracking-reminder.info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.tracking-reminder.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.tracking-reminder p {
    margin: 5px 0;
    font-size: 1em;
    line-height: 1.6;
}

.tracking-reminder strong {
    font-weight: 700;
}

/* 问卷表单 */
.tracking-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.tracking-question {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.tracking-question:last-of-type {
    border-bottom: none;
}

.tracking-question label {
    display: block;
    color: #2c3e50;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

.question-number {
    display: inline-block;
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 0.95em;
}

.tracking-question small {
    display: block;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 5px;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: #e9ecf1;
    border-color: #667eea;
    transform: translateX(5px);
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-option input[type="radio"]:checked ~ span {
    color: #667eea;
    font-weight: 600;
}

.radio-option span {
    flex: 1;
    color: #495057;
    font-size: 1em;
}

/* 滑块容器 */
.slider-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.intensity-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, #4CAF50 0%, #FFC107 50%, #F44336 100%);
    cursor: pointer;
    margin: 15px 0;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 3px solid #667eea;
}

.intensity-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 3px solid #667eea;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
}

.slider-labels span {
    text-align: center;
}

.slider-labels small {
    display: block;
    font-size: 0.85em;
    margin-top: 2px;
}

.slider-value {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1em;
    color: #495057;
}

.slider-value strong {
    font-size: 1.5em;
    color: #667eea;
    font-weight: 700;
}

/* 数字输入 */
.number-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.number-input {
    width: 150px;
    padding: 12px 16px;
    font-size: 1.2em;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.input-unit {
    font-size: 1.1em;
    color: #6c757d;
    font-weight: 500;
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.tracking-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tracking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.tracking-submit:active {
    transform: translateY(0);
}

/* 最近提交记录 */
.recent-submissions {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recent-submissions h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.submissions-list {
    max-height: 300px;
    overflow-y: auto;
}

.submission-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #495057;
    font-size: 0.95em;
}

.submission-item:last-child {
    margin-bottom: 0;
}

/* 滚动条样式 */
.submissions-list::-webkit-scrollbar {
    width: 8px;
}

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

.submissions-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.submissions-list::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* 动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qa-section {
        padding: 15px;
    }
    
    .qa-section h2 {
        font-size: 1.5em;
    }
    
    .qa-description {
        padding: 15px;
        font-size: 0.95em;
    }
    
    .qa-form {
        padding: 20px;
    }
    
    .qa-form textarea {
        padding: 12px;
    }
    
    /* 密集追踪响应式 */
    .intensive-tracking-section {
        padding: 20px 15px;
    }
    
    .intensive-tracking-section h2 {
        font-size: 1.5em;
    }
    
    .tracking-requirements {
        padding: 20px;
    }
    
    .tracking-requirements h3 {
        font-size: 1.1em;
    }
    
    .tracking-requirements li {
        font-size: 0.95em;
    }
    
    .tracking-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .tracking-form {
        padding: 20px;
    }
    
    .radio-group {
        gap: 8px;
    }
    
    .radio-option {
        padding: 10px 15px;
    }
    
    .question-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.9em;
    }
    
    .number-input {
        width: 120px;
        font-size: 1.1em;
    }
    
    .recent-submissions {
        padding: 20px;
    }
}

/* 视频测试题样式 */
.test-question-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.test-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.test-question-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
}

.test-question-progress {
    font-size: 0.95em;
    color: #7f8c8d;
}

.test-question-content {
    margin-bottom: 25px;
}

.test-question-text {
    font-size: 1.1em;
    color: #34495e;
    margin-bottom: 20px;
    line-height: 1.6;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.test-option:hover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: translateX(5px);
}

.test-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.test-option.selected {
    border-color: #3498db;
    background: #e3f2fd;
    font-weight: 500;
}

.test-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

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

.test-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.test-button.primary {
    background: #3498db;
    color: white;
}

.test-button.primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.test-button.secondary {
    background: #95a5a6;
    color: white;
}

.test-button.secondary:hover {
    background: #7f8c8d;
}

.test-button.success {
    background: #27ae60;
    color: white;
}

.test-button.success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.test-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.test-info {
    font-size: 0.9em;
    color: #7f8c8d;
}

/* 视频测试结果样式 */
.test-result-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.test-result-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.test-result-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.test-result-score {
    font-size: 2.5em;
    font-weight: bold;
    color: #27ae60;
    margin: 20px 0;
}

.test-result-message {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.test-result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .test-question-container {
        padding: 20px;
        margin: 10px;
    }
    
    .test-question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .test-question-title {
        font-size: 1.1em;
    }
    
    .test-question-text {
        font-size: 1em;
    }
    
    .test-option {
        padding: 12px 15px;
    }
    
    .test-actions {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .test-nav-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .test-button {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .test-result-container {
        padding: 25px;
        margin: 10px;
    }
    
    .test-result-icon {
        font-size: 3em;
    }
    
    .test-result-title {
        font-size: 1.4em;
    }
    
    .test-result-score {
        font-size: 2em;
    }
    
    .test-result-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .test-result-actions .test-button {
        width: 100%;
    }
}

/* 同时显示所有题目的样式 */
.test-all-questions {
    margin: 20px 0;
}

.test-question-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s;
}

.test-question-item:hover {
    border-color: #3498db;
}

.test-question-item .test-question-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.test-question-item .test-options {
    margin-top: 10px;
}

/* 答题详情样式 */
.test-result-details {
    margin: 25px 0;
    text-align: left;
}

.question-result-item {
    transition: transform 0.2s;
}

.question-result-item:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .test-question-item {
        padding: 15px;
    }
    
    .test-result-details {
        margin: 20px 0;
    }
}

/* ==================== 视频测试题样式 ==================== */

/* 测试按钮区域 */
#video-test-button-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.test-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.test-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.test-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.test-button .lock-icon,
.test-button .check-icon {
    font-size: 1.2em;
}

.test-hint {
    margin-top: 10px;
    font-size: 0.95em;
    color: #7f8c8d;
}

/* 视频测试区域 */
#video-test-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#video-test-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.test-intro {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.05em;
}

/* 测试题容器 */
#test-questions-container {
    margin-bottom: 30px;
}

.test-question {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.question-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.question-type-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

.question-text {
    font-size: 1.05em;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.question-hint {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

/* 选项样式 */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 填空题样式 */
.fill-blank-container {
    margin: 15px 0;
}

.fill-blank-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.fill-blank-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fill-blank-input::placeholder {
    color: #95a5a6;
    font-style: italic;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-item input[type="radio"]:checked,
.option-item input[type="checkbox"]:checked {
    accent-color: #667eea;
}

.option-content {
    flex: 1;
    font-size: 1em;
    color: #2c3e50;
}

/* 判断题特殊样式 */
.judge-options {
    flex-direction: row;
    gap: 20px;
}

.judge-options .option-item {
    flex: 1;
    justify-content: center;
}

/* 排序题样式 */
.sort-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    min-height: 200px;
}

.sort-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.3s ease;
}

.sort-item:hover {
    background: #e8ecf1;
    border-color: #667eea;
}

.sort-item.dragging {
    opacity: 0.5;
}

.sort-handle {
    font-size: 1.2em;
    color: #95a5a6;
    margin-right: 15px;
    cursor: grab;
}

.sort-handle:active {
    cursor: grabbing;
}

.sort-label {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 15px;
    font-weight: bold;
}

.sort-text {
    flex: 1;
    color: #2c3e50;
}

/* 提交按钮 */
.test-actions {
    text-align: center;
    padding-top: 20px;
}

.submit-test-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 测试结果 */
.test-result {
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

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

.test-result.success {
    background: #d4edda;
    border: 2px solid #28a745;
}

.test-result.failure {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.test-result .result-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.test-result h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.test-result p {
    color: #495057;
    font-size: 1.05em;
    margin-bottom: 10px;
}

.test-result button {
    margin: 10px 5px;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-result .primary-btn {
    background: #28a745;
    color: white;
}

.test-result .primary-btn:hover {
    background: #218838;
}

.test-result .retry-btn {
    background: #ffc107;
    color: #212529;
}

.test-result .retry-btn:hover {
    background: #e0a800;
}

.test-result .secondary-btn {
    background: #6c757d;
    color: white;
}

.test-result .secondary-btn:hover {
    background: #5a6268;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #video-test-button-section {
        padding: 20px;
    }
    
    .test-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    #video-test-section {
        padding: 20px;
    }
    
    .test-question {
        padding: 20px;
    }
    
    .judge-options {
        flex-direction: column;
    }
    
    .test-result {
        padding: 20px;
    }
    
    .test-result .result-icon {
        font-size: 3em;
    }
    
    .test-result button {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}

/* ==================== 管理员后台样式 ==================== */
.admin-dashboard {
    padding: 30px;
    min-height: 500px;
}

.admin-dashboard h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
}

.dashboard-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 50px;
}

.admin-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f0 100%);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.placeholder-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.admin-placeholder p {
    font-size: 1.3em;
    color: #555;
    margin: 10px 0;
}

.placeholder-hint {
    color: #888;
    font-size: 1em !important;
    margin-top: 20px !important;
}

/* 管理员标签页样式 */
#admin-dashboard-tab {
    background: #fff;
}

#admin-dashboard-tab .tab-inner {
    padding: 0;
}

#admin-dashboard-tab .user-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#admin-dashboard-tab .logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#admin-dashboard-tab .logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== Admin 4栏界面样式 ==================== */

/* Admin专用区域样式 */
.admin-section {
    padding: 40px;
    background: #f8f9fa;
    min-height: 500px;
}

.admin-section h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

/* Placeholder内容样式 */
.placeholder-content {
    background: white;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.placeholder-text {
    font-size: 1.3em;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

.placeholder-description {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* Admin标签页的用户信息栏 */
#pbs-survey-tab .user-info,
#video-exercise-tab .user-info,
#intensive-tracking-tab .user-info,
#qa-admin-tab .user-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

#pbs-survey-tab .user-info strong,
#video-exercise-tab .user-info strong,
#intensive-tracking-tab .user-info strong,
#qa-admin-tab .user-info strong {
    color: #fff;
    font-weight: 600;
}

/* Admin标签按钮特殊样式（如果需要区分的话） */
#tab-navigation-admin .tab-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#tab-navigation-admin .tab-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#tab-navigation-admin .tab-button.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

/* 为不同的admin标签页添加特色图标和颜色 */
#pbs-survey-tab .placeholder-content {
    border-top: 4px solid #667eea;
}

#video-exercise-tab .placeholder-content {
    border-top: 4px solid #f093fb;
}

#intensive-tracking-tab .placeholder-content {
    border-top: 4px solid #11998e;
}

#qa-admin-tab .placeholder-content {
    border-top: 4px solid #764ba2;
}

/* 响应式设计 - Admin标签导航 */
@media (max-width: 768px) {
    #tab-navigation-admin {
        flex-direction: column;
        gap: 10px;
    }
    
    #tab-navigation-admin .tab-button {
        width: 100%;
        margin: 0;
    }
    
    .admin-section {
        padding: 20px;
    }
    
    .placeholder-content {
        padding: 40px 20px;
    }
}

/* ==================== PBS 问卷管理样式 ==================== */

/* PBS 控制栏 */
.pbs-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.pbs-search {
    flex: 1;
    min-width: 250px;
}

.pbs-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

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

.pbs-export-btn,
.pbs-refresh-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pbs-export-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.pbs-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.pbs-refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pbs-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pbs-add-user-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.pbs-add-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* PBS 表格容器 */
.pbs-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.pbs-table-container {
    overflow: auto;
    max-height: 600px;
    position: relative;
}

/* PBS 表格样式 */
.pbs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.pbs-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}

.pbs-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #5568d3;
    white-space: nowrap;
    font-size: 13px;
}

.pbs-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.pbs-table tbody tr {
    transition: background-color 0.2s ease;
}

.pbs-table tbody tr:hover {
    background: #f8f9fa;
}

/* 固定列样式 */
.pbs-table .sticky-col,
.pbs-table .sticky-col-2 {
    position: sticky;
    background: white;
    z-index: 5;
    border-right: 2px solid #e0e0e0;
}

.pbs-table .sticky-col {
    left: 0;
    min-width: 120px;
    font-weight: 600;
    color: #667eea;
}

.pbs-table .sticky-col-2 {
    left: 120px;
    min-width: 180px;
    color: #666;
}

.pbs-table thead .sticky-col,
.pbs-table thead .sticky-col-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 15;
}

.pbs-table tbody tr:hover .sticky-col,
.pbs-table tbody tr:hover .sticky-col-2 {
    background: #f8f9fa;
}

/* 答案单元格样式 - 带hover提示 */
.pbs-table .answer-cell {
    min-width: 60px;
    font-weight: 500;
    color: #333;
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
}

.pbs-table .answer-cell:hover {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    transform: scale(1.05);
}

/* Tooltip 样式（使用原生 title 属性，浏览器会自动显示） */
/* 但我们可以添加额外的视觉反馈 */
.pbs-table .answer-cell[data-value="0"] {
    color: #999;
}

.pbs-table .answer-cell[data-value="1"] {
    color: #d32f2f;
}

.pbs-table .answer-cell[data-value="2"] {
    color: #f57c00;
}

.pbs-table .answer-cell[data-value="3"] {
    color: #fbc02d;
}

.pbs-table .answer-cell[data-value="4"] {
    color: #388e3c;
}

.pbs-table .answer-cell[data-value="5"] {
    color: #1976d2;
}

/* PBS 统计信息 */
.pbs-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.pbs-stats span {
    color: #666;
    font-size: 14px;
}

.pbs-stats strong {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

/* 加载动画 */
.loading-spinner {
    font-size: 18px;
    color: #667eea;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pbs-controls {
        flex-direction: column;
    }
    
    .pbs-search {
        width: 100%;
    }
    
    .pbs-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .pbs-export-btn,
    .pbs-refresh-btn {
        flex: 1;
    }
    
    .pbs-table-container {
        max-height: 400px;
    }
    
    .pbs-table {
        font-size: 12px;
    }
    
    .pbs-table th,
    .pbs-table td {
        padding: 8px 6px;
    }
    
    .pbs-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==================== 密集追踪管理样式 ==================== */

.intensive-search-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box label {
    font-weight: 500;
    color: #333;
}

.search-box input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #11998e;
}

.search-box .btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.search-box .btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.search-box .btn-secondary:hover {
    background: #5a6268;
}

/* 统计信息 */
.intensive-stats {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #11998e;
}

.intensive-stats p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.intensive-stats strong {
    color: #11998e;
    font-size: 16px;
}

/* 表格容器 */
#intensive-results-container {
    margin-top: 20px;
}

#intensive-tracking-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#intensive-tracking-table thead {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

#intensive-tracking-table th {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

#intensive-tracking-table td {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

#intensive-tracking-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#intensive-tracking-table tbody tr:hover {
    background-color: #e9ecef;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state p {
    font-size: 16px;
    margin: 10px 0;
}

.empty-state strong {
    color: #11998e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input {
        min-width: 100%;
    }
    
    .search-box .btn-primary,
    .search-box .btn-secondary {
        width: 100%;
    }
    
    #intensive-tracking-table {
        font-size: 12px;
    }
    
    #intensive-tracking-table th,
    #intensive-tracking-table td {
        padding: 8px 6px;
    }
}

/* ==================== 视频数据分析样式 ==================== */

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

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3em;
    margin-right: 15px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

/* 分析区域 */
.analytics-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.section-header h3 {
    margin: 0;
    color: #2c3e50;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.controls label {
    font-weight: 500;
    color: #495057;
}

.controls select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95em;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.export-btn,
.refresh-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

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

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.refresh-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
}

.refresh-btn:hover {
    background: #e9ecef;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

/* 分析表格 */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.analytics-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.analytics-table thead th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

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

.analytics-table tbody tr:hover {
    background-color: #f8f9fa;
}

.analytics-table tbody td {
    padding: 12px;
    color: #495057;
}

/* 正确率单元格 */
.analytics-table .rate-cell {
    font-weight: 600;
}

.rate-high {
    color: #28a745;
}

.rate-medium {
    color: #ffc107;
}

.rate-low {
    color: #dc3545;
}

/* 类型标签 */
.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.type-single {
    background: #e3f2fd;
    color: #1976d2;
}

.type-multiple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.type-judge {
    background: #e8f5e9;
    color: #388e3c;
}

/* 响应式 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls select,
    .export-btn,
    .refresh-btn {
        width: 100%;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .analytics-table {
        font-size: 0.85em;
    }
    
    .analytics-table thead th,
    .analytics-table tbody td {
        padding: 10px 8px;
    }
}

/* ==================== Q&A管理样式 ==================== */

.qa-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qa-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.qa-actions .search-box,
.qa-actions .export-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qa-actions label {
    font-weight: 500;
    color: #495057;
}

.qa-actions input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95em;
    min-width: 200px;
}

.qa-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.qa-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.qa-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

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

.qa-table tbody tr:hover {
    background-color: #f8f9fa;
}

.qa-table tbody td {
    padding: 15px;
    color: #495057;
    vertical-align: top;
}

.qa-table tbody td:nth-child(3) {
    max-width: 400px;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.6;
}

.qa-delete-btn {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.qa-delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding: 20px;
}

.pagination-controls button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
}

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

.pagination-controls span {
    font-weight: 500;
    color: #495057;
}

#qa-loading, #qa-error {
    text-align: center;
    padding: 40px;
}

#qa-error p {
    color: #dc3545;
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qa-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qa-actions .search-box,
    .qa-actions .export-box {
        flex-direction: column;
        width: 100%;
    }
    
    .qa-actions input[type="text"],
    .qa-actions button {
        width: 100%;
    }
    
    .qa-table {
        font-size: 0.85em;
    }
    
    .qa-table thead th,
    .qa-table tbody td {
        padding: 10px 8px;
    }
}

/* ==================== 添加家长用户模态框样式 ==================== */
.add-user-modal-content {
    max-width: 500px;
    width: 90%;
    margin: 80px auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

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

.close-modal-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn, .confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

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

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .add-user-modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .cancel-btn, .confirm-btn {
        width: 100%;
    }
}
/* Mini Quiz 详细反馈样式 */
.quiz-details {
    margin: 20px 0;
    text-align: left;
}

.quiz-detail-item {
    background: #f8f9fa;
    border-left: 4px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.quiz-detail-item.correct {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.quiz-detail-item.incorrect {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 16px;
}

.detail-icon {
    font-size: 20px;
}

.detail-answer {
    margin: 10px 0;
    padding: 8px 0;
    color: #333;
}

.detail-answer strong {
    color: #1976d2;
    font-weight: 600;
}

.detail-explanation {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    line-height: 1.6;
    color: #555;
}

.explanation-icon {
    margin-right: 6px;
}

.explanation-label {
    font-weight: 600;
    color: #666;
}

.test-result.success .quiz-detail-item {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.test-result.failure .quiz-detail-item.incorrect {
    background: #fff3e0;
    border-left-color: #ff9800;
}

/* ==================== 注册相关样式 ==================== */

/* 弹窗基础样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #000;
}

/* 知情说明内容样式 */
.consent-content {
    margin-top: 20px;
}

.consent-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.consent-section:last-of-type {
    border-bottom: none;
}

.consent-section h3 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 10px;
}

.consent-section p {
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.consent-checkbox-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #667eea;
}

.consent-checkbox-wrapper label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.consent-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

/* 注册表单弹窗样式 */
.registration-form {
    margin-top: 20px;
}

.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.registration-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.registration-form input:focus {
    outline: none;
    border-color: #667eea;
}

.registration-form .hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.registration-form .error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.registration-form .success {
    color: #28a745;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* ============ 注册表单样式 ============ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[readonly] {
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
}

/* 确保required星号显示 */
.required {
    color: #e74c3c;
    margin-left: 2px;
}
