/* ======================== 课程列表页 ======================== */

/* 顶部导航当前页高亮 */
.nav-links a.active {
    color: #fff;
    border-bottom: 2px solid #93c5fd;
    padding-bottom: 0.2rem;
}

/* ---------- 绿色分类条 ---------- */
.cat-bar {
    margin: 1.2rem -1rem 0;   /* 抵消 body 两侧留白，铺满整行 */
    background: linear-gradient(135deg, #166534, #16a34a);
    border-bottom: 1px solid #14532d;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
}
.cat-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cat-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.cat-brand img {
    height: 36px;
    width: auto;
    background: #ffffffd9;
    border-radius: 10px;
    padding: 3px 6px;
}
.cat-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
/* 分类按钮：仿主页 scene-chip 的胶囊样式 */
.cat-btn {
    border: 1px solid #ffffff59;
    background: #ffffff1f;
    color: #f0fdf4;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s;
}
.cat-btn i {
    margin-right: 0.3rem;
}
.cat-btn:hover {
    background: #ffffff3d;
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}
.cat-btn.is-active {
    background: #fff;
    border-color: #fff;
    color: #166534;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* ---------- 课程区域 ---------- */
.main-content .section-header {
    margin-top: 2rem;
}
.cat-count {
    color: #64748b;
    font-size: 0.9rem;
}
.empty-tip {
    text-align: center;
    color: #94a3b8;
    padding: 3rem 0;
    font-size: 0.95rem;
}
.empty-tip i {
    margin-right: 0.4rem;
}

/* ---------- 页脚置底 ---------- */
/* 内容不足一屏时，蓝色页脚也贴在视口底部；内容超长时随页面正常滚动 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1 0 auto;   /* 中间区域撑满剩余空间，把页脚推到底部 */
}

@media (max-width: 640px) {
    .cat-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
