/* 工作台公共样式 - 凡智·任务课堂 */
/* 侧栏 + 主内容布局，深空蓝/星光金 */

.dashboard-wrap {
    display: flex;
    min-height: 100vh;
    padding-top: 92px;
}

.dashboard-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--deep-space-blue);
    color: white;
    padding: 24px 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    transition: width 0.25s ease, min-width 0.25s ease;
    position: relative;
}

/* 学生 / 教师工作台 - 左侧菜单滚动跟随模式，上下贯通，隐藏滚动条 */
.dashboard-sidebar:has(.brand a[href="dashboard-student.html"]),
.dashboard-sidebar:has(.brand a[href="dashboard-teacher.html"]) {
    position: sticky;
    top: 92px;
    align-self: flex-start;
    height: calc(100vh - 92px);
    min-height: calc(100vh - 92px);
    overflow: visible; /* 不裁剪折叠按钮 */
}
.dashboard-sidebar:has(.brand a[href="dashboard-student.html"]) .dashboard-sidebar-scroll,
.dashboard-sidebar:has(.brand a[href="dashboard-teacher.html"]) .dashboard-sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dashboard-sidebar:has(.brand a[href="dashboard-student.html"]) .dashboard-sidebar-scroll::-webkit-scrollbar,
.dashboard-sidebar:has(.brand a[href="dashboard-teacher.html"]) .dashboard-sidebar-scroll::-webkit-scrollbar {
    display: none;
}

/* 企业导师工作台：与教师 / 学生相同的 sticky 侧栏 + 内层滚动（由 dashboard-common 注入 .dashboard-sidebar-scroll） */
body.mentor-workspace-page .dashboard-sidebar {
    position: sticky;
    top: 92px;
    align-self: flex-start;
    height: calc(100vh - 92px);
    min-height: calc(100vh - 92px);
    overflow: visible;
}

body.mentor-workspace-page .dashboard-sidebar .dashboard-sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.mentor-workspace-page .dashboard-sidebar .dashboard-sidebar-scroll::-webkit-scrollbar {
    display: none;
}

/* 高校导师工作台：侧栏 sticky + 内层滚动（品牌链向 dashboard-mentor-university.html） */
body.university-mentor-dashboard .dashboard-sidebar {
    position: sticky;
    top: 92px;
    align-self: flex-start;
    height: calc(100vh - 92px);
    min-height: calc(100vh - 92px);
    overflow: visible;
}

body.university-mentor-dashboard .dashboard-sidebar .dashboard-sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.university-mentor-dashboard .dashboard-sidebar .dashboard-sidebar-scroll::-webkit-scrollbar {
    display: none;
}

