:root {
    --primary-color: #1890ff;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #e8e8e8;
}

body {
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 修改布局结构 */
.courses-container {
    display: flex;
    gap: 20px;
}

/* 左侧筛选菜单样式 */
.course-filter {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: normal;
}

.filter-section {
    margin-bottom: 20px;
    background: #f7f7f9;
    border-radius: 4px;
    padding: 15px;
}

.filter-label {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-option {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.filter-option:hover {
    color: var(--primary-color);
}

.filter-option.active {
    color: var(--primary-color);
}

/* 移除之前的背景hover效果 */
.filter-option:hover,
.filter-option.active {
    background: none;
}

/* 右侧课程列表样式调整 */
.course-list {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: #999;
    font-size: 14px;
}

.course-count strong {
    color: #666;
    font-weight: normal;
}

.course-card {
    display: flex;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-image {
    width: 280px;
    height: 157.5px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    text-decoration: none;
    font-weight: normal;
}

.course-title:hover {
    color: var(--primary-color);
}

.course-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 2px;
    font-size: 12px;
    margin-right: 10px;
}

.course-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.course-teachers {
    color: #666;
}

.course-school {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-school i {
    color: #999;
}

.course-students {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.divider {
    color: #e8e8e8;
    margin: 0;
}

/* 分页样式调整 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: none;
    transition: all 0.3s;
}

.page-link:hover {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
    border-radius: 14px;
}

.page-text {
    color: #999;
}

.page-text .page-link {
    color: #999;
    padding: 0 4px;
}

.page-text .page-link:hover {
    color: var(--primary-color);
}

.page-item.more .page-link {
    color: #999;
    cursor: default;
    padding: 0 2px;
}

.page-item.more .page-link:hover {
    color: #999;
}

.footer {
    background: #2c2c2c;
    padding: 40px 0;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-slogan {
    color: #fff;
}

.footer-slogan h2 {
    font-size: 24px;
    font-weight: normal;
        margin-bottom: 10px;
    }

.footer-slogan p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.qr-code-container {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    padding: 5px;
    background: #fff;
    border-radius: 4px;
}

.qr-code-text {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
}

.footer-nav {
    /* display: flex; */
    gap: 16px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav span {
    color: #666;
}

.footer-bottom {
    /* border-top: 1px solid #3a3a3a; */
    /* padding-top: 20px; */
    display: flex;
        justify-content: space-between;
    align-items: flex-start;
}

.footer-info {
    color: #666;
    font-size: 12px;
    line-height: 1.8;
}

.footer-info a {
    color: #a8a8a8;
    text-decoration: none;
}

.footer-info a:hover {
    color: #999;
}
.gap-2 {
    gap: 2.1rem !important;
}

/* 移动端适配样式 */
@media (max-width: 991.98px) {
    /* 调整布局结构 */
    .courses-container {
        flex-direction: column;
    }
    
    /* 左侧筛选菜单样式调整 */
    .course-filter {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* 课程卡片调整为垂直布局 */
    .course-card {
        flex-direction: column;
        padding: 15px;
    }
    
    .course-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* 调整分页样式 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 576px) {
    /* 筛选选项调整 */
    .filter-options {
        gap: 10px;
    }
    
    .filter-option {
        font-size: 13px;
    }
    
    /* 课程信息调整 */
    .course-info {
        /*flex-direction: column;*/
        align-items: flex-start;
        gap: 5px;
    }
    
    .course-info .divider {
        /*display: none;*/
    }
    
    /* 课程标题调整 */
    .course-title {
        font-size: 18px;
    }
    
    /* 课程描述调整 */
    .course-desc {
        font-size: 13px;
        line-clamp: 3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    /* 页脚调整 */
    .footer-middle {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 隐藏部分分页项 */
    .page-item:not(.active):not(:first-child):not(:last-child):not(.more) {
        display: none;
    }
}

/* 移动端筛选菜单样式 */
@media (max-width: 991.98px) {
    .filter-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1050;
        overflow-y: auto;
        background-color: white;
        padding: 15px;
        box-shadow: none;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    #toggleFilter {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    #closeFilter {
        padding: 8px;
        background: none;
        border: none;
    }
}

/* 移动端筛选标题样式 */
@media (max-width: 991.98px) {
    .filter-container .card-title {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
    }
    
    .filter-container .card-title:hover {
        color: var(--primary-color);
    }
    
    /* 添加一个指示图标 */
    .filter-container .card-title::after {
        content: '\f00d'; /* 使用Font Awesome的关闭图标 */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 8px;
        font-size: 14px;
        color: #999;
    }
}
