/* 软考一通 全站样式 */
:root {
    --rk-primary: #4361ee;
    --rk-bg: #f7f8fc;
}
body {
    background: var(--rk-bg);
    color: #212529;
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    /* 全局等宽数字：防止数字变化时跳动，提升专业感 */
    font-variant-numeric: tabular-nums;
    /* 粘性页脚：内容不足一屏时页脚固定在浏览器底部 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
    body > .container { flex: 1 0 auto; }
a { text-decoration: none; }
/* 顶部导航（参照原型：细体黑字菜单 + 深色胶囊徽章 + 黑字昵称） */
/* 固定高度 52px + 去掉上下内边距，内容在导航栏内精确垂直居中 */
.rk-nav .navbar { min-height: 52px; padding-top: 0; padding-bottom: 0; }
.rk-nav .navbar > .container { align-items: center; }
.rk-nav .navbar-brand { font-weight: 700; font-size: 16px; color: #111; margin-right: .5rem; white-space: nowrap; line-height: 30px; padding-top: 0; padding-bottom: 0; }
.rk-nav .nav-link { color: #333; font-size: 14px; padding: 0 .5rem; line-height: 30px; white-space: nowrap; transition: color .12s; }
/* 一级菜单悬浮反馈：文字变品牌蓝 */
.rk-nav .nav-link:hover { color: var(--rk-primary); }
/* 窄容器下防止导航元素换行错位：菜单不折行、右侧控件强制靠右 */
.rk-nav .navbar-collapse { flex-wrap: nowrap; }
.rk-nav .navbar-nav { flex-wrap: nowrap; }
.rk-nav .rk-ctl { margin-left: auto !important; flex-wrap: nowrap !important; white-space: nowrap; }
.rk-login { margin-top: 4px; }
.rk-badge { display: inline-flex; align-items: center; height: 24px; margin-right: .25rem; background: #343a40; color: #fff; font-weight: 500;
            border-radius: 12px; padding: 0 .7em; font-size: 12px; }
.rk-badge.rk-badge-vip { background: #f5b301; color: #212529; }
.rk-badge.rk-badge-member { background: var(--rk-primary); color: #fff; }
.rk-user-link { color: #333 !important; text-decoration: none; font-size: 15px; line-height: 30px; padding: 0 .25rem; }
.rk-user-link:hover { color: #111 !important; }

/* 顶栏“ITTO专区”悬浮下拉菜单（原页内子导航移入） */
.rk-hover-dd { position: relative; }
.rk-hover-dd:hover > .rk-itto-menu,
.rk-hover-dd:focus-within > .rk-itto-menu { display: block; margin-top: 0; }
.rk-hover-dd > .rk-itto-menu { border-radius: 8px; box-shadow: 0 6px 18px rgba(17,24,39,.12); min-width: 150px; padding: 6px; }
.rk-hover-dd > .rk-itto-menu .dropdown-item { border-radius: 6px; font-size: 14px; padding: 7px 14px; }
.rk-hover-dd > .rk-itto-menu .dropdown-item:hover { background: #f1f3ff; color: var(--rk-primary, #3450d4); }
/* 选中态精致化：浅蓝背景不满整行，左右各留 8px 做圆角矩形（padding 相应收窄，保持文字与其它项对齐） */
.rk-hover-dd > .rk-itto-menu .dropdown-item.rk-active { background: #f1f3ff; color: var(--rk-primary, #3450d4); font-weight: 600; margin: 0 8px; padding-left: 6px; padding-right: 6px; }

/* 顶栏右侧控件（信息胶囊 / 打卡 / 账号组）：三段式统一节奏 */
.rk-ctl .text-muted { white-space: nowrap; flex-shrink: 0; font-size: 12px; line-height: 30px; }
.rk-ctl .form-select-sm { font-size: 12.5px; min-width: 140px; border-color: #d4d7dc; height: 30px; padding-top: 2px; padding-bottom: 2px; }
.rk-ctl .form-select-sm:focus { border-color: var(--rk-primary); box-shadow: 0 0 0 .15rem rgba(52,80,212,.12); }
/* 信息胶囊：浅灰描边（科目 / 距考），低调承载信息 */
.rk-pill-info {
    display: inline-flex; align-items: center; gap: 3px;
    height: 28px; padding: 0 12px; border-radius: 14px;
    background: #f4f6fa; border: 1px solid #dfe4ee;
    font-size: 12.5px; color: #4b5563; white-space: nowrap;
}
/* 距考数字：品牌蓝加大加粗，胶囊内唯一凸显 */
.rk-pill-num { color: var(--rk-primary, #4361ee); font-size: 17px; font-weight: 700; line-height: 1; margin: 0 2px; }
/* 组间竖分隔线 */
.rk-ctl-sep { width: 1px; height: 20px; background: #e3e7ee; margin: 0 2px; flex-shrink: 0; }
/* 账号首字圆头像（顶栏专用，区别于个人中心 .rk-avatar 大头像） */
.rk-user-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #e8eeff; color: var(--rk-primary, #4361ee);
    font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.rk-auth-btn { display: inline-flex; align-items: center; height: 30px; font-weight: 500; color: #333 !important; border-color: #cfd3d9 !important; padding: 0 14px; }
.rk-auth-btn:hover { background: #f2f3f5; color: #111 !important; }
.rk-nav .nav-link.rk-active { color: var(--rk-primary); font-weight: 600; }
/* 开通会员：右侧用户区金色胶囊按钮（方案 A） */
.rk-vip-btn {
    display: inline-flex; align-items: center; height: 28px; padding: 0 14px;
    border-radius: 14px; background: #f5b301; color: #212529 !important;
    font-weight: 600; font-size: 13px; white-space: nowrap; flex-shrink: 0;
}
.rk-vip-btn:hover { background: #e3a600; color: #212529 !important; }

/* 待开发功能入口：点击弹出顶部居中提示条 */
.rk-wip { cursor: pointer; }
.rk-wip-toast {
    position: fixed; left: 50%; top: 68px; z-index: 2000;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(17, 24, 39, .86); color: #fff;
    padding: 9px 20px; border-radius: 8px; font-size: 14px;
    opacity: 0; pointer-events: none; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .18);
    transition: opacity .25s ease, transform .25s ease;
}
.rk-wip-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.rk-hero {
    background: linear-gradient(135deg, #eef1ff 0%, #f8f9ff 100%);
    border-radius: 16px;
}
.rk-btn { background: var(--rk-primary); border-color: var(--rk-primary); }
.rk-btn:hover { background: #3450d4; border-color: #3450d4; }
.btn-primary { --bs-btn-bg: var(--rk-primary); --bs-btn-border-color: var(--rk-primary); }
.btn-primary:hover { --bs-btn-bg: #3450d4; }

.rk-card { border: 1px solid #e8eaf3; border-radius: 12px; background: #fff; }
.rk-card-vip { border: 2px solid #f5b301; box-shadow: 0 4px 16px rgba(245,179,1,.15); }

/* 注册/登录页双页签（分段式，参照原型） */
.rk-auth-tabs { background: #eef1f4; border-radius: 10px; padding: 4px; }
.rk-auth-tabs .nav-link { border-radius: 8px; color: #444; font-weight: 600; }
.rk-auth-tabs .nav-link.active { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* 首页：灰底横幅 */
.rk-banner { background: #f2f3f5; border-radius: 8px; }
.rk-banner h1 { letter-spacing: 1px; }

/* 首页：图片/二维码占位框（对角线交叉），替换真实素材时改 img 即可 */
.rk-ph {
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #d4d7dc; border-radius: 4px;
    background:
        linear-gradient(to top right, transparent calc(50% - 0.6px), #c9ccd1 calc(50% - 0.6px), #c9ccd1 calc(50% + 0.6px), transparent calc(50% + 0.6px)),
        linear-gradient(to bottom right, transparent calc(50% - 0.6px), #c9ccd1 calc(50% - 0.6px), #c9ccd1 calc(50% + 0.6px), transparent calc(50% + 0.6px)),
        #fafbfc;
    color: #9aa0a6; font-size: 13px;
    aspect-ratio: 16 / 9; width: 100%;
}
.rk-ph.rk-qr { width: 150px; max-width: 150px; aspect-ratio: 1 / 1; margin: 0 auto; }
.rk-entry .rk-ph { border-radius: 4px 4px 0 0; }
.rk-entry:hover { box-shadow: 0 4px 14px rgba(0,0,0,.10); transition: box-shadow .15s; }

/* 首页：讲师头像占位 */
.rk-avatar svg { border-radius: 8px; display: block; }

.rk-stats .rk-stat-card { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid #e8eaf3; }
.rk-stat-num { font-size: 2rem; font-weight: 700; color: var(--rk-primary); }

.rk-exambar { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e8eaf3; }
.rk-countdown { font-size: 3rem; font-weight: 800; color: #e63946; }
.rk-countdown small { font-size: 1rem; }

.rk-planlist li { padding: 3px 0; }
.rk-price { font-size: 2rem; font-weight: 700; }

.rk-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--rk-primary); color: #fff; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 知识点条目 */
.rk-kpitem { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: #333; }
.rk-kpitem:hover { background: #eef1ff; color: var(--rk-primary); }

/* 视频锚点卡 */
.rk-video-card { background: linear-gradient(90deg, #fff7ec, #fff); border: 1px solid #ffe0b3; }
.rk-video-play { width: 52px; height: 52px; border-radius: 50%; background: #fb7299; color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rk-video-play:hover { background: #e85a88; }

/* Markdown / 富文本正文 */
.rk-md h2 { font-size: 1.3rem; margin-top: 1.2rem; }
.rk-md ul { padding-left: 1.2rem; }
.rk-md pre { background: #f6f8fa; padding: 12px; border-radius: 8px; }
.rk-md img { max-width: 100%; height: auto; border-radius: 4px; }
.rk-md table { border-collapse: collapse; width: 100%; margin: .8rem 0; }
.rk-md table th, .rk-md table td { border: 1px solid #d8dee8; padding: 6px 10px; }
.rk-md table th { background: #f4f6fa; }
.rk-md blockquote { border-left: 3px solid #c9d6e6; margin: .8rem 0; padding: 4px 12px; color: #555; background: #f8fafc; }
.rk-md hr { border: none; border-top: 1px solid #e0e2e8; margin: 1rem 0; }

/* 知识点详情：正文区内部滚动，掌握度 + 上一条/下一条固定底部 */
.rk-kpwrap { display: flex; flex-direction: column; height: calc(100vh - 53px); }
.rk-kpscroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.rk-kpfoot { flex: 0 0 auto; border-top: 1px solid #e8eaf0; background: #fafbfd; padding: .6rem 0 .9rem; }

/* 后台富文本编辑器：编辑区高度自适应撑满到底部 */
#rkKpEditor .w-e-text-container { height: 100% !important; }

/* 锁定提示 */
.rk-lockbox { background: #fff; border-radius: 16px; border: 1px dashed #c9d6e6; }

/* 背诵卡 */
.rk-flashcard { width: 100%; max-width: 560px; height: 300px; perspective: 1200px; cursor: pointer; }
.rk-flash-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; background: #fff; border: 1px solid #e8eaf3; box-shadow: 0 6px 24px rgba(67,97,238,.08); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.rk-flash-back { transform: rotateY(180deg); background: #eef1ff; }
.rk-flashcard.flipped { }
#card-box { position: relative; transition: transform .5s; }
#card-box.flipped { transform: rotateY(180deg); }
#card-box.flipped .rk-flash-face { }
.rk-flash-back pre { white-space: pre-wrap; font-family: inherit; margin: 0; }

/* 答题选项 */
.rk-option { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #dfe3f0; border-radius: 8px; cursor: pointer; margin-right: 8px; }
.rk-option:hover { border-color: var(--rk-primary); }

/* 十五至尊矩阵 */
.rk-matrix td, .rk-matrix th { text-align: center; vertical-align: middle; font-size: .8rem; padding: 6px 2px; }
.rk-matrix-cell { min-width: 78px; height: 56px; background: #eef1ff; }
.rk-matrix-cell.rk-empty { background: #fff; }
.rk-matrix-btn { font-size: .74rem; padding: 2px 4px; line-height: 1.2; white-space: normal; color: #333; display: block; width: 100%; margin: 1px 0; }
.rk-matrix-btn:hover { color: var(--rk-primary); }
.rk-matrix-head { background: #f2f4fb; font-weight: 600; }
/* 5.1 十五至尊：搜索命中高亮 + 命中栏位角标（原型工具条） */
.rk-search-input { width: 220px; }
.rk-matrix-btn.rk-hit { background: #fff3cd; border: 1px solid #f5b301; font-weight: 600; }
.rk-hit-list { font-size: .66rem; line-height: 1.5; }
/* 命中项高亮：按分类着色（输入蓝/工具橙/输出绿）+ 加粗 + 黄色背景突出 */
.rk-hit-input, .rk-hit-tool, .rk-hit-output { font-weight: 700; background: #ffe96b; border-radius: 3px; padding: 0 2px; }
.rk-hit-input { color: var(--bs-primary, #0d6efd); }
.rk-hit-tool { color: #b45309; }
.rk-hit-output { color: #198754; }
/* 命中统计文字：按分类着色（与条目高亮同色系）+ 加粗 */
.rk-stat-input { color: var(--bs-primary, #0d6efd); font-weight: 700; }
.rk-stat-tool { color: #b45309; font-weight: 700; }
.rk-stat-output { color: #198754; font-weight: 700; }
.rk-vert { writing-mode: vertical-rl; letter-spacing: 2px; margin: 0 auto; max-height: 80px; }
.rk-dot-square { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
/* 5.2 显示数量：格内【输入-工具-输出】计数 */
.rk-proc-count { font-weight: 700; color: #111; }
/* 5.3 按过程：三栏明细表 */
.rk-proc-table td, .rk-proc-table th { font-size: .84rem; }
/* ITTO 条目层级列表：编号主条目 + 括号子项圆点分列（原型样式） */
.rk-itto-item { padding: 1px 0; }
.rk-itto-main { line-height: 1.55; }
.rk-itto-sub { padding-left: 1.15em; line-height: 1.45; color: #555; }
/* 过程弹窗：定义 / 作用（后台可维护，行内加粗标签） */
.rk-proc-desc { background: #f6f7fa; border: 1px solid #eceff5; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; line-height: 1.75; white-space: pre-line; color: #333; }
.rk-proc-desc b { color: #1f2733; font-weight: 600; }
.rk-itto-sub.rk-hit-input, .rk-itto-sub.rk-hit-tool, .rk-itto-sub.rk-hit-output { font-weight: 700; }
/* 按次数页：括号内子项统计（名称常规、次数加粗） */
.rk-freq-sub b { font-weight: 700; color: #b45309; }
/* 按次数页：条目列不换行；其余列（含"出现的过程"）自然换行，表格无横向滚动 */
.rk-freq-table td:nth-child(2) { white-space: nowrap; }
/* 抓独苗法：网格单元格，颜色区分类别（输入蓝/工具琥珀/输出绿） */
.rk-unique-grid { table-layout: fixed; }
.rk-unique-grid td { height: 44px; text-align: center; font-size: .82rem; cursor: pointer; }
.rk-unique-grid td.rk-unique-empty { cursor: default; background: #fff; }
.rk-unique-1 { background: #e7f0ff; color: #0d6efd; }
.rk-unique-2 { background: #fff6df; color: #b45309; }
.rk-unique-3 { background: #e6f4ea; color: #198754; }
.rk-unique-grid td.rk-unique-1:hover { box-shadow: inset 0 0 0 2px #0d6efd; }
.rk-unique-grid td.rk-unique-2:hover { box-shadow: inset 0 0 0 2px #b45309; }
.rk-unique-grid td.rk-unique-3:hover { box-shadow: inset 0 0 0 2px #198754; }
.rk-proc-table td > div { padding: 1px 0; }
/* 5.4 按领域：转置表首列（行标签） */
.rk-area-label { background: #fff; white-space: nowrap; font-weight: 500; }
.rk-area-corner { background: #fff; }

/* 学习日历 */
.rk-calendar td { height: 72px; }
.rk-cal-empty { background: #fafbfd; }
.rk-heat-0 { background: #fff; }
.rk-heat-1 { background: #dbe4ff; }
.rk-heat-2 { background: #b8cbff; }
.rk-heat-3 { background: #8fabff; }
.rk-heat-4 { background: #5b7df5; color: #fff; }

/* 趋势柱 */
.rk-bar { width: 70%; margin: 0 auto; border-radius: 4px 4px 0 0; }

.rk-msg-unread { background: #eef4ff; }
.rk-dot { font-size: .65rem; }
.rk-overview .rk-stat-num { color: var(--rk-primary); }

.footer { padding: 16px 0; background: #fff; }
.rk-admin-entry a { color: #9aa1ad; font-size: 12.5px; text-decoration: none; }
.rk-admin-entry a:hover { color: #406eff; text-decoration: underline; }

/* ===== 后台表格：不换行 + 列宽可拖拽（colgroup 提供默认 px 宽，th 内放 .rk-rs 手柄） ===== */
.rk-admin-table { table-layout: fixed; }
.rk-admin-table th, .rk-admin-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-admin-table th { position: relative; }
.rk-admin-table td form { margin: 0; }
.rk-rs { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; user-select: none; z-index: 6; }
.rk-rs:hover { background: rgba(13, 110, 253, .25); }
body.rk-col-drag { cursor: col-resize; user-select: none; }

/* 十五至尊图·默写 */
.rk-timer { width: 84px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-dict-item { margin: 2px 0; }
.rk-dict-input { width: 100%; border: 1px solid #d4d7dc; border-radius: 6px; padding: 3px 8px; font-size: 13px; background: #fff; }
.rk-dict-input:focus { outline: none; border-color: #0d6efd; box-shadow: 0 0 0 2px rgba(13,110,253,.15); }
/* 空白默写：表头/行头与过程格输入（整体空白） */
.rk-blank-input { font-size: .8rem; }
.rk-blank-cell { min-height: 52px; }
.rk-blank-table td.rk-matrix-cell { height: auto; min-width: 110px; }
.rk-blank-head .rk-dict-answer, .rk-matrix-cell .rk-dict-answer { font-size: .72rem; color: #b02a37; line-height: 1.35; word-break: break-all; }
.rk-dict-cur { border-color: #0d6efd !important; background: #eef5ff !important; }
.rk-dict-ok { border-color: #198754 !important; background: #eaf6ef !important; }
.rk-dict-bad { border-color: #dc3545 !important; background: #fdf0f0 !important; }
.rk-dict-answer { font-size: 12px; color: #dc3545; padding-left: 2px; }

/* ITTO专区 二级子菜单（十五至尊图 → 默写） */
/* ITTO训练中心：扁平化分组面板（原三级悬浮链取消，分组标题可点、跳组内默认页） */
.rk-hover-dd > .rk-itto-menu.rk-mega {
    width: min(560px, calc(100vw - 24px));
    padding: 4px 16px;
}
.rk-mega-group { border-top: 1px solid #eef0f6; padding: 7px 0 5px; }
.rk-mega-group:first-child { border-top: 0; }
.rk-mega-title {
    display: inline-block; font-size: 12px; color: #8b93a7;
    padding: 3px 8px; margin: 0 -8px 2px; border-radius: 6px;
    text-decoration: none; transition: color .12s, background .12s;
}
a.rk-mega-title:hover { color: var(--rk-primary, #3450d4); background: #f1f3ff; text-decoration: none; }
.rk-mega-title.rk-active { color: var(--rk-primary, #3450d4); font-weight: 600; }
.rk-mega-items { display: flex; flex-wrap: wrap; }
.rk-mega-items .dropdown-item { width: auto; padding: 6px 12px; }
.rk-mega-title + .rk-mega-items { margin-top: 2px; }

/* 触屏设备（hover:none）：下拉不支持悬浮，改为点击展开（.open 由 JS 切换） */
@media (hover: none) {
    .rk-hover-dd:hover > .rk-itto-menu { display: none; }
    .rk-hover-dd.open > .rk-itto-menu,
    .rk-hover-dd.open:focus-within > .rk-itto-menu { display: block; }
}
/* 触屏 + 折叠导航（<lg）：子菜单改为文档流内列表，避免右侧溢出屏幕 */
@media (hover: none) and (max-width: 991.98px) {
    .rk-hover-dd > .rk-itto-menu { position: static; box-shadow: none; border: none; margin: 0; min-width: 0; width: auto; }
}

/* 账号有效期横幅（三态：有效 / 最后一天 / 已过期） */
.rk-trial-bar { background: #E6F1FB; border-bottom: 1px solid #B5D4F4; font-size: 13px; color: #185FA5; }
.rk-trial-bar.is-last { background: #FAEEDA; border-bottom-color: #FAC775; color: #854F0B; }
.rk-trial-bar.is-expired { background: #FCEBEB; border-bottom-color: #F7C1C1; color: #A32D2D; }
.rk-trial-inner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
.rk-trial-title { font-weight: 600; white-space: nowrap; }
.rk-trial-desc { opacity: .92; }
.rk-trial-link { margin-left: auto; color: inherit; text-decoration: underline; white-space: nowrap; }
.rk-trial-close { background: transparent; border: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .7; }
.rk-trial-close:hover { opacity: 1; }
.rk-guest-search-hint a { color: #0d6efd; }

/* ===== 首页 v2：主视觉 / 数据条 / 功能入口 / 关于（2026-11 改版） ===== */
.rk-home-hero {
    display: flex; align-items: center; overflow: hidden; position: relative; padding-right: 470px;
    background: #fff; border: 1px solid #e6eafa; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(67,97,238,.08); margin-top: 18px; min-height: 196px;
}
.rk-home-hero-txt { flex: 1 1 auto; min-width: 0; padding: 18px 24px 18px 34px; }
.rk-eyebrow {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
    border-radius: 999px; background: #eef2ff; color: #3b4fd8; font-size: 12px; font-weight: 600;
}
.rk-home-hero h1 { font-size: 32px; font-weight: 800; color: #1c2433; margin: 9px 0 6px; letter-spacing: 1px; line-height: 1.15; }
.rk-home-hero p { margin: 0; color: #6b7280; font-size: 15px; }
.rk-home-cta { display: flex; gap: 10px; margin-top: 12px; }
.rk-home-btn1 {
    display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 10px;
    background: var(--rk-primary); color: #fff !important; font-size: 14px; font-weight: 600;
    box-shadow: 0 6px 16px rgba(67,97,238,.24);
}
.rk-home-btn1:hover { background: #3450d4; }
.rk-home-btn2 {
    display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 10px;
    background: #fff; color: #3b4fd8 !important; font-size: 14px; font-weight: 600; border: 1px solid #cfd8fb;
}
.rk-home-btn2:hover { background: #f4f6ff; }
.rk-home-pic { position: absolute; top: 0; right: 0; bottom: 0; width: 470px; }
.rk-home-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; }
.rk-home-pic::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.55) 14%, rgba(255,255,255,0) 26%);
}

.rk-statrow { display: flex; gap: 16px; margin-top: 22px; }
.rk-statcard {
    flex: 1 1 0; display: flex; align-items: center; gap: 12px; padding: 11px 16px;
    background: #fff; border: 1px solid #ebeff8; border-radius: 14px; box-shadow: 0 4px 14px rgba(23,38,84,.04);
}
.rk-ico { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rk-ico svg { width: 20px; height: 20px; }
.rk-ico-1 { background: #eef2ff; } .rk-ico-1 svg { fill: #4361ee; }
.rk-ico-2 { background: #eaf7ef; } .rk-ico-2 svg { fill: #2f9e5f; }
.rk-ico-3 { background: #fff4e6; } .rk-ico-3 svg { fill: #e08a1e; }
.rk-ico-4 { background: #f3ecff; } .rk-ico-4 svg { fill: #7c5cf0; }
.rk-statcard b { display: block; font-size: 26px; font-weight: 800; color: #1a2340; line-height: 1; }
.rk-statcard span { display: block; font-size: 13px; color: #7b8497; margin-top: 5px; }

.rk-home-sec { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.rk-home-sec h2 { font-size: 20px; font-weight: 800; margin: 0; color: #111827; }
.rk-home-hint { font-size: 12.5px; color: #9aa3b2; }

.rk-entries { display: flex; gap: 16px; }
.rk-entry2 {
    flex: 1 1 0; display: block; position: relative; overflow: hidden; text-decoration: none;
    background: #fff; border: 1px solid #e8ecf6; border-radius: 14px; box-shadow: 0 6px 18px rgba(23,38,84,.05);
    transition: box-shadow .15s, transform .15s;
}
.rk-entry2:hover { box-shadow: 0 10px 24px rgba(23,38,84,.10); transform: translateY(-2px); }
.rk-entry2-thumb { height: 112px; position: relative; overflow: hidden; background: #eef1f7; }
.rk-entry2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-entry2-thumb::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12,20,45,.18) 0%, rgba(12,20,45,0) 45%, rgba(12,20,45,.10) 100%);
}
.rk-entry2-body { padding: 9px 14px 12px 14px; }
.rk-entry2-t { font-size: 16px; font-weight: 700; color: #111827; }
.rk-entry2-d { font-size: 12.5px; color: #7b8497; margin-top: 4px; min-height: 17px; }
.rk-entry2-go { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--rk-primary); font-weight: 600; }
.rk-wip2 {
    position: absolute; top: 8px; right: 8px; z-index: 3; line-height: 16px; padding: 1px 8px;
    background: rgba(255,243,205,.96); color: #8a6d3b; border: 1px solid #f0c250; border-radius: 999px; font-size: 11px;
}

.rk-home-about {
    display: flex; align-items: center; gap: 20px; padding: 14px 20px; background: #fff;
    border: 1px solid #e8ecf6; border-radius: 14px; box-shadow: 0 6px 18px rgba(23,38,84,.05);
}
.rk-home-avatar {
    flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: linear-gradient(135deg,#dfe5ff,#eef2ff); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px #e2e8fb;
}
.rk-home-avatar svg { width: 100%; height: 100%; display: block; }
.rk-home-about-name { font-size: 18px; font-weight: 800; }
.rk-home-about-bio { color: #6b7280; font-size: 13.5px; margin: 4px 0 0; }
.rk-home-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rk-home-chip { font-size: 11.5px; color: #4b5563; background: #f3f5fb; border: 1px solid #e6eaf5; border-radius: 999px; padding: 2px 9px; }
.rk-home-qrs { margin-left: auto; display: flex; gap: 18px; }
.rk-home-qr { text-align: center; }
.rk-home-qrbox {
    width: 120px; height: 120px; border: 1px solid #e2e7f2; border-radius: 10px; background-color: #fbfcfe;
    display: flex; align-items: center; justify-content: center; color: #a8b0be; font-size: 11.5px;
    background-image:
        linear-gradient(to top right, transparent calc(50% - 0.6px), #dfe4ee calc(50% - 0.6px), #dfe4ee calc(50% + 0.6px), transparent calc(50% + 0.6px)),
        linear-gradient(to bottom right, transparent calc(50% - 0.6px), #dfe4ee calc(50% - 0.6px), #dfe4ee calc(50% + 0.6px), transparent calc(50% + 0.6px));
}
.rk-home-qrcap { font-size: 11.5px; color: #7b8497; margin-top: 6px; }

@media (max-width: 1399.98px) {
    .rk-home-hero { padding-right: 340px; }
    .rk-home-pic { width: 340px; }
    .rk-home-hero h1 { font-size: 34px; }
}
@media (max-width: 1199.98px) {
    .rk-entries { flex-wrap: wrap; }
    .rk-entry2 { flex: 1 1 30%; }
}
@media (max-width: 991.98px) {
    .rk-home-hero { flex-direction: column; align-items: stretch; padding-right: 0; }
    .rk-home-hero-txt { padding: 22px 22px 18px 22px; }
    .rk-home-pic { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: 170px; }
    .rk-statrow { flex-wrap: wrap; }
    .rk-statcard { flex: 1 1 44%; }
    .rk-entry2 { flex: 1 1 44%; }
    .rk-home-about { flex-wrap: wrap; }
    .rk-home-qrs { margin-left: 0; }
}
/* 课程页富文本详细内容：约束图片/表格尺寸，避免撑破卡片 */
.rk-course-detail img { max-width: 100%; height: auto; border-radius: 6px; }
.rk-course-detail table { max-width: 100%; }
.rk-course-detail pre { white-space: pre-wrap; word-break: break-all; }

/* 课程详情页（新页签）：右栏视频封面卡 */
.rk-cd-cover {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9; min-height: 180px; text-decoration: none;
    background: linear-gradient(135deg, #2b3f8f 0%, #3c55b8 60%, #5470cc 100%);
}
.rk-cd-play {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #2b3f8f; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .15s;
}
a:hover .rk-cd-play { transform: scale(1.08); }
.rk-cd-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem .8rem; color: #fff; font-size: .85rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.rk-cd-caption span:first-child { min-width: 0; }

/* 课程封面：列表大图 + 子课程缩略图 */
.rk-course-cover {
    width: 100%; max-height: 160px; object-fit: cover;
    border-radius: 8px; border: 1px solid #e8eaf3;
}
.rk-course-thumb {
    width: 44px; height: 32px; object-fit: cover;
    border-radius: 4px; border: 1px solid #e8eaf3; flex-shrink: 0;
}

/* 题库做题页（按设计稿）：左侧答题卡 17% + 右侧题目卡 83% */
.rk-exam-layout { align-items: stretch; }
.rk-exam-left {
    width: 190px; margin-right: 12px;
    border: 1px solid #dde1e7; border-radius: 4px;
    padding: 18px 12px; background: #fff;
}
.rk-exam-right { min-width: 0; }
.rk-asheet {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 14px 10px; max-width: 180px;
}
.rk-as {
    display: flex; align-items: center; justify-content: center;
    height: 24px; border: 1px solid #d9dde3; border-radius: 3px;
    font-size: 12px; color: #333; background: #fff; text-decoration: none;
}
.rk-as:hover { border-color: #9aa6b8; color: #333; }
.rk-as.done { background: #eef1f6; border-color: #d9dde3; }
.rk-as.cur { border-color: #2f6fed; color: #2f6fed; font-weight: 600; }
.rk-as.marked::after { content: "★"; color: #f0a830; font-size: 9px; margin-left: 1px; }

.rk-btn-submit {
    background: #fff; border: 1px solid #cfd4dc; border-radius: 3px;
    color: #333; font-size: 14px; padding: 6px 26px;
}
.rk-btn-submit:hover { background: #f5f6f8; }

.rk-exam-card {
    background: #fff; border: 1px solid #a9d5d8; border-radius: 4px;
    padding: 22px 26px; min-height: 620px;
}
.rk-qstem { font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.rk-qopts { display: flex; flex-direction: column; }
.rk-qopt {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 8px 0; font-size: 14px; line-height: 1.7; cursor: pointer;
}
.rk-qopt input[type=radio], .rk-qopt input[type=checkbox] {
    width: 14px; height: 14px; margin-top: 4px; flex-shrink: 0; accent-color: #4a5568;
}
.rk-qopt.opt-right span:first-of-type { color: #2e9e5b; }
.rk-qopt.opt-wrong span:first-of-type { color: #d9534f; }
.rk-qopt em { font-style: normal; font-size: 13px; color: #999; white-space: nowrap; }
.rk-verdict { margin-top: 16px; padding: 8px 14px; border-radius: 4px; font-size: 14px; }
.rk-verdict.ok { background: #eaf7ef; color: #2e9e5b; }
.rk-verdict.no { background: #fdf0ef; color: #d9534f; }
.rk-analysis { margin-top: 12px; font-size: 14px; color: #555; line-height: 1.8; }

.rk-exam-foot { gap: 8px; }
.rk-btn-prev, .rk-btn-next, .rk-btn-warn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 18px; border-radius: 3px; font-size: 13px;
    text-decoration: none; cursor: pointer; line-height: 1.5;
}
.rk-btn-prev {
    background: #eaf1fd; border: 1px solid #d6e4fc; color: #2f6fed;
}
.rk-btn-next {
    background: #1e6ee5; border: 1px solid #1e6ee5; color: #fff;
}
.rk-btn-next:hover { background: #1559c4; color: #fff; }
.rk-btn-prev:hover { background: #dce8fb; color: #2f6fed; }
.rk-btn-prev.disabled, .rk-btn-next.disabled { opacity: .5; cursor: not-allowed; }
.rk-btn-warn {
    background: #fff; border: 1px solid #f0a73a; color: #e8963c;
}
.rk-btn-warn:hover { background: #fff8ee; color: #e8963c; }
.rk-btn-warn.on { background: #f0a830; color: #fff; border-color: #f0a830; }
.rk-btn-warn .rk-star { margin-right: 2px; }

/* ———— 操作反馈 Toast：顶部居中悬浮弹出，不占据布局位置，自动消失 ———— */
.rk-toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3000;
    display: flex; align-items: flex-start; gap: 10px;
    max-width: min(760px, calc(100vw - 32px));
    padding: 11px 14px 11px 16px; border-radius: 10px;
    font-size: 14px; line-height: 1.5; background: #fff;
    box-shadow: 0 10px 28px rgba(17,24,39,.16), 0 2px 6px rgba(17,24,39,.08);
    animation: rkToastIn .28s cubic-bezier(.2,.9,.3,1.2);
}
.rk-toast-msg { color: #1f2733; word-break: break-all; }
.rk-toast-ico {
    flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
}
.rk-toast-x { flex: none; border: 0; background: none; color: #9aa3b2; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 0 0 4px; }
.rk-toast-x:hover { color: #4b5563; }
.rk-toast-success { border-left: 4px solid #2f9e6e; }
.rk-toast-success .rk-toast-ico { background: #2f9e6e; }
.rk-toast-info { border-left: 4px solid #4361ee; }
.rk-toast-info .rk-toast-ico { background: #4361ee; }
.rk-toast-warning { border-left: 4px solid #e9a23b; background: #fffbf0; }
.rk-toast-warning .rk-toast-ico { background: #e9a23b; }
.rk-toast-danger { border-left: 4px solid #e05252; background: #fef6f6; }
.rk-toast-danger .rk-toast-ico { background: #e05252; }
.rk-toast-out { opacity: 0; transform: translateX(-50%) translateY(-10px); transition: opacity .22s ease, transform .22s ease; }
@keyframes rkToastIn { from { opacity: 0; transform: translateX(-50%) translateY(-14px); } }

/* ———— 顶部导航「今日打卡」按钮：整排唯一实色焦点 ———— */
.rk-checkin {
    border: 1px solid var(--rk-primary, #4361ee); color: #fff; background: var(--rk-primary, #4361ee);
    border-radius: 16px; font-size: 13px; font-weight: 600; line-height: 1.4;
    height: 32px; padding: 0 16px; cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center;
    transition: background .12s, box-shadow .12s;
}
.rk-checkin:hover { background: #2759c8; border-color: #2759c8; box-shadow: 0 2px 8px rgba(47,111,237,.28); color: #fff; }
/* 已打卡：描边绿（让出实色焦点，与信息胶囊同层低调） */
.rk-checkin.done {
    height: 28px; padding: 0 12px; font-size: 12.5px; font-weight: 600;
    border: 1px solid #2f9e6e; color: #2f9e6e; background: #effaf4;
    border-radius: 14px; cursor: default;
}
.rk-checkin.done:hover { background: #effaf4; border-color: #2f9e6e; box-shadow: none; color: #2f9e6e; }

/* 窄屏折叠导航：右侧控件隐藏信息胶囊与分隔线，只保留打卡 + 账号（避免溢出） */
@media (max-width: 991.98px) {
    .rk-ctl .rk-pill-info, .rk-ctl .rk-ctl-sep { display: none; }
}
