/* ============ 开课记录列表组件（jy-record-*，自包含样式） ============ */
@keyframes jyRecordItemIn {
    from {
        top: 20px;
        opacity: 0;
    }

    to {
        top: 0;
        opacity: 1;
    }
}

/* 单条记录卡片：横向排列，左中右三列 */
.jy-record-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 150px;
    margin-top: 20px;
    padding: 10px;
    padding-right: 0;
    border: 1px solid #ccc;
    box-sizing: border-box;
    animation: jyRecordItemIn 0.2s linear;
}

/* 左列：课程封面 + 课程信息 */
.jy-record-item__course {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 49%;
    height: 100%;
    border-right: 1px solid #ccc;
}

/* 课程封面容器：固定宽，超出裁切 */
.jy-record-item__mask {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 160px;
    height: 100%;
    margin-right: 5px;
    overflow: hidden;
}

.jy-record-item__mask>img {
    width: 100%;
    height: auto;
}

/* 课程信息：纵向 space-between，单行省略 */
.jy-record-item__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    padding: 5px 10px;
    font-size: 16px;
}

.jy-record-item__line {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

/* 课时行：占满整行 */
.jy-record-item__lessons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 中/右列（日期列、操作列） */
.jy-record-item__col {
    width: 17%;
    height: 100%;
    padding: 5px 10px;
    border-right: 1px solid #ccc;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
}

/* 末列不带右边框 */
.jy-record-item__col--last {
    border-right: none;
}

/* 操作列：字号与内边距略小 */
.jy-record-item__col--action {
    padding: 5px 8px;
    font-size: 14px;
}

.jy-record-item__col-value {
    margin-top: 10px;
    letter-spacing: 1px;
}

/* 操作按钮容器 */
.jy-record-item__btn-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* 操作按钮：胶囊形，悬停变橙色 */
.jy-record-item__btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 94px;
    height: 26px;
    border-radius: 13px;
    background-color: #007BB6;
    color: #fff;
    transition: all 0.3s ease;
}

.jy-record-item__btn:hover {
    background-color: #fd9644;
}

/* 次要操作按钮：灰色，主按钮下方或右侧 */
.jy-record-item__btn--sub {
    background-color: #aaa;
}

/* 进度区（学习进度列）：纵向排列进度条与百分比文字 */
.jy-record-item__progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    letter-spacing: 1px;
}

.jy-record-item__progress progress {
    height: 4px;
    border: none;
    width: 100%;
}

.jy-record-item__progress progress::-webkit-progress-bar {
    background-color: #ccc;
    border-radius: 2px;
}

.jy-record-item__progress progress::-webkit-progress-value {
    background: #007BB6;
    border-radius: 2px;
}

/* 较宽的信息列（进度条列等）：34%，与默认 17% 列区分 */
.jy-record-item__col--wide {
    width: 34%;
}