/* 侧栏折叠按钮 - 位于区块链证书下方，左边缘与菜单右边缘对齐 */
.dashboard-sidebar-collapse-btn {
    position: absolute;
    left: 100%;
    top: 400px;
    width: 28px;
    height: 56px;
    border: 2px solid rgba(255,255,255,0.4);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(135deg, #1a3a6e 0%, var(--deep-space-blue) 100%);
    color: var(--starlight-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 0 12px rgba(0,0,0,0.25);
    z-index: 10;
    transition: left 0.25s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dashboard-sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #2a5a9e 0%, #1a3a6e 100%);
    color: white;
    border-color: var(--starlight-gold);
    box-shadow: 6px 0 16px rgba(0,0,0,0.3);
}

.dashboard-sidebar-collapse-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-collapse-btn {
    left: 100%;
    background: linear-gradient(135deg, var(--starlight-gold) 0%, #d4a800 100%);
    color: var(--deep-space-blue);
    border-color: var(--starlight-gold);
    box-shadow: 4px 0 14px rgba(212,168,0,0.5);
}

.dashboard-sidebar.collapsed .dashboard-sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #ffe066 0%, var(--starlight-gold) 100%);
    color: var(--deep-space-blue);
    box-shadow: 6px 0 18px rgba(212,168,0,0.6);
}

.dashboard-sidebar.collapsed .dashboard-sidebar-collapse-btn svg {
    transform: rotate(180deg);
}

/* 侧栏折叠状态 */
.dashboard-sidebar.collapsed {
    width: 64px;
    min-width: 64px;
    overflow: visible;
}

.dashboard-sidebar.collapsed .brand {
    padding: 0 12px 16px;
    text-align: center;
}

.dashboard-sidebar.collapsed .brand a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.dashboard-sidebar.collapsed .brand a span,
.dashboard-sidebar.collapsed .brand .logo-english {
    display: none;
}

.dashboard-sidebar.collapsed .brand a::before {
    content: "M";
    font-size: 20px;
    font-weight: 700;
    color: var(--starlight-gold);
}

.dashboard-sidebar.collapsed .nav-title {
    display: none;
}

.dashboard-sidebar.collapsed nav a {
    justify-content: center;
    padding: 12px;
    gap: 0;
}

.dashboard-sidebar.collapsed nav a span {
    display: none;
}

.dashboard-sidebar.collapsed nav a.active {
    box-shadow: inset 3px 0 0 var(--starlight-gold);
}

.dashboard-sidebar .brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 20px;
}

.dashboard-sidebar .brand a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.dashboard-sidebar .brand .logo-english {
    font-size: 14px;
    color: var(--starlight-gold);
    margin-left: 6px;
}

.dashboard-sidebar .nav-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    padding: 0 24px 10px;
    margin-top: 16px;
}

.dashboard-sidebar .nav-title:first-of-type {
    margin-top: 0;
}

.dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dashboard-sidebar nav a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.dashboard-sidebar nav a.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--starlight-gold);
    box-shadow: inset 3px 0 0 var(--starlight-gold);
}

.dashboard-sidebar nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dashboard-main {
    flex: 1;
    background: var(--light-gray);
    padding: 0 32px 48px;
    overflow-x: hidden;
    margin-top: 0; /* 避免继承全局 main 的 margin-top，上方留白由 .dashboard-wrap 的 padding-top 统一处理 */
}

/* 学生工作台 - 主区域 iframe 嵌入（课程/项目/挑战/活动页） */
.dashboard-iframe-wrap {
    margin: 0 -32px 0 -32px;
    padding: 0;
    min-height: calc(100vh - 92px - 48px);
    height: calc(100vh - 92px - 48px);
    background: #fff;
    border-radius: 0;
}
.dashboard-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
@media (max-width: 992px) {
    .dashboard-iframe-wrap {
        margin-left: -16px;
        margin-right: -16px;
        min-height: calc(100vh - 92px - 40px);
        height: calc(100vh - 92px - 40px);
    }
}

