/* ========== 学习资料 · 全局样式（电脑端 + 手机端自适应） ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fa; color: #333; font-size: 16px;
}
body {
  display: flex; flex-direction: column;
  min-height: 100vh;
}
a { color: #2f6fed; text-decoration: none; }
h1 { font-size: 22px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: linear-gradient(135deg, #2f6fed, #4a8dff);
  color: #fff; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.topbar .brand { font-size: 18px; font-weight: bold; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
  color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 14px;
}
.topbar nav a:hover, .topbar nav a.active { background: rgba(255,255,255,.22); }

.container { max-width: 1280px; margin: 20px auto; padding: 0 15px; width: 100%; flex: 1 0 auto; }
.card {
  background: #fff; border-radius: 10px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card h2 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #eee; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 5px; color: #555; }
input[type=text], input[type=password], input[type=date], input[type=file],
select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fff;
}
textarea { resize: vertical; }
.btn {
  display: inline-block; background: #2f6fed; color: #fff; border: none;
  padding: 9px 20px; border-radius: 6px; font-size: 15px; cursor: pointer;
}
.btn:hover { background: #225fd6; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-gray { background: #8a94a6; }
.btn-red { background: #e05353; }
.btn-green { background: #3aa76d; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
th { background: #f7f9fc; font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ---------- 消息提示 ---------- */
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.msg-ok { background: #e6f6ec; color: #217a4b; border: 1px solid #bfe6cd; }
.msg-err { background: #fdecec; color: #b33737; border: 1px solid #f3c2c2; }
.msg-info { background: #e8f0fe; color: #2f6fed; border: 1px solid #c5d9fb; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag-green { background: #e6f6ec; color: #217a4b; }
.tag-red { background: #fdecec; color: #b33737; }
.tag-blue { background: #e8f0fe; color: #2f6fed; }
.tag-gray { background: #eee; color: #777; }

/* ---------- 学员端课程卡片 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.course-card {
  background: #fff; border-radius: 10px; padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); display: block; color: #333;
  transition: transform .15s;
}
.course-card:hover { transform: translateY(-3px); }
.course-card .cc-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; }
.course-card .cc-desc { font-size: 13px; color: #888; line-height: 1.6; }

/* ---------- 学习页 ---------- */
.section-title { font-size: 16px; font-weight: bold; margin: 20px 0 10px; padding-left: 10px; border-left: 4px solid #2f6fed; }
.res-list { list-style: none; }
.res-list li {
  background: #fff; border-radius: 8px; padding: 12px 14px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
  flex-wrap: wrap;
}
.video-player { width: 100%; background: #000; border-radius: 8px; margin-top: 8px; max-height: 420px; }
.q-item { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.q-stem { font-weight: 600; margin-bottom: 10px; line-height: 1.6; }
.q-opt { display: block; padding: 6px 0; font-size: 14px; }
.q-result { font-weight: bold; margin-top: 6px; }

/* ---------- 首页 ---------- */
.landing { align-items: center; justify-content: center; }
.landing-box { text-align: center; padding: 80px 20px 40px; }
.landing-box h1 { font-size: 40px; margin-bottom: 14px; }
.slogan { font-size: 17px; }
.landing-box h1 { font-size: 32px; margin-bottom: 10px; }
.slogan { color: #888; margin-bottom: 36px; }
.entry-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.entry-card {
  background: #fff; border-radius: 12px; padding: 28px 36px; width: 200px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08); color: #333;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .15s;
}
.entry-card:hover { transform: translateY(-4px); }
.entry-icon { font-size: 40px; }
.entry-title { font-size: 18px; font-weight: bold; }
.entry-desc { font-size: 13px; color: #999; }
/* ---------- 登录页（简洁大气版） ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #f0f2f5; padding: 20px;
}
.login-card {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
}
.login-card .lc-head {
  background: #2f6fed; color: #fff; padding: 32px 30px 24px;
  text-align: center;
}
.login-card .lc-head .lc-icon {
  font-size: 36px; line-height: 1; margin-bottom: 10px;
}
.login-card .lc-head .lc-title {
  font-size: 20px; font-weight: 600; letter-spacing: 1px;
}
.login-card .lc-head .lc-sub {
  font-size: 13px; opacity: .85; margin-top: 6px;
}
.login-card .lc-body {
  padding: 28px 30px 24px;
}
.login-card .lc-body .form-row {
  margin-bottom: 18px;
}
.login-card .lc-body .form-row label {
  display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 500;
}
.login-card .lc-body input[type="text"],
.login-card .lc-body input[type="password"] {
  width: 100%; padding: 11px 14px; border: 1px solid #e0e0e0;
  border-radius: 8px; font-size: 15px; background: #fafafa;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-card .lc-body input[type="text"]:focus,
.login-card .lc-body input[type="password"]:focus {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47,111,237,.10);
  outline: none; background: #fff;
}
.login-card .lc-body .btn-login {
  width: 100%; padding: 12px; border: none; border-radius: 8px;
  background: #2f6fed; color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 4px; transition: background .2s;
}
.login-card .lc-body .btn-login:hover {
  background: #1a5fd8;
}
.login-card .lc-foot {
  text-align: center; padding: 0 30px 24px; font-size: 13px; color: #999;
}
.login-card .lc-foot a { color: #888; }
.login-card .lc-foot a:hover { color: #2f6fed; }


/* ---------- 页脚（含备案号） ---------- */
.site-footer {
  text-align: center; padding: 16px; font-size: 13px; color: #999;
  background: #fff; border-top: 1px solid #eee;
  flex-shrink: 0;
}
.site-footer a { color: #999; }

/* ---------- 手机端：APP 风格 ---------- */
.mobile-tabs { display: none; }
@media (max-width: 768px) {
  .container { margin: 12px auto 70px; padding: 0 10px; }
  .topbar nav { display: none; }              /* 手机端隐藏顶部菜单 */
  .mobile-tabs {                              /* 手机端底部导航栏（APP风格） */
    display: flex; position: fixed; left: 0; right: 0; bottom: 0;
    background: #fff; border-top: 1px solid #eee; z-index: 99;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-tabs a {
    flex: 1; text-align: center; padding: 8px 0 6px;
    font-size: 11px; color: #888;
  }
  .mobile-tabs a.active { color: #2f6fed; }
  .mobile-tabs .tab-icon { display: block; font-size: 20px; margin-bottom: 2px; }
  h1 { font-size: 19px; }
  .card { padding: 15px; border-radius: 12px; }
  .btn { width: 100%; padding: 12px; }
  .btn-sm { width: auto; padding: 4px 10px; }
  .entry-card { width: 160px; padding: 22px; }
  .landing-box h1 { font-size: 26px; }
}


/* ---------- 学习页分类标签 ---------- */
.study-tabs {
  display: flex; background: #fff; border-radius: 10px; overflow: hidden;
  margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.study-tabs button {
  flex: 1; padding: 12px 4px; border: none; background: #fff; cursor: pointer;
  font-size: 15px; color: #666; border-bottom: 3px solid transparent;
  font-family: inherit;
}
.study-tabs button.active { color: #2f6fed; border-bottom-color: #2f6fed; font-weight: bold; }
.study-tabs button .tab-badge {
  display: inline-block; background: #eef2fb; color: #2f6fed; border-radius: 10px;
  font-size: 12px; padding: 1px 7px; margin-left: 4px;
}
.study-pane { display: none; }
.study-pane.active { display: block; }
@media (max-width: 768px) {
  .study-tabs button { font-size: 14px; padding: 11px 2px; }
}


/* ---------- 分页 ---------- */
.pager { margin-top: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-info { font-size: 13px; color: #999; margin-right: 6px; }
.pager-a, .pager-cur {
  display: inline-block; min-width: 34px; text-align: center; padding: 6px 8px;
  border-radius: 6px; font-size: 14px;
}
.pager-a { background: #fff; color: #2f6fed; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pager-cur { background: #2f6fed; color: #fff; font-weight: bold; }
.pager-dot { color: #bbb; }


/* ---------- 课程内章节（二级分类）标题 ---------- */
.sec-head {
  font-weight: bold; font-size: 14px; color: #444; background: #eef2fb;
  padding: 7px 12px; border-radius: 6px; margin: 12px 0 8px;
}
