/*
 * 学生端 Portal 样式
 * course-student.html 学习中心专用
 * 主色调暖橙色儿童友好
 */

/* CSS 变量已在 course-student.html inline <style> 定义，本文件作为外部引用兜底 */

/* 覆盖 product-shell-base 居中 */
.main-content.product-shell-main {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* 家长只读模式按钮隐藏 */
body.guardian-mode .cs-enter-btn,
body.guardian-mode .cs-course-grid [data-enter-btn] {
    display: none !important;
}

/* ── 骨架屏 ── */
.cs-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.cs-skeleton-card {
    background: #fff;
    border: 1px solid var(--cs-border, #f0e8e0);
    border-radius: var(--cs-radius, 16px);
    overflow: hidden;
    padding: 0;
}
.cs-skeleton-img {
    height: 120px;
    background: linear-gradient(90deg, #f5f0eb 25%, #fcf8f5 50%, #f5f0eb 75%);
    background-size: 200% 100%;
    animation: cs-shimmer 1.5s infinite;
}
.cs-skeleton-line {
    height: 14px;
    margin: 12px 14px 8px;
    background: linear-gradient(90deg, #f5f0eb 25%, #fcf8f5 50%, #f5f0eb 75%);
    background-size: 200% 100%;
    animation: cs-shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes cs-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── 继续学习卡片 ── */
.cs-continue-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #fff;
    border-radius: var(--cs-radius-sm, 12px);
    margin-bottom: 8px;
    transition: all .15s;
}
.cs-continue-card:hover {
    box-shadow: 0 4px 12px rgba(255,123,58,.15);
    transform: translateY(-1px);
}
.cs-continue-cover {
    width: 80px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
}
.cs-continue-info {
    flex: 1;
    min-width: 0;
}
.cs-continue-info .cs-course-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 证书卡片 ── */
.cs-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.cs-cert-card {
    background: #fff;
    border: 1px solid var(--cs-border, #f0e8e0);
    border-radius: var(--cs-radius, 16px);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--cs-shadow, 0 2px 12px rgba(255,123,58,.10));
    transition: all .15s;
    cursor: pointer;
}
.cs-cert-card:hover {
    box-shadow: 0 4px 16px rgba(255,123,58,.15);
    transform: translateY(-2px);
}
.cs-cert-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.cs-cert-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--cs-text, #1f1f1d);
}
.cs-cert-meta {
    font-size: 12px;
    color: var(--cs-text-muted, #8a7a6a);
}

/* ── 进度环 ── */
.cs-ring {
    flex-shrink: 0;
}

/* ── 全局导航隐藏（product-shell-base 自带去导航） ── */
