/* TPEP前台样式 */

.tpep-wrapper {
    min-height: 60vh;
}

.tpep-navigation {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
}

.tpep-navigation .layui-nav {
    background: transparent;
}

.tpep-navigation .layui-nav-item a {
    color: #333;
}

.tpep-navigation .layui-this a {
    color: #0073aa !important;
}

.tpep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tpep-header {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.tpep-header-logo img {
    max-height: 60px;
}

.tpep-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tpep-course-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.tpep-course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tpep-course-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.tpep-course-info {
    padding: 15px;
}

.tpep-course-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.tpep-course-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.tpep-course-meta span {
    margin-right: 15px;
}

.tpep-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.tpep-btn:hover {
    background: #005a87;
    color: #fff;
}

.tpep-btn-secondary {
    background: #f0f0f1;
    color: #333;
}

.tpep-btn-secondary:hover {
    background: #dcdcde;
    color: #333;
}

.tpep-chapter-list {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 15px;
}

.tpep-chapter-header {
    background: #f5f5f5;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #e5e5e5;
}

.tpep-lesson-list {
    padding: 10px;
}

.tpep-lesson-item {
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.tpep-lesson-item:hover {
    background: #f9f9f9;
}

.tpep-lesson-item.completed {
    color: #46b450;
}

.tpep-learning-container {
    display: flex;
    gap: 20px;
}

.tpep-learning-sidebar {
    width: 300px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

.tpep-learning-content {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
}

.tpep-video-player {
    width: 100%;
    max-width: 100%;
}

.tpep-progress-bar {
    background: #e5e5e5;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.tpep-progress-fill {
    background: #46b450;
    height: 100%;
    transition: width 0.3s;
}

.tpep-homework-form {
    margin-top: 20px;
}

.tpep-homework-form textarea {
    width: 100%;
    min-height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tpep-footer {
    background: #333;
    color: #fff;
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
}

.tpep-filter-bar {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.tpep-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #0073aa;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    margin-left: 5px;
}

.tpep-badge-success {
    background: #46b450;
}

.tpep-badge-warning {
    background: #ffb900;
}

@media (max-width: 768px) {
    .tpep-course-grid {
        grid-template-columns: 1fr;
    }
    
    .tpep-learning-container {
        flex-direction: column;
    }
    
    .tpep-learning-sidebar {
        width: 100%;
        max-height: none;
    }
}
