/* 暗黑简洁主题 - 教学模板样式（极简扁平设计） */

/* ========== 教学模板样式 ========== */
.teaching-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    background: #1f2833;
    padding: 35px 35px;
    box-sizing: border-box;
}

/* 头部标题区域 */
.teaching-header {
    text-align: center;
    margin-bottom: 30px;
}

.teaching-title {
    font-size: 32px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 10px;
}

.teaching-description {
    font-size: 14px;
    color: #a0a8b0;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

/* 搜索框区域 */
.teaching-search-box {
    max-width: 560px;
    margin: 0 auto 35px;
    position: relative;
}

.teaching-search-input {
    width: 100%;
    padding: 10px 46px 10px 18px;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 13px;
    transition: border-color 0.2s;
    background: #1f2833;
    color: #CCCCCC;
    box-sizing: border-box;
}

.teaching-search-input::placeholder {
    color: #a0a8b0;
}

.teaching-search-input:focus {
    outline: none;
    border-color: #5dade2;
}

.teaching-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #5dade2;
    border: none;
    border-radius: 2px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teaching-search-btn:hover {
    background: #4a9bc7;
}

/* 主导航区域 */
.teaching-main-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 0;
}

.teaching-main-nav-btn {
    padding: 10px 24px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
}

.teaching-main-nav-btn:hover {
    border-color: #5dade2;
    color: #5dade2;
}

.teaching-main-nav-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

/* 子导航区域 */
.teaching-sub-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 14px;
    flex-wrap: wrap;
    background: #2a3441;
    border-radius: 2px;
    border: 1px solid #2a3441;
    min-height: 54px;
}

.teaching-sub-nav-btn {
    padding: 8px 16px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 13px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
}

.teaching-sub-nav-btn:hover {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.teaching-sub-nav-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

/* 教学内容区域 */
.teaching-content-area {
}

/* 教学展示区域 */
.teaching-display {
    display: none;
}

.teaching-display.active {
    display: block;
}

/* 教学卡片网格 */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* 教学卡片样式 */
.teaching-card {
    background: #1f2833;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #2a3441;
}

.teaching-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-color: #5dade2;
}

/* 卡片顶部图标/图片区域 */
.teaching-card-image {
    width: 100%;
    aspect-ratio: 1920 / 1080;
    background-color: #2a3441;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #2a3441;
}

.teaching-card-icon {
    font-size: 42px;
    position: relative;
    z-index: 1;
}

/* 难度标签（左上角） */
.teaching-difficulty {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
}

.difficulty-beginner {
    background: #4CAF50;
    color: white;
}

.difficulty-intermediate {
    background: #FF9800;
    color: white;
}

.difficulty-advanced {
    background: #ff5252;
    color: white;
}

/* 时长标签（右上角） */
.teaching-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    border-radius: 2px;
    background: rgba(117, 117, 117, 0.9);
    color: white;
    font-size: 10px;
    font-weight: 400;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 卡片内容区域 */
.teaching-card-body {
    padding: 12px;
}

.teaching-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teaching-card-description {
    font-size: 12px;
    color: #a0a8b0;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片底部信息 */
.teaching-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teaching-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #a0a8b0;
    font-size: 12px;
    white-space: nowrap;
}

.teaching-card-views svg {
    width: 14px;
    height: 14px;
}

.teaching-card-learn-btn {
    padding: 6px 14px;
    background: #5dade2;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.teaching-card-learn-btn:hover {
    background: #4a9bc7;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .teaching-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .teaching-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .teaching-container {
        padding: 18px 18px;
    }
    
    .teaching-header {
        margin-bottom: 22px;
    }
    
    .teaching-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .teaching-description {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .teaching-search-box {
        margin-bottom: 25px;
    }
    
    .teaching-search-input {
        padding: 8px 42px 8px 14px;
        font-size: 13px;
    }
    
    .teaching-search-btn {
        width: 28px;
        height: 28px;
        right: 3px;
    }
    
    .teaching-main-nav {
        gap: 6px;
        margin-bottom: 18px;
    }
    
    .teaching-main-nav-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .teaching-sub-nav-container {
        gap: 6px;
        padding: 10px;
        margin-bottom: 22px;
        min-height: auto;
    }
    
    .teaching-sub-nav-btn {
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .teaching-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .teaching-card-image {
        aspect-ratio: 16 / 9;
    }
    
    .teaching-card-icon {
        font-size: 32px;
    }
    
    .teaching-difficulty {
        top: 6px;
        left: 6px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .teaching-duration {
        top: 6px;
        right: 6px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .teaching-card-body {
        padding: 10px;
    }
    
    .teaching-card-title {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .teaching-card-description {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .teaching-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
    }
    
    .teaching-card-views {
        font-size: 10px;
        flex-shrink: 0;
    }
    
    .teaching-card-views svg {
        width: 12px;
        height: 12px;
    }
    
    .teaching-card-learn-btn {
        padding: 5px 10px;
        font-size: 10px;
        flex-shrink: 0;
        min-width: 56px;
    }
}

/* ========== 分页样式 ========== */
.teaching-container .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    gap: 8px;
    flex-wrap: wrap;
}

.teaching-container .pagination-btn {
    padding: 8px 14px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 400;
    min-width: 36px;
    text-align: center;
}

.teaching-container .pagination-btn:hover:not(.disabled) {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.teaching-container .pagination-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

.teaching-container .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a3441;
}

.teaching-container .pagination-info {
    padding: 6px 14px;
    color: #a0a8b0;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .teaching-container .pagination-container {
        margin-top: 25px;
        gap: 5px;
    }
    
    .teaching-container .pagination-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 32px;
    }
    
    .teaching-container .pagination-info {
        padding: 6px 10px;
        font-size: 11px;
    }
}

1px;
    }
}

}
}

