/* ============================================================
 * myxueshi - 学时查询模块样式
 * 主色：#2b62d0  辅色：#df9e27  背景：#f3f7fb
 * ========================================================== */

.myxueshi {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    background: #f3f7fb;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}
.myxueshi *,
.myxueshi *::before,
.myxueshi *::after { box-sizing: border-box; }

/* ---------- 顶部提示条 ---------- */
.mzs-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-left: 5px solid #ffa940;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fa8c16;
}
.mzs-tip-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ffa940;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
}
.mzs-tip-text {
    color: #ad6800;
    font-weight: 600;
    font-size: 16px;
}

/* ---------- 学时统计卡片 ---------- */
.mzs-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(31, 71, 132, 0.06);
}

.mzs-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 18px;
}
.mzs-stat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mzs-stat-label {
    font-size: 14px;
    color: #333;
}
.mzs-select {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23999' d='M0 0l5 6 5-6z'/></svg>") no-repeat right 10px center;
    background-size: 10px 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 28px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 160px;
    height: 32px;
    outline: none;
    transition: border-color .2s;
}
.mzs-select:focus { border-color: #2b62d0; }

.mzs-btn-query {
    height: 32px;
    padding: 0 22px;
    background: #2b62d0;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}
.mzs-btn-query:hover { background: #2454b5; }
.mzs-btn-query:active { background: #1d469b; }

/* "去查看证书"按钮样式：浅蓝背景 + 浅蓝边框 + 蓝色文字 */
.mzs-link {
    display: inline-block;
    padding: 6px 14px;
    background: #eaf2fc;
    border: 1px solid #c2d9f5;
    border-radius: 4px;
    font-size: 14px;
    color: #2b62d0;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.mzs-link:hover {
    background: #dbe9f9;
    border-color: #95bbea;
    color: #1d469b;
    text-decoration: none;
}

/* "去学习"链接：保持普通文字链接样式，去除按钮背景与边框 */
.mzs-link-study {
    background: transparent;
    border: none;
    padding: 0;
    color: #2b62d0;
    font-size: 14px;
    white-space: nowrap;
    align-self: center;
}
.mzs-link-study:hover {
    background: transparent;
    border: none;
    color: #1d469b;
    text-decoration: underline;
}

/* ---------- 统计区主体 ---------- */
.mzs-stat-body {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 进度环 */
.mzs-progress {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.mzs-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.mzs-progress-bg {
    fill: none;
    stroke: #e6eef9;
    stroke-width: 8;
}
.mzs-progress-fg {
    fill: none;
    stroke: #2b62d0;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset .8s ease;
}
.mzs-progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}
.mzs-progress-num {
    font-size: 26px;
    font-weight: 700;
    color: #2b62d0;
}
.mzs-progress-unit {
    font-size: 14px;
    color: #2b62d0;
    margin-left: 1px;
    font-weight: 600;
    align-self: flex-start;
    margin-top: 2px;
}
.mzs-progress-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    width: 100%;
    text-align: center;
}

/* 学时数据 */
.mzs-stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
    flex-direction: column !important;
    gap: 4px !important;
}
.mzs-info-sep {
    color: #cfd4dc;
    margin: 0 10px;
    font-weight: 400;
}
.mzs-info-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.6;
}
.mzs-info-num {
    font-size: 22px;
    font-weight: 700;
    color: #2b62d0;
    margin: 0 4px;
}
.mzs-info-orange { color: #df9e27; }

/* ---------- 列表标题 ---------- */
.mzs-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    padding-left: 10px;
    border-left: 3px solid #2b62d0;
    line-height: 1.2;
}
.mzs-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: #2b62d0;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

/* ---------- 培训列表 ---------- */
.mzs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mzs-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(31, 71, 132, 0.05);
    transition: box-shadow .2s, transform .2s;
}
.mzs-list-item:hover {
    box-shadow: 0 4px 16px rgba(31, 71, 132, 0.10);
    transform: translateY(-1px);
}

.mzs-item-cover {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    background: #eef2f8;
    flex-shrink: 0;
    display: block;
}

.mzs-item-main {
    flex: 1;
    min-width: 0;
}
.mzs-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}
.mzs-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
}
.mzs-status {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 3px;
    line-height: 1.5;
    white-space: nowrap;
}
.mzs-status-nostart {
    background: #f3e4e4;
    color: #ba0900;
}
.mzs-status-done {
    background: #f0f0f0;
    color: #888;
}
.mzs-status-doing {
    background: #e8f7ee;
    color: #2ea44f;
}

.mzs-item-score {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}
.mzs-score-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.mzs-score-num {
    font-size: 22px;
    font-weight: 700;
    color: #2b62d0;
    line-height: 1;
}
.mzs-list-item.mzs-item-orange .mzs-score-num { color: #df9e27; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .mzs-stat-body {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .mzs-stat-info { width: 100%; }
    .mzs-link-study { align-self: flex-end; }
    .mzs-list-item {
        flex-wrap: wrap;
    }
    .mzs-item-score {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding-top: 8px;
        border-top: 1px dashed #eee;
    }
    .mzs-score-label { margin-bottom: 0; }
    .mzs-item-cover { width: 56px; height: 56px; }
}

/* ---------- 空状态 ---------- */
.mzs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(31, 71, 132, 0.05);
}
.mzs-empty-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f7fb;
    border-radius: 50%;
}
.mzs-empty-icon svg {
    width: 36px;
    height: 36px;
    fill: #c5cdd9;
}
.mzs-empty-text {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}
