/* 巨量学认证讲师 —— 白底 / 深蓝文字 / 品牌蓝强调 */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --ink: #17324d;
  --ink-2: #41596f;
  --muted: #7d90a0;
  --line: #dde6ea;
  --teal: #397df7;
  --teal-dark: #2468e5;
  --teal-soft: #eaf2ff;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

button, input, select { font-family: inherit; font-size: inherit; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- 页眉：参考巨量学首页白底通栏与横向导航 ---------- */
.site-header {
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, .98);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: #253858;
}
.brand-logo {
  display: block;
  width: 122px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}
.brand-divider {
  width: 1px;
  height: 18px;
  margin: 0 14px;
  background: #dfe5ec;
}
.brand-name {
  color: #253858;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-self: stretch;
  margin-left: auto;
  gap: 34px;
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #2f3541;
  padding: 0 2px;
  border-bottom: 0;
  font-size: 15px;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 3px;
  background: #397df7;
  transition: left .16s ease, right .16s ease;
}
.site-nav a:hover { color: #397df7; }
.site-nav a.is-active { color: #397df7; }
.site-nav a.is-active::after { left: 0; right: 0; }

/* 认证讲师报名入口：固定真实外链按钮，与现有导航同排、同对齐与响应式；不参与路由高亮 */
.site-nav .nav-register {
  align-self: center;
  color: #fff;
  background: #397df7;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 500;
}
.site-nav .nav-register::after { display: none; }
.site-nav .nav-register:hover { color: #fff; background: #2f6ce0; }

/* ---------- 主体 ---------- */
.app-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  min-height: 60vh;
}

/* ---------- 讲师主题 Banner 轮播 ---------- */
.banner-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4512 / 929;
  margin-bottom: 24px;
  background: #eaf2ff;
  border-radius: 12px;
  overflow: hidden;
}
.banner-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; will-change: transform; }
.banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  pointer-events: none;
}
.banner-slide.is-active { pointer-events: auto; }
.banner-track.no-transition { transition: none !important; }
.banner-clone { pointer-events: none; }
.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.banner-slide a.banner-link {
  display: block;
  width: 100%;
  height: 100%;
}
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #17324d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(23, 50, 77, 0.18);
}
.banner-btn:hover { background: #fff; }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.banner-dot.is-active { background: #fff; width: 20px; border-radius: 999px; }
@media (max-width: 560px) {
  .banner-btn { width: 30px; height: 30px; font-size: 15px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-track { transition: none; }
}

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.field span { font-size: 12px; color: var(--muted); }
.field input, .field select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 40px;
}
.field-search { min-width: 220px; flex: 1 1 220px; }

.result-count {
  margin: 18px 2px 14px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 姓名搜索与四类条件筛选 ---------- */
.lecturer-filter-toolbar { padding: 16px 18px; gap: 14px; }
.lecturer-filter-toolbar .field-search { flex: none; width: 100%; min-width: 0; }
.lecturer-filter-toolbar .field-search span { font-size: 14px; color: var(--ink-2); }
.lecturer-filter-toolbar input { width: 100%; min-height: 44px; font-size: 16px; }
.condition-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.condition-filters .filter-field { min-width: 0; }
.condition-filters select { width: 100%; font-size: 14px; }
@media (min-width: 860px) {
  .condition-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 700px) {
  .grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid-view { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(57, 125, 247, .10);
}
.card-link { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 14px; color: inherit; }
.card-body { min-width: 0; flex: 1; padding: 0; }
.card .card-title-row { flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; }
.card .card-org { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.card .card-loc, .card .alias { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tag-preview { margin-top: 8px; }
.card .tag-preview li { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 5px; }
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card h3, .detail h2 { margin: 0; font-size: 17px; }
.alias { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-level { margin: 8px 0 2px; color: var(--teal-dark); font-size: 13px; font-weight: 500; }
.card-org, .card-loc { margin: 2px 0; font-size: 13px; color: var(--ink-2); }

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-external { background: var(--teal-soft); color: var(--teal-dark); }
.badge-internal { background: #e8eef3; color: var(--ink-2); }

/* ---------- 标签 ---------- */
.tag-list { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tag-list li {
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
}
.tag-inline { margin-top: 8px; }

/* ---------- 巨量学课程（无可靠课程时模块整体隐藏，由 JS 控制渲染） ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.course-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.course-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(57, 125, 247, .10);
}
.course-cover {
  width: 112px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-alt);
}
.course-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.course-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-tags { margin: 0; }
.course-tags li { font-size: 11px; }

@media (max-width: 560px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* ---------- 照片框：统一 4:5，contain 完整呈现 ---------- */
.photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .photo-frame {
  width: 104px;
  height: 156px;
  flex: 0 0 104px;
  aspect-ratio: 2 / 3;
  border-radius: 5px;
}
.card .photo-frame img {
  object-fit: contain;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.photo-placeholder-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.photo-placeholder-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 10px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--muted);
  border-radius: 3px;
}
.photo-note { font-size: 12px; }

/* ---------- 详情 ---------- */
.btn-back {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 40px;
  margin-bottom: 20px;
}
.btn-back:hover { border-color: var(--teal); color: var(--teal-dark); }

.detail-head {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.detail-head .photo-frame-lg { width: 220px; flex: 0 0 220px; border-radius: 8px; }
.detail-intro { flex: 1; min-width: 0; }
.detail-title-row { display: flex; align-items: center; gap: 10px; }
.detail-fields { margin: 14px 0 0; display: grid; gap: 8px; }
.field-row { display: flex; gap: 12px; font-size: 14px; }
.field-row dt { flex: 0 0 96px; color: var(--muted); }
.field-row dd { margin: 0; color: var(--ink); }

.detail-block {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.detail-block h3 { margin: 0 0 10px; font-size: 16px; }
.block-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.prose { margin: 0; color: var(--ink-2); white-space: pre-wrap; }
.muted { color: var(--muted); }

/* 证书有效期：详情页末尾弱化备注，不是字段行，也不是卡片模块 */
.detail-cert-note {
  margin: 18px 2px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

/* ---------- 六轴雷达 ---------- */
.radar-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.radar-svg { width: 340px; max-width: 100%; }
.radar-ring { fill: none; stroke: #e3ebed; stroke-width: 1; }
.radar-ring-max { stroke: #c8d6dc; }
.radar-axis { stroke: #e3ebed; stroke-width: 1; }
.radar-label { font-size: 11px; fill: var(--ink-2); }
.radar-scale { font-size: 9px; fill: var(--muted); }
.radar-fill { fill: rgba(57, 125, 247, .14); stroke: none; }
.radar-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; }
.radar-closed { fill: none; }
.radar-dot { fill: var(--teal); }
.radar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 8px;
}
.radar-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.radar-list strong { color: var(--teal-dark); font-weight: 600; }

/* ---------- 空态 / 核验页 ---------- */
.empty-state {
  margin-top: 24px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.btn-ghost {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 40px;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.verify-page { display: flex; justify-content: center; padding: 40px 0; }
.verify-panel {
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.verify-panel h2 { margin: 0 0 10px; font-size: 20px; }
.verify-status {
  display: inline-block;
  margin: 6px 0 18px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 600;
}
.verify-panel .prose { margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px 0;
}
.pg-info { font-size: 13px; color: var(--muted); }
.pager .btn-ghost { margin-top: 0; min-height: 36px; padding: 6px 16px; }

/* ---------- 详情来源声明 ---------- */
.tag-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.src-disclaimer { margin-top: 18px; font-size: 13px; }

/* ---------- 窄屏（≤760px）：顶行切换 + 关键词通栏 + 双列筛选，无空白 ---------- */
@media (max-width: 760px) {
  .header-inner { min-height: 58px; padding: 0 16px; gap: 18px; }
  .brand-logo { width: 104px; max-height: 28px; }
  .brand-divider { margin: 0 10px; }
  .brand-name { font-size: 14px; }
  .site-nav { gap: 22px; overflow-x: auto; }
  .site-nav a { font-size: 14px; }
  .app-main { padding: 20px 16px 48px; }
  .toolbar { padding: 14px; gap: 12px; }
  .field-search { min-width: 0; flex: none; }
  .field { min-width: 0; }
  .detail-head { flex-direction: column; }
  .detail-head .photo-frame-lg { width: 100%; flex: none; max-width: 260px; }
  .radar-svg { width: 100%; }
}

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .brand { width: 100%; padding-bottom: 8px; }
  .site-nav { width: 100%; height: 44px; margin-left: 0; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
