/* 注意力追踪测试页面样式 */

/* 面包屑导航 */
.breadcrumbs {
    background-color: #f1f1f1;
    padding: 10px 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #7f8c8d;
}

.breadcrumbs a:hover {
    color: #e74c3c;
}

.breadcrumbs span {
    color: #e74c3c;
    font-weight: 500;
}

/* 教学内容区域 */
.teaching-content {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    flex: 1;
    min-width: 250px;
}

.sidebar-nav {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-nav li {
    margin-bottom: 0;
    border-bottom: 1px solid #f1f1f1;
    list-style: none;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: block;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.sidebar-nav li.active a {
    background-color: #fee;
    color: #e74c3c;
    font-weight: 600;
}

.sidebar-nav a:hover {
    background-color: #f8f9fa;
}

.sidebar-box {
    background-color: #fee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.sidebar-box h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.sidebar-box p {
    margin-bottom: 20px;
    color: #34495e;
}

.progress-bar {
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: #e74c3c;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: #e74c3c;
}

/* 主要教学内容 */
.main-content {
    flex: 3;
    min-width: 300px;
}

.main-content article {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
    color: #2c3e50;
}

.main-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: #e74c3c;
}

.main-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-image {
    margin: 30px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 10px;
}

.tips-box {
    background-color: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.tips-box h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.tips-box ul {
    margin-bottom: 0;
    list-style-type: disc;
    padding-left: 20px;
}

.tips-box li {
    margin-bottom: 5px;
}

/* 练习区域 */
.exercise-container {
    margin: 30px 0;
}

.tracking-test-area {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.tracking-test-area h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.test-instruction {
    margin-bottom: 20px;
    font-weight: 500;
    padding: 15px;
    background-color: rgba(231, 76, 60, 0.05);
    border-radius: 4px;
}

.tracking-test-box {
    width: 100%;
    height: 300px;
    background-color: white;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.test-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7f8c8d;
    text-align: center;
}

.tracking-object {
    position: absolute;
    background-color: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.1s ease;
}

.tracking-object.highlighted {
    background-color: #e74c3c;
    transform: scale(1.2);
}

.tracking-object.selected {
    border: 3px solid #2ecc71;
}

.test-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.test-results {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.test-results h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.test-results p {
    margin-bottom: 5px;
}

/* 相关训练推荐 */
.related-training {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.related-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.related-card p {
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content h2 {
        font-size: 1.8rem;
    }
    
    .main-content h3 {
        font-size: 1.3rem;
    }
    
    .tracking-test-box {
        height: 250px;
    }
}
/* 相关训练推荐样式增强 */
.related-card .training-method {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}

.related-card .training-method h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.related-card .training-method ul {
    margin: 0;
    padding-left: 20px;
}

.related-card .training-method li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    list-style: none;
}

.related-card .training-method li:last-child {
    margin-bottom: 0;
}

.related-card .training-method strong {
    color: #2c3e50;
}

.related-card strong {
    color: #2c3e50;
}