/* 角色信息面板 - 参考图片：左头像/姓名/标签/所属机构，右能力值/能力测试 */
.dashboard-user-panel {
    margin-top: 0;
    margin-bottom: 24px;
    margin-left: -32px;
    margin-right: -32px;
    padding: 24px 28px 20px;
    background: linear-gradient(90deg, rgba(200, 230, 240, 0.5) 0%, rgba(176, 224, 230, 0.45) 50%, rgba(224, 255, 255, 0.4) 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(10, 36, 99, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.dashboard-user-panel .panel-left {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dashboard-user-panel .panel-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--light-blue), var(--deep-space-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.dashboard-user-panel .panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-user-panel .panel-profile {
    flex: 1;
    min-width: 0;
}

.dashboard-user-panel .panel-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.dashboard-user-panel .panel-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.dashboard-user-panel .panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-user-panel .panel-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.dashboard-user-panel .panel-tag.tag-1 { background: #c17a3a; }
.dashboard-user-panel .panel-tag.tag-2 { background: #2e7d4a; }

.dashboard-user-panel .panel-affiliation {
    font-size: 13px;
    color: #718096;
    margin: 0 0 8px 0;
}

.dashboard-user-panel .panel-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-user-panel .panel-link {
    font-size: 13px;
    color: var(--light-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dashboard-user-panel .panel-link:hover { text-decoration: underline; }

.dashboard-user-panel .panel-membership {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #c17a3a;
}

.dashboard-user-panel .panel-membership-icon {
    width: 18px;
    height: 18px;
    color: var(--starlight-gold);
}

.dashboard-user-panel .panel-divider {
    width: 1px;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 24px;
    flex-shrink: 0;
}

.dashboard-user-panel .panel-right {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 24px;
}

.dashboard-user-panel .panel-ability-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--deep-space-blue);
    width: 100%;
    margin-bottom: 4px;
}

.dashboard-user-panel .panel-ability-header svg {
    width: 20px;
    height: 20px;
    color: var(--light-blue);
}

.dashboard-user-panel .panel-ability-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    flex: 1;
}

.dashboard-user-panel .panel-ability-item {
    text-align: center;
}

.dashboard-user-panel .panel-ability-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--light-blue);
    line-height: 1.2;
}

.dashboard-user-panel .panel-ability-label {
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}

.dashboard-user-panel .panel-ability-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-blue);
    background: #fff;
    border: 1px solid var(--light-blue);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dashboard-user-panel .panel-ability-btn:hover {
    background: var(--light-blue);
    color: #fff;
}

.dashboard-user-panel .panel-ability-btn svg {
    width: 18px;
    height: 18px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    font-size: 24px;
    color: var(--deep-space-blue);
    margin: 0;
}

.dashboard-header .welcome {
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: 4px;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-header-actions .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 14px;
    color: var(--deep-space-blue);
}

.dashboard-header-actions .logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.dashboard-header-actions .logout-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--deep-space-blue);
}

/* 头部右侧：消息图标 + 圆形头像 + 下拉菜单 */
.header-user-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-msg-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s, color 0.2s;
}

.header-msg-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.header-msg-btn svg {
    width: 19px;
    height: 19px;
}

.header-msg-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #e74c3c;
    border-radius: 10px;
    border: 1.5px solid var(--deep-space-blue);
}

.header-avatar-wrap {
    position: relative;
}

.header-avatar {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue), var(--starlight-gold));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.header-avatar:hover {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.header-avatar[aria-expanded="true"] {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    padding: 8px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1100;
}

.header-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--deep-space-blue);
    text-decoration: none;
    transition: background 0.2s;
}

.header-user-dropdown a:hover {
    background: rgba(62, 146, 204, 0.1);
}

.header-user-dropdown a:first-child {
    border-radius: 10px 10px 0 0;
}

.header-user-dropdown a:last-child {
    border-radius: 0 0 10px 10px;
}

/* 消息面板 */
.header-msg-panel {
    position: fixed;
    top: 92px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.header-msg-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-msg-panel-inner {
    display: flex;
    flex-direction: column;
    max-height: 420px;
}

.header-msg-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(10, 36, 99, 0.08);
    background: #fafcff;
    border-radius: 12px 12px 0 0;
}

.header-msg-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f2f66;
}

.header-msg-panel-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #667a98;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.header-msg-panel-close:hover {
    color: #0a2463;
    background: rgba(62, 146, 204, 0.1);
}

.header-msg-panel-body {
    overflow-y: auto;
    padding: 12px;
}

.header-msg-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7b889e;
    font-size: 14px;
}

.header-msg-item {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #f8fbff;
    border: 1px solid rgba(10, 36, 99, 0.06);
    cursor: pointer;
    transition: background 0.2s;
}

.header-msg-item:last-child { margin-bottom: 0; }

.header-msg-item:hover {
    background: #f0f7ff;
}

.header-msg-item.read {
    background: #fff;
    opacity: 0.85;
}

