/* 低空翼站 · AI教学公开体验页样式
 * 作用域：全部以 .tg 前缀命名，只在本页生效，不改动首页 / 工作台 / 题库任何既有样式。
 * 沿用已选首页的蓝白 + 深蓝文字 + 品牌蓝强调；橙色只用于"待录入"提醒。
 * 无手机外框、无轮播、无复杂动画；正文对比度目标 ≥4.5:1，触控目标 ≥44px。
 */

html { -webkit-text-size-adjust: 100%; }

/* [hidden] 必须真的不显示：本页多处组件的 display:inline-flex/grid 会覆盖 UA 的
   [hidden]{display:none}，导致「该藏的按钮还在」。统一提一条兜底。 */
.tg [hidden] { display: none !important; }

body.tg {
  margin: 0;
  background: #f3f8fc;
  color: #102b48;
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.tg-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 14px; background: #102b48; color: #fff; border-radius: 0 0 10px 0;
}
.tg-skip:focus { left: 0; }

.tg-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 顶栏 ---------- */
.tg-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #dbe9f4;
  backdrop-filter: blur(10px);
}
.tg-top-in {
  max-width: 1120px; margin: 0 auto; min-height: 52px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.tg-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: #102b48; text-decoration: none; font-weight: 800; font-size: 15px;
  min-width: 0; min-height: 44px;
}
.tg-brand-name { white-space: nowrap; }
.tg-brand-sep { color: #c4dced; font-weight: 400; }
.tg-brand-sub { color: #3f5f7d; font-weight: 600; white-space: nowrap; }
.tg-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tg-link {
  color: #3f5f7d; text-decoration: none; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px;
}
.tg-link:hover { color: #1764dc; background: #eaf4ff; }
.tg-login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: #fff; border: 1px solid #cfe0f2;
  color: #0f4bb0; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.tg-login:hover { background: #eaf4ff; border-color: #1764dc; }

/* ---------- 主体 ---------- */
.tg-main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 32px; }

.tg-title {
  margin: 0; font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em;
  color: #102b48;
}
.tg-title .tg-t1, .tg-title .tg-t2 { display: inline-block; }
.tg-title .tg-t2 { color: #0f4bb0; margin-left: .5em; }
.tg-sub { margin: 8px 0 0; color: #3f5f7d; font-size: 14px; }

/* ---------- 场景标签 ---------- */
.tg-tabrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 14px;
}
.tg-tabs {
  display: flex; gap: 8px; flex: 1 1 420px; min-width: 0;
}
.tg-tab {
  flex: 1 1 0; min-width: 0; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 12px; border-radius: 11px; cursor: pointer;
  background: #fff; border: 1px solid #dbe9f4; color: #3f5f7d;
  font-size: 14px; font-weight: 700; font-family: inherit;
}
.tg-tab:hover { border-color: #b7d3ec; color: #1764dc; }
.tg-tab.is-on {
  background: linear-gradient(135deg, #2d6ef0, #1550c8);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(23, 100, 220, .75);
}
.tg-tab-ic { font-size: 13px; opacity: .9; }
.tg-demo-note {
  margin: 0; flex: 0 0 auto; color: #4f6b87; font-size: 12.5px; font-weight: 600;
  background: #fff; border: 1px solid #e3eef8; border-radius: 999px; padding: 6px 12px;
}

/* ---------- 布局 ---------- */
.tg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 16px; align-items: start; }
.tg-stage { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 卡片 ---------- */
.tg-card {
  background: #fff; border: 1px solid #e3eef8; border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: 0 14px 30px -26px rgba(13, 34, 66, .45);
}
.tg-cardhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tg-h2 { margin: 0; font-size: 16px; font-weight: 800; color: #102b48; }
.tg-day { margin-left: auto; color: #4f6b87; font-size: 12px; font-weight: 600; }
.tg-note { margin: 0 0 12px; color: #3f5f7d; font-size: 12.5px; line-height: 1.6; }

/* ---------- 四个统计 ---------- */
.tg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tg-stat {
  background: #f5f9fd; border: 1px solid #e8f1fa; border-radius: 13px;
  padding: 11px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.tg-k { color: #3f5f7d; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tg-v { color: #102b48; font-size: 12px; font-weight: 600; }
.tg-v b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tg-stat--warn { background: #fff6ec; border-color: #f6d3ab; }
.tg-stat--warn .tg-k,
.tg-stat--warn .tg-v b { color: #b45309; }
/* "待录入"数字可点：直接展开待录名单（机构场景） */
.tg-stat--btn { font-family: inherit; text-align: left; cursor: pointer; }
.tg-stat--btn:hover { border-color: #e8b57c; background: #fff2e2; }

/* ---------- 待录名单 ---------- */
.tg-prow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: #fbfdff; border: 1px solid #e8f1fa; border-radius: 14px;
  padding: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  min-height: 64px;
}
.tg-prow:hover { border-color: #b7d3ec; background: #f5f9fd; }
.tg-prow--static { cursor: default; }
.tg-prow--static:hover { border-color: #e8f1fa; background: #fbfdff; }
.tg-av {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: #eaf4ff; color: #1764dc; font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tg-pmain { min-width: 0; display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; }
.tg-pname { font-size: 14.5px; font-weight: 800; color: #102b48; }
.tg-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  background: #fff1e0; border: 1px solid #f6c99a; color: #b45309;
  font-size: 11px; font-weight: 700; font-style: normal; vertical-align: 2px;
}
.tg-badge.is-done { background: #e8f7ee; border-color: #b6e3c8; color: #166534; }
.tg-pmeta { color: #3f5f7d; font-size: 12.5px; }
.tg-pmeta b { color: #102b48; font-weight: 800; }
.tg-pmeta--2 { color: #4f6b87; }
.tg-pmore { flex: none; color: #1764dc; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.tg-detail { margin-top: 10px; padding: 12px; border-radius: 12px; background: #f5f9fd; border: 1px solid #e8f1fa; }
.tg-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.tg-dl > div { min-width: 0; }
.tg-dl dt { color: #4f6b87; font-size: 11.5px; font-weight: 700; }
.tg-dl dd { margin: 1px 0 0; color: #102b48; font-size: 13px; font-weight: 600; }
.tg-dd-warn { color: #b45309 !important; }

.tg-more {
  margin-top: 12px; width: 100%; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #f5f9fd; border: 1px solid #e3eef8; border-radius: 12px;
  color: #1764dc; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.tg-more:hover { background: #eaf4ff; border-color: #b7d3ec; }
.tg-more--ghost { background: #fff; color: #3f5f7d; border-style: dashed; }
.tg-more--ghost:hover { color: #1764dc; }

.tg-all { margin-top: 10px; overflow-x: auto; }
.tg-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tg-table th, .tg-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eef5fb; white-space: nowrap; }
.tg-table thead th { color: #4f6b87; font-size: 11.5px; font-weight: 700; background: #f7fbfe; }
.tg-table tbody th { color: #102b48; font-weight: 800; }
.tg-table td { color: #3f5f7d; }
.tg-table td b { color: #102b48; }

/* ---------- 柱图 ---------- */
.tg-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 132px; }
.tg-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.tg-bar-v { font-size: 12px; font-weight: 800; color: #102b48; line-height: 1; }
.tg-bar-b { width: 100%; max-width: 34px; border-radius: 7px 7px 4px 4px; background: linear-gradient(180deg, #6ea6f5, #2d6ef0); min-height: 8px; }
.tg-bar-d { font-size: 11px; color: #4f6b87; font-weight: 600; white-space: nowrap; }

/* ---------- 折叠 ---------- */
.tg-card--fold { padding: 0; }
.tg-fold {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 12px 16px; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.tg-fold-ic {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #eaf4ff; color: #1764dc; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.tg-fold-t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 800; color: #102b48; }
.tg-fold-t em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: #4f6b87; margin-top: 2px; }
.tg-fold-arrow { flex: none; color: #8aa4bb; font-size: 18px; }
.tg-ai { padding: 0 16px 16px; }
.tg-ai-tag {
  margin: 0 0 6px; display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: #eaf4ff; color: #0f4bb0; font-size: 11px; font-weight: 700;
}
.tg-ai-body { margin: 0; color: #102b48; font-size: 13.5px; line-height: 1.7; }
.tg-ai-foot { margin: 8px 0 0; color: #4f6b87; font-size: 12px; }

/* ---------- 教练表单 ---------- */
.tg-form { margin-top: 12px; padding: 14px; border-radius: 13px; background: #f7fbfe; border: 1px solid #e3eef8; }
.tg-field { margin-bottom: 12px; }
.tg-field label { display: block; font-size: 12.5px; font-weight: 700; color: #3f5f7d; margin-bottom: 5px; }
.tg-field input, .tg-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #dbe9f4; background: #fff; color: #102b48;
  font: inherit; font-size: 13.5px; line-height: 1.6;
}
.tg-field input[readonly] { background: #f2f8fd; color: #3f5f7d; }
.tg-hint { margin: 4px 0 0; color: #4f6b87; font-size: 11.5px; }
.tg-form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-form-msg { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: #166534; }
.tg-form-msg.is-err { color: #b45309; }

/* ---------- 按钮 ---------- */
.tg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 11px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent;
}
.tg-btn--pri {
  background: linear-gradient(135deg, #2d6ef0, #1550c8); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(23, 100, 220, .8);
}
.tg-btn--pri:hover { filter: brightness(1.05); }
.tg-btn--pri:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; filter: none; }
.tg-btn--ghost { background: #fff; border-color: #dbe9f4; color: #3f5f7d; }
.tg-btn--ghost:hover { border-color: #b7d3ec; color: #1764dc; }
.tg-btn--link {
  min-height: 44px; padding: 0 4px; background: none; border: 0;
  color: #4f6b87; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px;
}
.tg-btn--link:hover { color: #1764dc; }

/* ---------- 学员练题 ---------- */
.tg-qhead { margin: 0 0 8px; color: #4f6b87; font-size: 12px; font-weight: 700; }
.tg-qhead b { color: #1764dc; font-size: 14px; }
.tg-qstem { margin: 0 0 12px; font-size: 15.5px; font-weight: 800; color: #102b48; line-height: 1.5; }
.tg-opts { display: flex; flex-direction: column; gap: 8px; }
.tg-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 8px 12px; border-radius: 11px; cursor: pointer; text-align: left;
  background: #fff; border: 1px solid #dbe9f4; color: #102b48; font: inherit; font-size: 13.5px;
}
.tg-opt:hover:not(:disabled) { border-color: #b7d3ec; background: #f5f9fd; }
.tg-opt:disabled { cursor: default; }
.tg-opt-i {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #f0f6fc; color: #3f5f7d; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.tg-opt.is-right { border-color: #86c9a4; background: #eefaf2; }
.tg-opt.is-right .tg-opt-i { background: #166534; color: #fff; }
.tg-opt.is-wrong { border-color: #f0b787; background: #fff6ec; }
.tg-opt.is-wrong .tg-opt-i { background: #b45309; color: #fff; }
.tg-exp {
  margin: 12px 0 0; padding: 11px 12px; border-radius: 11px;
  background: #f5f9fd; border: 1px solid #e8f1fa; color: #102b48; font-size: 13px; line-height: 1.7;
}
.tg-exp b { color: #1765b8; }
.tg-result { margin: 12px 0 0; font-size: 14px; font-weight: 800; color: #102b48; }
.tg-qhint { margin: 12px 0 0; color: #4f6b87; font-size: 12.5px; }
.tg-qnav { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tg-quizsum {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 11px;
  background: #eaf4ff; border: 1px solid #cfe4fb; color: #0f4bb0; font-size: 12.5px; font-weight: 700;
}

/* ---------- 侧栏 ---------- */
.tg-side-card {
  background: #fff; border: 1px solid #e3eef8; border-radius: 18px; padding: 16px;
  box-shadow: 0 14px 30px -26px rgba(13, 34, 66, .45);
}
.tg-side-sub { margin: 4px 0 12px; color: #4f6b87; font-size: 12px; }
.tg-steps { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tg-steps li { display: flex; gap: 9px; align-items: flex-start; }
.tg-steps b {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: #eaf4ff; color: #1764dc; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.tg-steps strong { display: block; font-size: 13px; font-weight: 800; color: #102b48; }
.tg-steps span span, .tg-steps li > span { color: #3f5f7d; font-size: 12px; line-height: 1.55; }
.tg-side-cta .tg-btn { width: 100%; }
.tg-side-note { margin: 8px 0 0; color: #4f6b87; font-size: 11.5px; text-align: center; }
.tg-state {
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  background: #fff6ec; border: 1px solid #f6d3ab; color: #b45309; font-size: 12px; line-height: 1.6;
}
.tg-state .tg-btn--link { color: #b45309; font-weight: 800; }
.tg-reset { margin: 12px 0 0; text-align: center; }

/* ---------- 手机底部正式操作 ---------- */
.tg-dock { display: none; }

.tg-noscript { border-color: #f6d3ab; background: #fff6ec; }
.tg-noscript p { margin: 0 0 8px; font-size: 13px; color: #b45309; font-weight: 600; }
.tg-noscript a { color: #0f4bb0; font-weight: 800; }

/* ---------- 焦点可见 ---------- */
.tg a:focus-visible,
.tg button:focus-visible,
.tg input:focus-visible,
.tg textarea:focus-visible {
  outline: 2px solid #1764dc; outline-offset: 2px; border-radius: 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .tg-layout { grid-template-columns: minmax(0, 1fr); }
  .tg-title { font-size: 28px; }
}

@media (max-width: 920px) {
  .tg-main { padding: 14px 12px calc(84px + env(safe-area-inset-bottom)); }
  .tg-top-in { padding: 0 12px; }
  .tg-title { font-size: 24px; }
  .tg-sub { font-size: 13px; }
  .tg-tabrow { margin: 12px 0 12px; gap: 8px; }
  .tg-tabs { flex: 1 1 100%; gap: 6px; }
  .tg-tab { padding: 0 8px; font-size: 13px; }
  .tg-tab-ic { display: none; }
  .tg-demo-note { flex: 1 1 100%; text-align: center; font-size: 11.5px; padding: 5px 10px; }
  .tg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-dl { grid-template-columns: minmax(0, 1fr); }
  .tg-card { padding: 14px 13px 16px; border-radius: 16px; }
  .tg-chart { height: 118px; gap: 5px; }

  /* 正式操作移到吸底条，避免遮挡内容 */
  .tg-side-cta, .tg-side-note { display: none; }
  .tg-dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #dbe9f4;
    box-shadow: 0 -10px 26px -20px rgba(13, 34, 66, .45);
  }
  .tg-dock .tg-btn { width: 100%; min-height: 46px; }
}

@media (max-width: 560px) {
  .tg-title { font-size: 22px; }
  .tg-title .tg-t2 { display: block; margin-left: 0; }
  .tg-brand-sub { display: none; }
  .tg-brand-sep { display: none; }
  .tg-link { display: none; }        /* 空间不足先省"返回首页"，绝不省登录 */
  .tg-prow { gap: 9px; padding: 10px; }
  .tg-av { width: 34px; height: 34px; font-size: 13px; }
  .tg-pname { font-size: 13.5px; }
  .tg-pmeta { font-size: 11.5px; }
  .tg-pmore { font-size: 11.5px; }
  .tg-fold-t { font-size: 13px; }
  .tg-qstem { font-size: 14.5px; }
  .tg-bar-v { font-size: 11px; }
  .tg-bar-d { font-size: 10px; }
  .tg-table { font-size: 12px; }
}

@media (max-width: 370px) {
  .tg-main { padding: 12px 10px calc(80px + env(safe-area-inset-bottom)); }
  .tg-title { font-size: 20px; }
  .tg-tab { font-size: 12.5px; min-height: 44px; }
  .tg-stat { padding: 9px 10px; }
  .tg-v b { font-size: 19px; }
  .tg-chart { height: 106px; gap: 4px; }
  .tg-bar-d { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tg * { animation: none !important; transition: none !important; }
  .tg-btn--pri:hover { filter: none; }
}
