/* 学员端（响应式：PC + 移动） */
:root {
  --brand: #2f8fd0;
  --brand-dark: #1f6fa8;
  --bg: #f4f7fb;
  --card: #fff;
  --text: #333;
  --muted: #8a94a6;
  --line: #e6eef5;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 1px 6px rgba(20,50,80,.06); position: sticky; top: 0; z-index: 20; }
.site-header .inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.brand .logo { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; }
.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a { padding: 8px 14px; border-radius: 8px; color: #4a5568; }
.main-nav a:hover { background: #eef6fc; color: var(--brand); }
.main-nav a.active { background: var(--brand); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* 通用块 */
.section { margin: 22px 0; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; margin: 0; color: #22384f; }
.section-head .more { margin-left: auto; color: var(--muted); font-size: 13px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(20,50,80,.05); }

/* 轮播 */
.hero { border-radius: var(--radius); overflow: hidden; height: 300px; background: linear-gradient(120deg,#2f8fd0,#67c2e8); display: grid; place-items: center; color: #fff; text-align: center; }
.hero h1 { font-size: 30px; margin: 0 0 8px; }
.hero p { margin: 0; opacity: .9; }

/* 公告 */
.notice-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(20,50,80,.05); }
.notice-bar .tag { background: #fff2e8; color: #d46b08; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.notice-bar .item { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 专业 */
.subject-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.subject { background: #fff; border-radius: var(--radius); padding: 16px 10px; text-align: center; box-shadow: 0 2px 10px rgba(20,50,80,.05); cursor: pointer; transition: .15s; }
.subject:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,50,80,.12); }
.subject .name { font-weight: 600; color: #22384f; }

/* 课程卡片 */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.course-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(20,50,80,.06); cursor: pointer; transition: .15s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,50,80,.14); }
.course-cover { height: 130px; background: linear-gradient(135deg,#dff0fb,#b9dcf3); display: grid; place-items: center; color: #2f8fd0; font-weight: 700; }
.course-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-title { font-weight: 600; color: #22384f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.course-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.price { color: #e0602c; font-weight: 700; }
.price.free { color: #18a058; }

/* 工具条 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.chip { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; color: #4a5568; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.searchbox { margin-left: auto; display: flex; gap: 8px; }
.searchbox input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; width: 220px; outline: none; }
.searchbox input:focus { border-color: var(--brand); }

/* 详情 */
.detail-head { display: grid; grid-template-columns: 320px 1fr; gap: 22px; padding: 18px; }
.detail-cover { height: 190px; border-radius: var(--radius); background: linear-gradient(135deg,#dff0fb,#b9dcf3); display: grid; place-items: center; color: #2f8fd0; font-weight: 700; }
.detail-info h1 { margin: 0 0 10px; font-size: 22px; color: #22384f; }
.detail-info .line { color: var(--muted); margin: 4px 0; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 16px 0; }
.tabs button { background: none; border: none; padding: 10px 16px; cursor: pointer; color: #4a5568; font-size: 14px; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.outline { background: #fff; border-radius: var(--radius); padding: 8px 0; }
.outline .chapter > .row { padding: 10px 16px; font-weight: 600; background: #f7fbff; }
.outline .lesson { padding: 9px 16px 9px 34px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; color: #4a5568; }

/* 列表页 */
.list { background: #fff; border-radius: var(--radius); overflow: hidden; }
.list .row { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.list .row:last-child { border-bottom: none; }
.list .row:hover { background: #f7fbff; }
.list .date { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* 登录 */
.login-wrap { min-height: 460px; display: grid; place-items: center; }
.login-card { width: 360px; background: #fff; padding: 26px; border-radius: 14px; box-shadow: 0 10px 30px rgba(20,50,80,.12); }
.login-card h2 { margin: 0 0 18px; text-align: center; color: #22384f; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: #4a5568; font-size: 13px; }
.field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.field input:focus { border-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; border: none; background: var(--brand); color: #fff; cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #eef6fc; color: var(--brand); }
.btn.block { width: 100%; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.pager button { min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pager button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 页脚 */
.site-footer { margin-top: 30px; padding: 22px 0 30px; color: var(--muted); text-align: center; font-size: 13px; border-top: 1px solid var(--line); background: #fff; }

/* 移动端 */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header .inner { height: 54px; gap: 10px; }
  .main-nav, .header-actions .desktop-only { display: none; }
  .brand { font-size: 16px; }
  .hero { height: 170px; }
  .hero h1 { font-size: 20px; }
  .course-grid { grid-template-columns: 1fr; gap: 12px; }
  .subject-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .course-cover { height: 150px; }
  .searchbox { width: 100%; margin-left: 0; }
  .searchbox input { width: 100%; }
  .container { padding: 0 12px; }
  .detail-head { padding: 12px; }
  body { padding-bottom: 56px; }

  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 56px;
    background: #fff; border-top: 1px solid var(--line); z-index: 30;
  }
  .mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
  .mobile-bar a.active { color: var(--brand); }
  .mobile-bar .ico { font-size: 17px; line-height: 1; }
}

/* ---------- 学习页 ---------- */
.study-head { display: flex; align-items: center; gap: 14px; padding: 14px 0 6px; color: #22384f; }
.study-head .back { color: var(--brand); }
.study-head .name { font-weight: 600; }
.study-head .progress-text { margin-left: auto; color: var(--muted); }
.study-body { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin: 10px 0 30px; }
.player { position: relative; background: #10202e; border-radius: var(--radius); aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; }
.player .play-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 24px; }
.player .player-tip { position: absolute; bottom: 12px; left: 16px; font-size: 13px; opacity: .85; }
.study-bar { background: #fff; border-radius: var(--radius); padding: 12px; margin-top: 12px; box-shadow: 0 2px 10px rgba(20,50,80,.05); }
.study-bar .progress { height: 6px; background: #eef2f7; border-radius: 3px; overflow: hidden; }
.study-bar .bar { height: 100%; background: var(--brand); transition: width .3s; }
.study-bar .actions { display: flex; gap: 8px; margin-top: 12px; }
.study-side { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(20,50,80,.05); overflow: hidden; align-self: start; }
.study-side .side-title { padding: 12px 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.chapter-name { padding: 10px 14px; background: #f7fbff; font-weight: 600; color: #22384f; }
.lesson-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px dashed var(--line); color: #4a5568; font-size: 13px; }
.lesson-item:hover { background: #f7fbff; }
.lesson-item.active { background: #eaf5fd; color: var(--brand); font-weight: 600; }
.lesson-item.done .dot { color: #18a058; }
.lesson-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-item .m { color: var(--muted); }
@media (max-width: 900px) {
  .study-body { grid-template-columns: 1fr; }
  .study-side { order: 2; }
}

/* ---------- 在线答题 ---------- */
.exam-head { display: flex; align-items: center; padding: 14px 0 8px; font-weight: 600; color: #22384f; }
.exam-head .timer { margin-left: auto; color: #e0602c; font-variant-numeric: tabular-nums; }
.question { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.question:last-of-type { border-bottom: none; }
.q-title { color: #22384f; margin-bottom: 8px; line-height: 1.7; }
.q-type { font-size: 12px; color: var(--brand); background: #eaf5fd; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.q-options { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: #4a5568; }
.opt:hover { border-color: var(--brand); background: #f7fbff; }
.opt.picked { border-color: var(--brand); background: #eaf5fd; color: var(--brand); }
.opt .key { width: 20px; height: 20px; border-radius: 50%; background: #eef2f7; display: grid; place-items: center; font-size: 12px; }
.opt.picked .key { background: var(--brand); color: #fff; }
.q-result { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.q-result:last-child { border-bottom: none; }

/* ---------- 首页轮播 ---------- */
.hero-banner { position: relative; border-radius: var(--radius); overflow: hidden; height: 300px; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; transition: background .5s; }
.hero-banner .hero-text h1 { font-size: 30px; margin: 0 0 8px; }
.hero-banner .hero-text p { margin: 0; opacity: .92; }
.hero-banner .hero-dots { position: absolute; bottom: 14px; display: flex; gap: 8px; }
.hero-banner .hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-banner .hero-dots span.on { background: #fff; width: 20px; border-radius: 4px; }
@media (max-width: 640px) {
  .hero-banner { height: 170px; }
  .hero-banner .hero-text h1 { font-size: 20px; }
}

/* 学习页视频 */
.player-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #10202e; }
.player-wrap .video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #10202e; }
.player-wrap .player { aspect-ratio: 16 / 9; }
.demo-clock { position: absolute; top: 14px; right: 16px; color: #cfe8fb; font-variant-numeric: tabular-nums; font-size: 13px; }
.demo-actions { position: absolute; bottom: 14px; right: 16px; display: flex; gap: 8px; }
.study-bar .bar-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 6px; }

/* 防挂机 */
.study-notice { margin: 6px 0 0; background: #fff7e6; border: 1px solid #ffe0b2; color: #b26a00;
  border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.idle-mask { position: absolute; inset: 0; z-index: 6; background: rgba(10, 24, 38, .62);
  display: flex; align-items: center; justify-content: center; }
.idle-card { background: #fff; border-radius: 10px; padding: 22px 28px; text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28); }
.idle-card .idle-title { font-weight: 700; font-size: 16px; color: #22384f; margin-bottom: 6px; }
.idle-card .idle-tip { color: #606266; font-size: 13px; margin-bottom: 14px; }

/* 登录验证码 */
.vcode-box { display:inline-grid; place-items:center; width:74px; height:38px; border-radius:6px; background:#eef6fc; color:#2f8fd0; letter-spacing:3px; font-weight:700; user-select:none; }

/* 登录验证码 */
.vcode-box { display:inline-grid; place-items:center; width:74px; height:38px; border-radius:6px; background:#eef6fc; color:#2f8fd0; letter-spacing:3px; font-weight:700; user-select:none; }


/* ---------- 移动端外壳 /mobi ---------- */
.mobi .site-header { display: none; }
.mobi .container { padding: 0 12px; }
.mobi body { padding-bottom: 60px; }
.mobi main { padding-top: 6px; }
.mobi .course-grid { grid-template-columns: 1fr; gap: 12px; }
.mobi .subject-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mobi .hero-banner { height: 170px; margin-top: 8px; }
.mobi .hero-banner .hero-text h1 { font-size: 20px; }
.mobi .mobile-bar { display: flex !important; }
.mobi .section-head h2 { font-size: 16px; }
.mobi .btn { padding: 11px 18px; }
.mobi .course-card .course-cover { height: 150px; }
.mobi .detail-head { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
.mobi .study-body { grid-template-columns: 1fr; }
.mobi .login-card { width: 100%; }
.mobi .mobi-title { position: sticky; top: 0; z-index: 15; background: #fff; padding: 10px 2px; font-weight: 600; color: #22384f; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

/* 移动端：避免按钮文字竖排 */
.mobi .btn, .mobi button { white-space: nowrap; }
.mobi .search-bar { display: flex; gap: 8px; }
.mobi .search-bar .btn { min-width: 64px; padding-left: 12px; padding-right: 12px; }

/* ---------- 头部用户菜单 ---------- */
.user-box { position: relative; display: flex; align-items: center; gap: 6px; cursor: pointer; color: #22384f; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: #2f8fd0; color: #fff; display: grid; place-items: center; font-size: 13px; }
.user-name { font-size: 14px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-box .caret { font-size: 12px; color: #7b8a9b; }
.user-drop { position: absolute; right: 0; top: 40px; min-width: 132px; background: #fff; border: 1px solid #e5eaf1; border-radius: 8px; box-shadow: 0 8px 24px rgba(20,40,70,.12); padding: 6px; z-index: 50; }
.user-drop a { display: block; padding: 8px 10px; border-radius: 6px; color: #33475f; font-size: 14px; }
.user-drop a:hover { background: #f2f7fc; color: #2f8fd0; }

/* ---------- 个人中心 ---------- */
.acc-page { padding: 16px 0 40px; }
.acc-head { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e9eef5; border-radius: 12px; padding: 16px 18px; }
.acc-avatar { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #e8f2fb; display: grid; place-items: center; cursor: pointer; flex: none; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-avatar-ph { font-size: 28px; color: #2f8fd0; }
.acc-avatar em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(20,40,70,.55); color: #fff; font-size: 11px; text-align: center; padding: 3px 0; font-style: normal; }
.acc-name-row { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; color: #22384f; }
.sex-tag { font-size: 12px; font-weight: 400; color: #2f8fd0; background: #eaf4fd; border-radius: 10px; padding: 1px 8px; }
.acc-body { display: grid; grid-template-columns: 170px 1fr; gap: 16px; margin-top: 16px; }
.acc-nav { background: #fff; border: 1px solid #e9eef5; border-radius: 12px; padding: 8px; height: fit-content; }
.acc-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: #3a4d63; font-size: 14px; }
.acc-nav a:hover { background: #f2f7fc; }
.acc-nav a.on { background: #2f8fd0; color: #fff; }
.acc-main { background: #fff; border: 1px solid #e9eef5; border-radius: 12px; padding: 18px; min-height: 320px; }
.acc-main h3 { margin: 0 0 14px; font-size: 16px; color: #22384f; }
.acc-empty { color: #8a94a6; padding: 24px 0; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table th, .acc-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef2f7; color: #3a4d63; }
.acc-table th { color: #7b8a9b; font-weight: 500; }
.fav-list a { display: block; padding: 9px 0; border-bottom: 1px solid #eef2f7; color: #2f8fd0; }
@media (max-width: 900px) {
  .acc-body { grid-template-columns: 1fr; }
  .acc-nav { display: flex; overflow-x: auto; gap: 6px; }
  .acc-nav a { white-space: nowrap; }
}

/* ---------- 学习证明 ---------- */
.cert-list { display: flex; flex-direction: column; gap: 10px; }
.cert-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #eef2f7; border-radius: 10px; }
.cert-name { font-size: 15px; color: #22384f; font-weight: 600; }
.cert-page { padding: 20px 0 40px; }
.cert-sheet { max-width: 760px; margin: 0 auto; background: #fff; border: 8px double #d9b26a; padding: 44px 48px; position: relative; }
.cert-org { text-align: center; color: #8a6d2f; letter-spacing: 2px; font-size: 15px; }
.cert-title { text-align: center; font-size: 30px; letter-spacing: 12px; color: #7a5a1e; margin: 18px 0 26px; font-weight: 700; }
.cert-body { font-size: 17px; line-height: 2.1; color: #2b3a4a; text-indent: 2em; }
.cert-foot { margin-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; color: #4a5b6d; font-size: 14px; position: relative; padding-right: 140px; min-height: 96px; }
.cert-stamp { position: absolute; right: 6px; bottom: 0; width: 108px; height: 108px; border: 3px solid #c0392b; border-radius: 50%; color: #c0392b; display: grid; place-items: center; font-size: 14px; opacity: .75; transform: rotate(-12deg); }
@media print { .site-header, .site-footer, .mobile-bar, .cert-page .btn { display: none !important; } .cert-sheet { border-color: #d9b26a; } }

/* 章节学习进度 */
.outline .lesson { display: grid; grid-template-columns: 1fr auto 90px 46px; align-items: center; gap: 10px; }
.outline .lesson .lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outline .lesson .lstat { color: #8a94a6; font-size: 12px; }
.outline .lesson .lbar { height: 6px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.outline .lesson .lbar i { display: block; height: 100%; background: #2f8fd0; border-radius: 4px; transition: width .3s; }
.outline .lesson .lpct { text-align: right; font-size: 12px; color: #2f8fd0; }
.outline .lesson .lpct.done { color: #1aa06d; font-weight: 600; }
.study-side .lesson-item .m { font-size: 11px; color: #8a94a6; }
@media (max-width: 640px) {
  .outline .lesson { grid-template-columns: 1fr 46px; }
  .outline .lesson .lstat, .outline .lesson .lbar { display: none; }
}

/* 证书学习进度 */
.cert-progress { margin-top: 18px; font-size: 15px; color: #3a4d63; }
.cert-progress b { color: #1aa06d; font-size: 17px; }
.cert-pbar { display: inline-block; width: 220px; height: 9px; background: #eef2f7; border-radius: 5px; overflow: hidden; vertical-align: middle; margin-left: 10px; }
.cert-pbar i { display: block; height: 100%; background: #2f8fd0; }

/* ---------- 我的课程（对齐原站 /student/course） ---------- */
.myc-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.myc-tabs { display:flex; gap:6px; }
.myc-tabs button { border:1px solid var(--line); background:#fff; color:#3a4d63; padding:7px 16px; border-radius:18px; cursor:pointer; font-size:14px; }
.myc-tabs button.on { background:#2f8fd0; border-color:#2f8fd0; color:#fff; }
.myc-search { display:flex; gap:8px; }
.myc-search input { width:220px; border:1px solid var(--line); border-radius:8px; padding:8px 10px; font-size:14px; }
.myc-list { display:flex; flex-direction:column; gap:14px; }
.myc-card { border:1px solid #e9eef5; border-radius:12px; overflow:hidden; background:#fff; }
.myc-card-head { display:flex; align-items:center; gap:8px; padding:10px 14px; background:#f7fafd; border-bottom:1px solid #eef2f7; flex-wrap:wrap; }
.myc-idx { color:#8a94a6; font-size:13px; }
.myc-name { color:#22384f; font-weight:600; font-size:15px; }
.myc-name:hover { color:#2f8fd0; }
.myc-score { margin-left:auto; font-size:13px; color:#8a94a6; }
.myc-score b { color:#1aa06d; }
.myc-score b.nopass { color:#e0602c; }
.myc-card-body { display:grid; grid-template-columns:170px 1fr; gap:14px; padding:14px; }
.myc-cover { position:relative; display:flex; align-items:center; justify-content:center; height:110px; border-radius:10px; background:linear-gradient(120deg,#dff0fb,#c9e4f7); color:#2f8fd0; font-size:14px; }
.myc-cover em { position:absolute; left:8px; bottom:8px; font-style:normal; font-size:12px; background:rgba(255,255,255,.85); border-radius:10px; padding:1px 8px; color:#4a5b6d; }
.myc-info { display:flex; flex-direction:column; gap:10px; justify-content:center; }
.myc-row.tags { display:flex; align-items:center; gap:8px; }
.myc-res { margin-left:auto; color:#8a94a6; font-size:12px; }
.myc-row.blocks { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.myc-block { display:flex; flex-direction:column; gap:6px; }
.myc-block-t { font-size:12px; color:#8a94a6; }
.myc-block-v { font-size:13px; color:#2f8fd0; font-weight:600; }
@media (max-width: 640px) {
  .myc-card-body { grid-template-columns:1fr; }
  .myc-row.blocks { grid-template-columns:1fr; }
  .myc-search input { width: 100%; }
}

/* 考试资格提示 */
.exam-hint { background:#f7fafd; border:1px solid #e9eef5; border-radius:10px; padding:12px 14px; margin-bottom:10px; color:#3a4d63; font-size:13px; line-height:1.9; }
.exam-hint .warn { color:#e0602c; }
.exam-hint .ok { color:#1aa06d; }
.exam-hint .meta { color:#8a94a6; }
.myc-pass { margin-left:6px; font-size:11px; color:#1aa06d; background:#e8f7ef; border-radius:8px; padding:1px 6px; }

/* 结课考试条件未达 */
.exam-blocked { background:#fdf3ef; border:1px solid #f6d5c8; color:#c0491f; border-radius:10px; padding:12px 14px; font-size:14px; }
a.row.locked { opacity:.55; cursor:not-allowed; }
a.row.locked .btn { background:#c9d2dc; }

/* 终端设置：隐藏金额 */
body.hide-money .price, body.hide-money .money { display: none !important; }

/* 弹窗公告 */
.notice-popup-mask { position: fixed; inset: 0; background: rgba(16,32,50,.45); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.notice-popup { background: #fff; border-radius: 14px; width: 520px; max-width: 100%; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 50px rgba(12,30,50,.28); }
.notice-popup .np-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eef2f7; background: #f7fafd; }
.notice-popup .np-head b { flex: 1; font-size: 16px; color: #22384f; }
.notice-popup .np-close { cursor: pointer; color: #8a94a6; font-size: 16px; }
.notice-popup .np-body { padding: 18px; overflow: auto; color: #3a4d63; line-height: 1.9; font-size: 14px; }
.notice-popup .np-foot { padding: 12px 18px; border-top: 1px solid #eef2f7; text-align: right; }
@media (max-width: 640px) { .notice-popup { width: 100%; } }

/* 关于我们 / 帮助中心 */
.page-wrap { max-width: 900px; margin: 24px auto 40px; }
.about-card, .help-card { padding: 28px 32px; }
.about-card h1, .help-card h1 { margin: 0 0 8px; font-size: 22px; color: #22384f; }
.about-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #8a94a6; font-size: 13px; margin-bottom: 16px; }
.about-intro { color: #3a4d63; line-height: 1.9; font-size: 14px; margin: 0 0 14px; }
.about-block { color: #3a4d63; font-size: 14px; line-height: 2; }
.help-sub { color: #8a94a6; font-size: 13px; margin-bottom: 16px; }
.faq { border-top: 1px solid #eef2f7; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 2px; cursor: pointer; font-size: 15px; color: #22384f; }
.faq-q:hover { color: #2f8fd0; }
.faq-arrow { color: #2f8fd0; font-size: 18px; }
.faq-a { padding: 0 2px 16px; color: #4a5b6d; font-size: 14px; line-height: 1.9; }
.help-foot { margin-top: 18px; color: #8a94a6; font-size: 13px; }

/* 登录验证码 */
.vcode-img { height: 40px; width: 110px; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; }


/* 课程中心：我正在学习 */
.my-courses { background:#fff; border:1px solid #eaf0f6; border-radius:12px; padding:16px 18px; margin-bottom:8px; }
.my-courses .mc-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.my-courses .mc-head b { font-size:15px; color:#22384f; }
.my-courses .mc-more { color:#2f8fd0; font-size:13px; text-decoration:none; }
.my-courses .mc-empty { color:#8a94a6; font-size:13px; padding:14px 2px; }
.my-courses .mc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.my-courses .mc-card { display:flex; gap:10px; border:1px solid #eef2f7; border-radius:10px; padding:10px; text-decoration:none; color:inherit; transition:.15s; }
.my-courses .mc-card:hover { border-color:#bcdcf3; box-shadow:0 4px 14px rgba(47,143,208,.10); }
.my-courses .mc-cover { width:64px; height:48px; flex:0 0 64px; border-radius:6px; background:linear-gradient(135deg,#e8f2fb,#d5e8f8); color:#5b7fa0; font-size:12px; display:flex; align-items:center; justify-content:center; text-align:center; padding:2px; }
.my-courses .mc-body { flex:1; min-width:0; }
.my-courses .mc-title { font-size:14px; color:#22384f; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.my-courses .mc-meta { display:flex; gap:8px; color:#8a94a6; font-size:12px; margin:4px 0 6px; white-space:nowrap; overflow:hidden; }
.my-courses .mc-bar { height:5px; background:#eef3f9; border-radius:3px; overflow:hidden; }
.my-courses .mc-bar i { display:block; height:100%; background:linear-gradient(90deg,#5bb3ea,#2f8fd0); }
.my-courses .mc-foot { display:flex; justify-content:space-between; color:#8a94a6; font-size:12px; margin-top:6px; }
.my-courses .mc-go { color:#2f8fd0; }
@media (max-width:640px){ .my-courses .mc-grid { grid-template-columns:1fr; } }

/* 首页 hero 登录入口 */
.hero-cta { display:flex; align-items:center; gap:10px; margin-top:18px; flex-wrap:wrap; }
.hero-btn { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 22px; border-radius:22px; font-size:15px; text-decoration:none; transition:.15s; }
.hero-btn.primary { background:#fff; color:#1f7bb8; font-weight:600; box-shadow:0 6px 18px rgba(9,40,70,.18); }
.hero-btn.primary:hover { transform:translateY(-1px); box-shadow:0 8px 22px rgba(9,40,70,.24); }
.hero-btn.ghost { border:1px solid rgba(255,255,255,.75); color:#fff; }
.hero-btn.ghost:hover { background:rgba(255,255,255,.16); }
.hero-hint { color:rgba(255,255,255,.85); font-size:13px; margin-left:4px; }
@media (max-width:640px){
  .hero-cta { gap:8px; margin-top:12px; }
  .hero-btn { height:36px; padding:0 16px; font-size:14px; }
  .hero-hint { width:100%; margin-left:0; font-size:12px; }
}

/* 考试中心 · 手机端卡片 */
.exam-cards { display:flex; flex-direction:column; gap:10px; }
.exam-card { display:block; background:#fff; border:1px solid #eaf0f6; border-radius:12px; padding:14px; text-decoration:none; color:inherit; }
.exam-card + .exam-card { margin-top:0; }
.ec-top { display:flex; align-items:flex-start; gap:8px; justify-content:space-between; }
.ec-name { flex:1; font-size:15px; font-weight:600; color:#22384f; line-height:1.45; word-break:break-all; }
.ec-state { flex:0 0 auto; font-size:12px; padding:2px 8px; border-radius:10px; background:#eef3f9; color:#6b7c90; }
.ec-state.open { background:#e8f7ee; color:#18a058; }
.ec-state.wait { background:#fff5e6; color:#b26a00; }
.ec-state.end { background:#f3f4f6; color:#98a4b3; }
.ec-score { flex:0 0 auto; font-size:16px; font-weight:700; }
.ec-meta { display:flex; gap:8px; margin-top:8px; font-size:12px; color:#8a94a6; line-height:1.5; }
.ec-k { flex:0 0 auto; color:#a8b3c0; }
.ec-v { flex:1; word-break:break-all; }
.ec-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.ec-chip { font-size:12px; padding:2px 8px; border-radius:8px; background:#f2f7fd; color:#4a7fae; }
.ec-btn { display:block; margin-top:12px; height:40px; line-height:40px; text-align:center; border-radius:10px; background:linear-gradient(90deg,#3fa2e0,#1f7bb8); color:#fff; font-size:15px; text-decoration:none; }
.ec-btn.ghost { background:#f2f7fd; color:#1f7bb8; }
.ec-btn.disabled { background:#f3f4f6; color:#a8b3c0; }
.exam-empty { background:#fff; border:1px solid #eaf0f6; border-radius:12px; padding:32px; text-align:center; color:#8a94a6; font-size:13px; }

/* 考试状态圆点 / 通过标签 / 小节标题右侧信息 */
.ec-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-left:6px; vertical-align:middle; background:#c8d2de; }
.ec-dot.open { background:#18a058; }
.ec-dot.wait { background:#e6a23c; }
.ec-chip.pass { background:#e8f7ee; color:#18a058; }
.section-head .muted { color:#8a94a6; font-size:13px; }

.ec-score.none { color:#a8b3c0; font-size:14px; font-weight:600; }

/* 学员端 · 个人中心 手机端适配 */
@media (max-width: 640px) {
  .acc-page { padding: 12px 10px 78px; }
  .acc-head { flex-direction: row; gap: 12px; padding: 14px; align-items: flex-start; }
  .acc-avatar { width: 64px; height: 64px; flex: 0 0 64px; }
  .acc-avatar em { position: static; display: block; font-size: 10px; margin-top: 2px; background: none; color: #6b7c90; }
  .acc-name { min-width: 0; }
  .acc-name-row { font-size: 17px; gap: 6px; }
  .acc-name .course-meta { font-size: 12px; line-height: 1.6; word-break: break-all; }
  .acc-body { display: block; }
  .acc-nav { display: flex; flex-wrap: wrap; gap: 8px; width: auto; margin-bottom: 10px; }
  .acc-nav a { flex: 0 0 auto; padding: 7px 12px; border-radius: 8px; background: #fff; border: 1px solid #eaf0f6; font-size: 13px; }
  .acc-nav a.on { background: #2f8fd0; color: #fff; border-color: #2f8fd0; }
  .acc-main { padding: 14px; }
  .acc-main h3 { margin: 0 0 10px; font-size: 16px; }
  .acc-main .course-grid { grid-template-columns: 1fr; gap: 10px; }
  .acc-main .course-card .course-cover { height: 84px; font-size: 18px; border-radius: 8px 8px 0 0; }
  .acc-main .course-card .course-info { padding: 10px; }
  .acc-main .course-title { font-size: 14px; }
  .acc-main .course-meta { font-size: 12px; }
  .myc-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .myc-tabs { display: flex; gap: 6px; }
  .myc-tabs button { flex: 1; padding: 8px 4px; font-size: 13px; }
}

/* 手机端头像区：头像圆形 + 下方小字按钮，避免被裁切 */
@media (max-width: 640px) {
  .acc-head { align-items: center; }
  .acc-page .acc-avatar { width: 64px; height: auto; flex: 0 0 64px; overflow: visible; display: flex; flex-direction: column; align-items: center; }
  .acc-page .acc-avatar img,
  .acc-page .acc-avatar .acc-avatar-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
  .acc-page .acc-avatar em { position: static; display: block; margin-top: 5px; padding: 0; background: none; color: #2f8fd0; font-size: 11px; border-radius: 0; }
}

.site-footer .foot-link { margin-left:10px; color:#8a94a6; text-decoration:none; }
.site-footer .foot-link:hover { color:#2f8fd0; text-decoration:underline; }

/* 新闻列表 / 详情 · 手机端 */
@media (max-width: 640px) {
  .news-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
  .news-row-title { font-size: 14px; line-height: 1.5; color: #22384f; }
  .news-row .date { font-size: 12px; color: #8a94a6; }
  .news-detail { padding: 16px !important; }
  .news-detail .news-title { font-size: 18px; line-height: 1.45; margin: 0 0 8px; }
  .news-detail .news-meta { font-size: 12px; margin-bottom: 12px; }
  .news-detail .news-content { font-size: 14px; line-height: 1.85; word-break: break-word; }
  .news-detail .news-content img { max-width: 100%; height: auto; }
}

.ec-hint { margin-top:6px; font-size:12px; color:#b26a00; }
.ec-btn.disabled { background:#f3f4f6; color:#a8b3c0; }


/* ---------- 手机端修正（2026-11-01） ---------- */
/* 轮播圆点原来压在「我的课程」按钮下面，挪到右下角并给内容留出空间 */
.mobi .hero-banner .hero-inner { padding-bottom: 30px; }
.mobi .hero-banner .hero-dots { left: auto; right: 16px; top: 14px; bottom: auto; }
.mobi .mobile-bar .ico.svg { width: 22px; height: 22px; display: block; }
.mobi .mobile-bar .ico.svg svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.mobi .mobile-bar .ico:not(.svg) {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
/* 空状态面板在小屏上不要撑太高 */
.mobi .acc-main .panel { min-height: 0; }

/* 详情页 / 页脚：手机端收紧 */
.mobi .site-footer { display: none; }
.mobi .detail-head { flex-direction: column; padding: 12px; gap: 12px; }
.mobi .detail-head .detail-cover { width: 100%; height: 150px; border-radius: 8px; font-size: 20px; }
.mobi .detail-head .detail-info h1 { font-size: 20px; margin: 0 0 8px; }
.mobi .detail-head .detail-info .line { font-size: 13px; }
.mobi .tabs { gap: 4px; overflow-x: auto; }
.mobi .tabs button { padding: 8px 12px; white-space: nowrap; }
.mobi .course-card .course-cover { height: 128px; }

/* ---------- 防切屏锁定遮罩 ---------- */
.exam-lock {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(12, 28, 45, .72);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.exam-lock .lock-box {
  background: #fff; border-radius: 12px; padding: 24px 22px;
  width: min(88vw, 360px); text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.exam-lock h3 { margin: 0 0 8px; font-size: 17px; color: #c0392b; }
.exam-lock p { margin: 0; font-size: 13px; color: #5b6b7c; line-height: 1.7; }
.exam-lock .lock-input {
  margin-top: 14px; width: 100%; height: 40px; border: 1px solid #d5dbe3;
  border-radius: 8px; text-align: center; font-size: 18px; letter-spacing: 4px;
}

/* ---------- 考试排行榜 ---------- */
.rank-head { padding:18px; text-align:center; }
.rank-exam { font-size:18px; font-weight:700; color:#22384f; }
.rank-sub { margin-top:6px; color:#8a94a6; font-size:12px; }
.rank-mine { margin-top:12px; padding:12px 16px; text-align:center; color:#4a5b6d; background:#eef6fd; }
.rank-list { margin-top:12px; padding:4px 0; }
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px dashed #edf1f5; font-size: 14px;
}
.rank-row:last-child { border-bottom: none; }
.rank-row.me { background: #eef6fd; }
.rank-row .rk { width: 34px; text-align: center; font-weight: 700; color: #5b7fa0; }
.rank-row .nm { flex: 1; color: #22384f; }
.rank-row .sc { width: 70px; text-align: right; font-weight: 700; color: #2f8fd0; }
.rank-row .st { width: 62px; text-align: center; color: #e0602c; font-size: 12px; }
.rank-row .st.pass { color: #18a058; }
.rank-row .tm { width: 88px; text-align: right; color: #a7b1bd; font-size: 12px; }
.mobi .rank-row .tm { display: none; }

/* ---------- 简答题作答 ---------- */
.q-subjective { margin-top: 10px; }
.q-subjective textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #d5dbe3; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; line-height: 1.7; color: #22384f; resize: vertical;
  font-family: inherit;
}
.q-subjective textarea:focus { outline: none; border-color: #2f8fd0; box-shadow: 0 0 0 2px rgba(47,143,208,.15); }

.rank-filter { margin-top: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.rank-filter .rk-lbl { color: #5b6b7c; font-size: 13px; }
.rank-filter select {
  flex: 1; height: 34px; border: 1px solid #d5dbe3; border-radius: 8px; padding: 0 10px;
  color: #22384f; background: #fff; font-size: 14px;
}
.mobi .rank-mine {
  position: sticky; bottom: 62px; z-index: 20;
  box-shadow: 0 -6px 16px rgba(20,40,60,.08);
}