.header-msg-item.read .header-msg-item-title { font-weight: 500; }

.header-msg-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.header-msg-item-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(62, 146, 204, 0.15);
    color: #1a5a8a;
    font-weight: 600;
}

.header-msg-item-time {
    font-size: 12px;
    color: #7b889e;
}

.header-msg-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f3557;
    margin-bottom: 6px;
}

.header-msg-item-content {
    font-size: 13px;
    color: #5a6c87;
    line-height: 1.5;
}

.header-msg-badge:empty {
    display: none !important;
}

/* 账号设置 / 修改密码模态 */
.mc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mc-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.mc-modal {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.mc-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafcff;
}

.mc-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f2f66;
}

.mc-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667a98;
    transition: background 0.2s, color 0.2s;
}

.mc-modal-close:hover {
    background: rgba(62, 146, 204, 0.1);
    color: #0a2463;
}

.mc-modal-body {
    padding: 22px 24px 24px;
}

.mc-form-group {
    margin-bottom: 18px;
}

.mc-form-group:last-child {
    margin-bottom: 0;
}

.mc-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #41506a;
}

.mc-input,
.mc-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    font-size: 14px;
    color: #1f3557;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mc-input:focus,
.mc-select:focus {
    outline: none;
    border-color: #3e92cc;
    box-shadow: 0 0 0 1px rgba(62, 146, 204, 0.35);
}

.mc-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #7b889e;
}

.mc-error {
    margin-top: 4px;
    font-size: 12px;
    color: #e74c3c;
}

.mc-form-group.error .mc-input {
    border-color: #e74c3c;
}

.mc-modal-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.mc-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #3e92cc 0%, #0a2463 100%);
    box-shadow: 0 4px 14px rgba(62, 146, 204, 0.35);
}

.mc-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(62, 146, 204, 0.45);
}

.mc-btn-ghost {
    color: #41506a;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.mc-btn-ghost:hover {
    background: rgba(148, 163, 184, 0.1);
}

/* 卡片网格 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.1);
    transform: translateY(-2px);
}

.dashboard-card .card-title {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.dashboard-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--deep-space-blue);
}

.dashboard-card .card-value.gold {
    color: #c9a227;
}

.dashboard-card.accent::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue), var(--starlight-gold));
    border-radius: 2px;
    margin: -24px -24px 20px -24px;
}

/* 学生工作台 - 四色摘要卡片（课程/评测/项目/挑战） */
.dashboard-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.summary-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
    gap: 16px;
}

.summary-card .summary-card-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.summary-card .summary-card-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    opacity: 0.95;
}

.summary-card .summary-card-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

.summary-card .summary-card-content {
    text-align: right;
    margin-top: 0;
}

.summary-card .summary-card-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.summary-card .summary-card-label {
    font-size: 14px;
    opacity: 0.95;
    margin-top: 4px;
}

.summary-card .summary-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.summary-card .summary-card-link {
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: right;
}

.summary-card .summary-card-link:hover { text-decoration: underline; }

