* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
}
a{ text-decoration: none; color: #000;}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
   
}

/* 分类筛选样式 */
.filter-section {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;

}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-item {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 12px;
}
.filter-item a{
    color: #000;
}
.filter-item.active{
    background: #007bff;
    color: #fff;
}
.filter-item.active a{color: #fff;}



/* 课程卡片样式 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-image {
    width: 100%;
    height: auto;
 
}

.c_course{padding:0 15px;line-height:50px;font-size:18px;color:#333;position:relative; margin-left: 15px;}
.c_course:after{position:absolute;display:block;content:"";top:0;bottom:0;left:0;margin:auto;width:4px;height:10px;background:#007bff;border-radius:4px}
.c_course span{font-size:18px;color:#007bff; font-weight: bold;}
.course-info {
    padding: 10px;
}
.course-info .class{position:relative;line-height:40px;color:#ff6000;font-size:12px;padding-left:15px}
.course-info .class:after{position:absolute;display:block;content:"";top:0;bottom:0;left:0;margin:auto;width:4px;height:10px;background:#fd9149;border-radius:4px}
.course-title {
    font-size: 12px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.course-price {
    color: #eb4d2e;
    font-weight: bold;
    font-size: 14px;
}


.mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}
.mask.active {
    display: block;
}

.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    background: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s;
    overflow-y: auto;
}
.filter-panel.active {
    transform: translateX(0);
}
.filter-header {
    padding: 5px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}
.filter-content {
    padding: 0px;
}
.filter-section {
    margin-bottom: 0px;
}
.filter-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-option {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 12px;
}
.filter-option.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}
.filter-option.active a{color: #fff;}
.category-header {
    position: relative;
    width: 100%;
    height: 44px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.category-scroll {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    display: inline-block;
    padding: 0 15px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #333;
    position: relative;
}
.category-item.active{
    color: #007bff;
    
}
.category-item::after{width: 100%; height: 7px; background-color: #de473b;border-radius: 3px; position: absolute; bottom: 0; left: 0;}


.more-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.icon-more {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23666" d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>') no-repeat center;
    background-size: contain;
}

.filterShow{cursor:pointer;user-select:none;width:100px;height:30px;border-radius:15px;background:#aeb6bc;color:#fff;line-height:30px;text-align:center; margin: 10px auto 0px auto;}
.live_hasData{margin-top:20px}
.filterShow a{color:#fff}
.filterShow i{transition:all 0.5s linear;display:inline-block;width:15px;height:15px;background:url("../image/c_icon_arrow.png") no-repeat;background-size:12px auto;background-position:center;vertical-align:-2px}