/* 分页条 */
.jy-record-pagination {
    width: 100%;
    padding: 1rem 15px;
    background-color: #fafafa;
    box-sizing: border-box;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.jy-record-pagination .pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.jy-record-pagination .pagination li {
    margin: 0 0.25rem;
    padding: 0;
    border: 1px solid #007BB6;
    color: #007BB6;
}

.jy-record-pagination .pagination li a {
    display: flex;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #007BB6;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.jy-record-pagination .pagination li a:hover {
    border-color: #e0e0e0;
    background-color: #f5f5f5;
    color: #0056e5;
    text-decoration: none;
}

.jy-record-pagination .pagination li.active {
    border-color: #007BB6;
    background-color: #007BB6;
    color: #fff;
}

.jy-record-pagination .pagination li.active a {
    border-color: #007BB6;
    background-color: #007BB6;
    color: #fff;
}

.jy-record-pagination .pagination li.disabled a {
    color: #757575;
    background-color: #fff;
    border-color: #e0e0e0;
    pointer-events: none;
    cursor: auto;
}

/* ============ 移动端（≤991.98px）：卡片改为纵向堆叠 ============ */
@media screen and (max-width: 991.98px) {
    .jy-record-item {
        height: auto;
        margin-top: 20px;
        padding: 5px;
        border: none;
        box-shadow: 0 0 10px #999;
        flex-wrap: wrap;
    }

    .jy-record-item__course {
        width: 100%;
        height: auto;
        padding: 0 0 10px;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .jy-record-item__mask {
        width: 140px;
        height: 90px;
        margin-right: 10px;
    }

    .jy-record-item__info {
        height: 90px;
        padding: 0;
        font-size: 14px;
        align-items: flex-start;
    }

    .jy-record-item__col {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding: 5px 10px;
        border-right: none;
        text-align: justify;
        font-size: 16px;
    }

    .jy-record-item__col-value {
        margin-top: 0;
        margin-left: 10px;
    }

    .jy-record-item__col--action {
        font-size: 14px;
    }

    .jy-record-item__btn-wrap {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 0;
        margin-left: 10px;
    }

        .jy-record-item__btn {
            width: 130px;
            height: 34px;
        }

    /* 进度区移动端：整行左对齐横排 */
    .jy-record-item__col--wide {
        width: 100%;
    }

    .jy-record-item__progress {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 0;
        margin-left: 10px;
        width: calc(100% - 110px);
    }

    .jy-record-item__progress .operation {
        margin-top: 5px;
    }
}
/* ============ 数据表格组件（jy-data-table，表头+行+分页） ============ */
.jy-data-table {
    width: 100%;
    font-size: 16px;
}

/* 表头行：浅蓝底，移动端隐藏 */
.jy-data-table__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    background-color: #C7E2FF;
}

/* 数据行：底部分隔线，入场动画与卡片一致 */
.jy-data-table__row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 65px;
    padding: 0 10px;
    border-bottom: 1px solid #ccc;
    animation: jyRecordItemIn 0.2s linear;
}

/* 表头单元格：--w 控制列宽 */
.jy-data-table__th {
    width: var(--w, 18%);
    text-align: left;
}

/* 数据单元格：--w 与对应列的 th 保持一致 */
.jy-data-table__td {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: var(--w, 18%);
    text-align: left;
    word-break: break-all;
}

/* 居中列修饰：表头文字居中，flex 单元格内容水平居中（仅 PC 表格形态，移动端还原左对齐） */
.jy-data-table__th--center {
    text-align: center;
}

.jy-data-table__td--center {
    justify-content: center;
    text-align: center;
}

/* 单行省略文本：超出列宽显示省略号，配合 el-tooltip 悬停查看完整内容（show-overflow-tooltip 效果） */
.jy-data-table__text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端隐藏的「标签：」前缀 */
.jy-data-table__td > span {
    display: none;
}

/* 操作区：文字链接组（横排，自动换行） */
.jy-data-table__links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.jy-data-table__links a {
    margin-right: 10px;
    color: #007BB6;
    transition: all 0.3s ease;
}

.jy-data-table__links a:hover {
    color: #fd9644;
}

/* 操作区：胶囊按钮（同 jy-record-item__btn，尺寸略大） */
.jy-data-table__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 30px;
    border-radius: 15px;
    background-color: #007BB6;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.jy-data-table__btn:hover {
    background-color: #fd9644;
}

.jy-data-table__btn--sub {
    background-color: #aaa;
}

/* ============ 数据表格移动端（≤991.98px） ============ */
@media screen and (max-width: 991.98px) {
    .jy-data-table__header {
        display: none;
    }

    .jy-data-table__row {
        min-height: auto;
        flex-wrap: wrap;
        padding: 10px;
        border-bottom: none;
        box-shadow: 0 0 10px #ccc;
        margin-top: 15px;
    }

    .jy-data-table__td {
        width: 100%;
        padding: 2px 0;
    }

    /* 移动端卡片形态：居中修饰类还原为左对齐 */
    .jy-data-table__td--center {
        justify-content: flex-start;
        text-align: left;
    }

    /* 移动端卡片形态：省略文本恢复完整显示 */
    .jy-data-table__text {
        white-space: normal;
    }

    /* 移动端显示「标签：」前缀 */
    .jy-data-table__td > span {
        display: inline;
    }

    /* 操作区整行靠右 */
    .jy-data-table__td:last-child {
        justify-content: flex-end;
    }

    .jy-data-table__links {
        justify-content: flex-end;
    }

    .jy-data-table__links a {
        margin-right: 0;
        margin-left: 10px;
    }
}