.summary-card-orange { background: #e67e22; }
.summary-card-green { background: #27ae60; }
.summary-card-teal { background: #16a085; }
.summary-card-blue { background: #3498db; }

/* 学生工作台 - 标签导航（与整体风格统一） */
.dashboard-tabs {
    font-family: inherit;
    background: var(--white, #fff);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.06);
    display: flex;
    gap: 0;
    padding: 0 8px 0 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-tabs a,
.dashboard-tabs .dashboard-tab {
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-gray);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.dashboard-tabs a:hover,
.dashboard-tabs .dashboard-tab:hover { color: var(--deep-space-blue); }
.dashboard-tabs a.active,
.dashboard-tabs .dashboard-tab.active {
    color: var(--deep-space-blue);
    font-weight: 600;
    border-bottom-color: var(--light-blue);
}

/* 选项卡面板：仅当前激活的显示 */
.dashboard-tab-panel {
    display: none;
}
.dashboard-tab-panel.active {
    display: block;
}

/* 学生工作台 - 课程列表（我的课程）（字体与整体风格统一） */
.dashboard-tab-content {
    font-family: inherit;
    background: var(--white, #fff);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 12px rgba(10, 36, 99, 0.06);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
}

.course-list { display: flex; flex-direction: column; gap: 24px; }

.course-entry {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}

.course-entry:hover { box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1); }

.course-entry-thumb {
    width: 200px;
    min-width: 200px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    position: relative;
}

.course-entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-entry-body { flex: 1; min-width: 0; }

.course-entry .course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.course-entry .course-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-gray);
    background: rgba(0, 0, 0, 0.06);
}

.course-entry .course-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--deep-space-blue);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.course-entry .course-meta {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.course-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.course-path .path-label {
    font-size: 12px;
    color: var(--dark-gray);
    margin-right: 4px;
}

.course-path .path-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-path .path-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
}

.course-path .path-dot.active { background: var(--light-blue); }

.course-path .path-dot-label {
    font-size: 12px;
    color: var(--dark-gray);
    width: 100%;
    margin-top: 4px;
}

.course-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.course-progress-row .progress-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.course-progress-row .progress-bar-fill {
    height: 100%;
    background: var(--light-blue);
    border-radius: 4px;
    transition: width 0.3s;
}

.course-progress-row .progress-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    white-space: nowrap;
}

.btn-continue {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white, #fff);
    background: var(--light-blue);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-continue:hover {
    background: var(--deep-space-blue);
    transform: translateY(-1px);
}

/* 项目选项卡列表 */
.project-list { display: flex; flex-direction: column; gap: 20px; }
.project-entry {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    align-items: flex-start;
}
.project-entry.empty-hint {
    flex-direction: column;
    text-align: center;
    color: var(--dark-gray);
}
.project-entry-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--light-blue);
}
.project-entry-icon svg { width: 100%; height: 100%; }
.project-entry-body { flex: 1; min-width: 0; }
.project-entry-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--deep-space-blue);
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.project-entry-meta {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 8px;
}
.project-entry-desc {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* 挑战选项卡列表 */
.challenge-list { display: flex; flex-direction: column; gap: 16px; }
.challenge-entry {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    align-items: flex-start;
}
.challenge-entry.empty-hint {
    flex-direction: column;
    text-align: center;
    color: var(--dark-gray);
}
.challenge-entry-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--light-blue);
    color: var(--white, #fff);
}
.challenge-entry-badge.completed {
    background: var(--dark-gray);
    color: var(--white, #fff);
}
.challenge-entry-body { flex: 1; min-width: 0; }
.challenge-entry-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--deep-space-blue);
    margin: 0 0 6px 0;
    line-height: 1.4;
}
.challenge-entry-meta {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}
.challenge-entry-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 活动选项卡列表 */
.activity-list { display: flex; flex-direction: column; gap: 20px; }
.activity-entry {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    align-items: flex-start;
}
.activity-entry.empty-hint {
    flex-direction: column;
    text-align: center;
    color: var(--dark-gray);
}
.activity-entry-date {
    width: 56px;
    flex-shrink: 0;
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
}
.activity-entry-date .day {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--deep-space-blue);
    line-height: 1.2;
}
.activity-entry-date .month {
    display: block;
    font-size: 13px;
    color: var(--dark-gray);
}
.activity-entry-body { flex: 1; min-width: 0; }
.activity-entry-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--deep-space-blue);
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.activity-entry-meta {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 6px;
}
.activity-entry-desc {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* 空状态提示（各选项卡内） */
.dashboard-tab-panel .empty-hint p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--dark-gray);
}

