/* 营销学院样式 */

/* 课程分类筛选 */
.course-filter {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-tag:hover {
    background: #e8f4e8;
    color: #4fc08d;
}

.filter-tag.active {
    background: #4fc08d;
    color: #fff;
}

/* 课程列表 */
.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.course-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: calc(50% - 10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.course-box .img-box {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-box .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-box:hover .img-box img {
    transform: scale(1.05);
}

.course-box .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(79, 192, 141, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.course-box:hover .play-icon {
    opacity: 1;
}

.course-box .play-icon i {
    font-size: 28px;
    color: #fff;
}

.course-box .text-box {
    padding: 15px;
}

.course-box .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-box .title a {
    color: #333;
}

.course-box .title a:hover {
    color: #4fc08d;
}

.course-box .desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.course-box .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-box .tags span {
    display: inline-block;
    padding: 2px 10px;
    background: #e8f4e8;
    color: #4fc08d;
    border-radius: 12px;
    font-size: 12px;
}

.course-box .tags span a {
    color: #4fc08d;
}

.course-box .views {
    font-size: 12px;
    color: #999;
}

.course-box .views i {
    margin-right: 4px;
}

/* 详情页样式 */
.layout-content .title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.layout-content .publish-time {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.layout-content .publish-time a {
    color: #4fc08d;
}

.layout-content .content {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.layout-content .content img {
    max-width: 100%;
    height: auto;
}

/* 标签 */
.tag-box {
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tag-box .tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
}

.tag-box .tag-item:first-child {
    background: none;
    color: #999;
}

/* 相关推荐 */
.article-recommend-panel {
    margin-top: 30px;
}

.panel-head {
    padding: 15px 0;
    border-bottom: 2px solid #4fc08d;
}

.panel-head .title {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.panel-head .title p {
    margin: 0;
}

/* 手机阅读 */
.mobile-reading {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.code-box {
    width: 96px;
    height: 96px;
    margin: 0 auto 15px;
}

.mobile-reading .title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.mobile-reading .desc {
    font-size: 12px;
    color: #999;
}

/* 推荐文章 */
.recommend-articles {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.recommend-articles .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.recommend-articles .article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommend-articles .article {
    display: flex;
    gap: 10px;
}

.recommend-articles .article a {
    display: flex;
    gap: 10px;
    width: 100%;
}

.recommend-articles .article .img-box {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.recommend-articles .article .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-articles .article .title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    border: none;
    padding: 0;
    margin: 0;
}

/* 广告位 */
.advertising {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.advertising .item img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}