/* ==========================================================================
   选课中心 · 视觉精修层（Premium Course List）
   --------------------------------------------------------------------------
   加载顺序：lessionlist.css 之后 → 本文件负责「视觉质感」，不负责骨架。
   骨架（容器宽度、列数、卡片内部排列）已由 lessionlist.css 承担。

   要点：
     1. 徽标类目（课程/直播/内容）用品牌橙胶囊，替换原来的红色直角角标。
     2. 筛选条卡片化：学段/年级/类别三行放在一张白卡里，左侧标签弱化。
     3. 卡片 hover：细描边转橙 + 轻抬起 + 封面微缩放。
     4. 统一 14px 圆角、0.2s 缓动，与首页/详情页保持一致。
   ========================================================================== */

/* ---------------------------------------------- 1. 页头 */
.ll_hero .ll_h1 {
    background-image: linear-gradient(120deg, #1A1A1A 55%, #E85D00 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------------------------------------------- 2. 筛选条：一张白卡包三行 */
html body .less_top {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding-bottom: 0;
}

html body .less_top .middle {
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 4px 12px rgba(17, 24, 39, .04);
    padding: 8px 24px;
    box-sizing: border-box;
}

/* 三行改用 flex（原 float + inline style 的 top:20px / margin-top:30px 会导致高度虚高） */
html body .less_top .middle .ul {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    padding: 10px 0;
    overflow: visible;
}

html body .less_top .middle .ul + .ul {
    border-top: 1px dashed #F2F2F2;
}

/* 左侧标签（学段/年级/类别）：弱化为灰字 */
html body .less_top .middle .ul .left {
    float: none;
    flex: 0 0 auto;
    width: 44px;
    color: #B0B0B0;
    font-size: 13px;
    letter-spacing: .02em;
    line-height: 30px;
    padding-top: 0;
}

html body .less_top .middle .ul .right {
    float: none;
    width: auto;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

/* 筛选项：默认浅灰胶囊，hover 浅橙，选中实心橙 */
html body .less_top .middle .ul .right .li {
    float: none;
    margin: 0;
    background-color: #F5F6F8;
    color: #4A4A4A;
    font-weight: 400;
    transition: background-color .18s cubic-bezier(.4, 0, .2, 1),
                color .18s cubic-bezier(.4, 0, .2, 1),
                box-shadow .18s cubic-bezier(.4, 0, .2, 1);
}

html body .less_top .middle .ul .right .li:hover {
    background-color: #FFF4EC;
    color: #E85D00;
}

html body .less_top .middle .ul .right .li.active {
    background-image: linear-gradient(135deg, #FF8A33 0%, #FF6A00 60%, #E85D00 100%);
    background-color: #FF6A00;
    color: #FFFFFF;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(255, 106, 0, .28),
                inset 0 1px 0 rgba(255, 255, 255, .28);
}

/* ---------------------------------------------- 3. 卡片：圆角、描边、hover */
html body .less_list ul li {
    border-radius: 14px;
    border: 1px solid #EBEBEB;
    overflow: hidden;
    transition: box-shadow .22s cubic-bezier(.4, 0, .2, 1),
                transform .22s cubic-bezier(.4, 0, .2, 1),
                border-color .22s cubic-bezier(.4, 0, .2, 1);
}

html body .less_list ul li:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, .1), 0 2px 6px rgba(17, 24, 39, .05);
    border-color: #FFE8D6;
    transform: translateY(-3px);
}

/* 封面：hover 微推近，营造「活」的感觉 */
html body .less_list ul li .content .top {
    overflow: hidden;
    transition: background-size .35s cubic-bezier(.4, 0, .2, 1);
}

html body .less_list ul li:hover .content .top {
    background-size: 106% !important;
}

/* ---------------------------------------------- 4. 徽标：橙胶囊（覆盖红色直角角标） */
html body .less_list ul li .content .top .tip {
    display: inline-block;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 52px;
    height: 24px;
    padding: 0 11px;
    line-height: 24px;
    box-sizing: border-box;
    color: #FFFFFF;
    background-image: linear-gradient(135deg, #FF8A33 0%, #FF6A00 100%);
    background-color: #FF6A00;
    border-radius: 0 0 12px 0;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(255, 106, 0, .3);
}

html body .less_list ul li .content .top .tip text {
    color: #FFFFFF !important;
    border: 0 !important;
    font-size: 11px;
}

/* ---------------------------------------------- 5. 标题与元信息 */
html body .less_list ul li .content .title {
    color: #1A1A1A;
    transition: color .18s cubic-bezier(.4, 0, .2, 1);
}

html body .less_list ul li:hover .content .title {
    color: #E85D00;
}

html body .less_list ul li .content .information .text1 {
    color: #9CA3AF;
}

/* ---------------------------------------------- 6. 底栏：头像描边、价格强化 */
html body .less_list ul li .content .bottom .img1 {
    border: 1px solid #F2F2F2;
    box-sizing: border-box;
}

html body .less_list ul li .content .bottom .mian {
    background-image: linear-gradient(135deg, #FF8A33 0%, #FF6A00 100%);
    box-shadow: 0 2px 8px rgba(255, 106, 0, .26);
    transition: filter .18s cubic-bezier(.4, 0, .2, 1);
}

html body .less_list ul li:hover .content .bottom .mian {
    filter: brightness(1.05);
}

/* ---------------------------------------------- 7. 空态兜底 */
html body .less_list ul:empty::after {
    content: "该分类下暂无课程，换个筛选条件试试";
    display: block;
    width: 100%;
    padding: 72px 0;
    text-align: center;
    color: #B0B0B0;
    font-size: 14px;
}