@media (max-width: 992px) {
    .dashboard-summary-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dashboard-summary-cards { grid-template-columns: 1fr; }
    .course-entry { flex-direction: column; }
    .course-entry-thumb { width: 100%; min-width: 0; height: 160px; }
    .project-entry:not(.empty-hint),
    .activity-entry:not(.empty-hint) { flex-direction: column; }
    .project-entry-icon { width: 40px; height: 40px; }
}

/* 区块标题 */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-bar h2 {
    font-size: 18px;
    color: var(--deep-space-blue);
    margin: 0;
}

.section-title-bar a {
    font-size: 14px;
    color: var(--light-blue);
    text-decoration: none;
}

.section-title-bar a:hover {
    text-decoration: underline;
}

/* 任务/项目列表卡片 */
.task-list,
.project-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item,
.project-item {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
}

.task-item:hover,
.project-item:hover {
    border-color: var(--light-blue);
    box-shadow: 0 4px 16px rgba(62, 146, 204, 0.12);
}

.task-item .task-title,
.project-item .project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--deep-space-blue);
    margin-bottom: 4px;
}

.task-item .task-meta,
.project-item .project-meta {
    font-size: 13px;
    color: var(--dark-gray);
}

.task-item .task-actions,
.project-item .project-actions {
    display: flex;
    gap: 10px;
}

.task-item .btn-sm,
.project-item .btn-sm {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.task-item .btn-primary,
.project-item .btn-primary {
    background: var(--starlight-gold);
    color: var(--deep-space-blue);
}

.task-item .btn-secondary,
.project-item .btn-secondary {
    background: white;
    color: var(--deep-space-blue);
    border: 1px solid var(--light-blue);
}

.task-item .btn-primary:hover,
.project-item .btn-primary:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.task-item .btn-secondary:hover,
.project-item .btn-secondary:hover {
    background: rgba(62, 146, 204, 0.08);
}

/* 表格 */
.dashboard-table-wrap {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-table th {
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: var(--deep-space-blue);
}

.dashboard-table td {
    font-size: 14px;
    color: #333;
}

.dashboard-table tr:hover td {
    background: #fafbfc;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--dark-gray);
    font-size: 15px;
}

.empty-state p {
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        width: 72px;
        min-width: 72px;
        padding: 16px 0;
    }
    .dashboard-sidebar .brand .logo-text,
    .dashboard-sidebar .brand .logo-english,
    .dashboard-sidebar .nav-title,
    .dashboard-sidebar nav a span {
        display: none;
    }
    .dashboard-sidebar .brand {
        padding: 0 16px 16px;
    }
    .dashboard-sidebar nav a {
        justify-content: center;
        padding: 14px;
    }
    .dashboard-sidebar nav a.active {
        box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.22);
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .dashboard-wrap {
        flex-direction: column;
        padding-top: 92px;
    }
    .dashboard-sidebar {
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
    }
    .dashboard-sidebar .brand {
        width: 100%;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    .dashboard-sidebar .brand .logo-text,
    .dashboard-sidebar .brand .logo-english,
    .dashboard-sidebar .nav-title,
    .dashboard-sidebar nav a span {
        display: inline;
    }
    .dashboard-sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .dashboard-sidebar nav a {
        padding: 8px 14px;
        font-size: 13px;
    }
    .dashboard-main {
        padding: 0 16px 40px;
    }
    .dashboard-user-panel {
        margin-left: -16px;
        margin-right: -16px;
        padding: 20px 20px 16px;
    }
    .dashboard-user-panel .panel-left {
        min-width: 100%;
    }
    .dashboard-user-panel .panel-divider {
        width: 100%;
        height: 1px;
        min-height: 0;
        margin: 12px 0;
    }
    .dashboard-user-panel .panel-right {
        min-width: 100%;
    }
    .dashboard-user-panel .panel-ability-row {
        gap: 16px 20px;
    }
    .dashboard-user-panel .panel-ability-value {
        font-size: 18px;
    }
    .dashboard-header h1 {
        font-size: 20px;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
