/* guidestudy.css —— v145 智能导学（学生端 H5 风格 + 管理端组件） */

/* ==================== 学生端 ==================== */
.gs-head { margin-bottom: 8px; }

/* 路线切换 chips */
.gs-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.gs-chips .qz-chip small { margin-left: 6px; opacity: .75; }

/* 顶部渐变区（仿导检橙色头图） */
.gs-hero {
  background: linear-gradient(135deg, #ff9a3c 0%, #ff7a1a 60%, #ff8f2e 100%);
  border-radius: 14px; padding: 14px 14px 16px; color: #fff;
  margin-bottom: 12px; box-shadow: 0 4px 14px rgba(255, 122, 26, .28);
}
.gs-hero-top { display: flex; align-items: center; gap: 8px; }
.gs-hero-logo {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none;
}
.gs-hero-top b { font-size: 16px; }
.gs-hero-tag {
  margin-left: auto; font-size: 12px; border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.gs-hero-desc { margin: 8px 0 0; font-size: 12px; opacity: .92; }

/* 学生卡（白底浮在渐变上） */
.gs-card {
  margin-top: 12px; background: #fff; border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 12px; color: #333;
}
.gs-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #ffd9b3, #ffb066);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #a04d00;
}
.gs-card-mid { flex: 1; min-width: 0; }
.gs-card-mid b { font-size: 15px; }
.gs-card-mid small { display: block; color: #999; font-size: 12px; margin: 2px 0 6px; }
.gs-bar { height: 6px; border-radius: 3px; background: #f1f1f1; overflow: hidden; }
.gs-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffa64d, #ff7a1a); }
.gs-card-num { text-align: right; flex: none; }
.gs-card-num b { font-size: 22px; color: #ff7a1a; }
.gs-card-num span { font-size: 12px; color: #999; }

/* 当前站点横幅 */
.gs-banner {
  background: linear-gradient(135deg, #ff9a3c, #ff7a1a);
  border-radius: 14px; padding: 12px 14px; color: #fff; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(255, 122, 26, .28);
}
.gs-banner.is-done { background: linear-gradient(135deg, #35c26b, #1fa856); box-shadow: 0 4px 14px rgba(31, 168, 86, .28); }
.gs-banner-hd { font-size: 12px; opacity: .9; margin-bottom: 6px; }
.gs-banner-main { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.gs-banner-ico { font-size: 22px; flex: none; }
.gs-banner-main b { flex: 1; min-width: 0; }
.gs-banner-seq { font-size: 12px; font-weight: 400; opacity: .92; white-space: nowrap; }
.gs-go {
  flex: none; border: none; cursor: pointer; background: #fff; color: #ff7a1a;
  font-weight: 800; font-size: 14px; border-radius: 999px; padding: 7px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.gs-go:active { transform: scale(.95); }
.gs-banner.is-done .gs-go { display: none; }

/* 小节标题 */
.gs-sec { font-size: 15px; margin: 16px 0 8px; padding-left: 8px; border-left: 3px solid #ff7a1a; }
.gs-sec small { color: #999; font-weight: 400; margin-left: 6px; }

/* 待完成宫格 */
.gs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px) { .gs-grid { grid-template-columns: repeat(3, 1fr); } }
.gs-cell {
  background: #fff; border: 1px solid #f0e6da; border-radius: 12px; padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.gs-cell:active { transform: scale(.96); }
.gs-cell:hover { box-shadow: 0 3px 10px rgba(255, 122, 26, .15); }
.gs-cell-ico { font-size: 28px; line-height: 1; }
.gs-cell-name { font-size: 13px; color: #444; text-align: center; }
.gs-cell-loc { font-size: 11px; color: #ff7a1a; }
.gs-alldone { color: #1fa856; font-size: 13px; background: #eafaf1; border-radius: 10px; padding: 10px 12px; }

/* 学习路径 */
.gs-path { background: #fff; border: 1px solid #f0e6da; border-radius: 12px; padding: 10px 12px; }
.gs-path-row { display: flex; align-items: center; gap: 8px; }
.gs-arr { color: #d9d9d9; font-size: 16px; flex: none; width: 20px; text-align: center; }
.gs-arr.is-done { color: #ffc53d; }
.gs-arr.is-cur { color: #ff7a1a; }
.gs-path-item {
  flex: 1; display: flex; align-items: center; gap: 8px; border: none; background: none;
  padding: 9px 6px; cursor: pointer; border-bottom: 1px dashed #f2f2f2; text-align: left; min-width: 0;
}
.gs-path-row:last-child .gs-path-item { border-bottom: none; }
.gs-path-name { flex: 1; font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-path-item.is-done .gs-path-name { color: #b8b8b8; text-decoration: line-through; }
.gs-path-item.is-cur .gs-path-name { color: #ff7a1a; font-weight: 700; }
.gs-path-ok { color: #ffc53d; font-weight: 800; }
.gs-path-cur {
  color: #fff; background: #ff7a1a; font-size: 11px; border-radius: 999px; padding: 2px 8px;
  animation: gs-pulse 1.6s ease-in-out infinite;
}
@keyframes gs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* 打卡弹窗 */
.gs-ci { text-align: center; padding: 4px 0; }
.gs-ci-ico { font-size: 42px; }
.gs-ci h3 { margin: 6px 0 2px; }
.gs-ci-loc { color: #ff7a1a; font-size: 13px; margin: 0; }
.gs-ci-desc { color: #888; font-size: 13px; margin: 8px 0 0; }
.gs-ci-done { color: #1fa856; font-size: 13px; margin: 8px 0 0; }
.gs-ci-code { display: flex; align-items: center; gap: 8px; margin-top: 14px; text-align: left; }
.gs-ci-code span { flex: none; font-size: 13px; color: #666; }

/* ==================== 管理端 ==================== */
.gs-icon-grid { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.gs-icon-btn {
  border: 1px solid #eee; background: #fafafa; border-radius: 8px; font-size: 17px;
  width: 34px; height: 34px; cursor: pointer;
}
.gs-icon-btn:hover { border-color: #ff7a1a; background: #fff4e8; }

.gs-cls { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 1px solid #eee; border-radius: 8px; padding: 8px 10px; max-height: 140px; overflow: auto; }
.gs-cls label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.gs-cls-all { font-weight: 700; border-bottom: 1px dashed #eee; width: 100%; padding-bottom: 4px; }

.gs-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .gs-pick { grid-template-columns: 1fr; } }
.gs-pick-sel ol { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid #eee; border-radius: 8px; min-height: 120px; max-height: 220px; overflow: auto; }
.gs-pick-sel li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border-bottom: 1px dashed #f2f2f2; font-size: 13px; }
.gs-pick-sel li:last-child { border-bottom: none; }
.gs-pick-ops button { border: none; background: #f5f5f5; border-radius: 6px; cursor: pointer; padding: 2px 7px; margin-left: 3px; font-size: 12px; }
.gs-pick-ops button:hover { background: #ffe8d1; }
.gs-pool-btn {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid #eee; background: #fafafa;
  border-radius: 999px; padding: 4px 10px; margin: 3px 4px 3px 0; cursor: pointer; font-size: 13px;
}
.gs-pool-btn.is-on { background: #fff1e3; border-color: #ffb066; color: #b35a00; }

.gs-route-card { border: 1px solid #f0e6da; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.gs-route-hd { display: flex; align-items: center; gap: 8px; }
.gs-route-hd b { font-size: 14px; }
.gs-route-hd .chip { margin-left: auto; }
.gs-route-sts { margin-top: 8px; font-size: 13px; color: #666; display: flex; flex-wrap: wrap; gap: 2px 0; }
.gs-route-sts span { display: inline-flex; align-items: center; }
.gs-arr-mini { color: #d9d9d9; margin: 0 6px; font-style: normal; }
.gs-mini { letter-spacing: 2px; white-space: nowrap; }
.gs-mini .is-ok { color: #ffc53d; font-weight: 800; }
.gs-mini span { color: #ddd; }

/* v154 按人数分流：分流徽标 / 等待提示 / 站点人流 */
.gs-hero-tag.is-smart { background: rgba(255,255,255,.26); border: 1px solid rgba(255,255,255,.5); }
.gs-banner-wait {
  display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 400;
  background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.gs-banner-wait.is-free { opacity: .88; }
.gs-cell-wait { font-size: 11px; color: #8a8a8a; white-space: nowrap; }
.gs-cell-wait.is-busy { color: #e2701a; font-weight: 700; }
.gs-path-wait { font-size: 11px; color: #e2701a; white-space: nowrap; }
.gs-ci-load { margin: 8px 0 0; font-size: 12px; color: #8a8a8a; }
.gs-ci-load.is-busy { color: #e2701a; }

/* 教师端：站点容量/时长与实时人流 */
.gs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-hint { font-size: 12px; color: #999; margin: 4px 0 0; line-height: 1.5; }
.gs-load-tag { font-size: 11px; border-radius: 999px; padding: 1px 8px; background: #f2f2f2; color: #666; white-space: nowrap; }
.gs-load-tag.is-busy { background: #fff1e3; color: #b35a00; }
.gs-switch-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; }
.gs-switch-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.gs-switch-row .is-off { color: #b0b0b0; }
.gs-load-tag { font-style: normal; }
.chip.chip-info { background: #eaf2ff; color: #1d5bcf; border-color: #cfe0ff; }

/* ==================== v158 进站 / 离站 / 放行 ==================== */

/* 学生端：我在站提示条 */
.gs-live {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #eaf7ff; border: 1px solid #c9e6fb; border-radius: 12px;
  padding: 9px 12px; margin-bottom: 12px; font-size: 13px; color: #17527a;
}
.gs-live b { color: #0d6efd; }
.gs-live small { color: #6b93ae; margin-left: 6px; }
.gs-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #2aa1f2; flex: none;
  box-shadow: 0 0 0 3px rgba(42, 161, 242, .22); animation: gs-pulse 1.6s ease-in-out infinite;
}
.gs-live .btn { margin-left: auto; }

/* 学生端：满员站点 */
.gs-cell.is-full { border-color: #ffc9c9; background: #fff7f7; }
.gs-go[disabled] { cursor: not-allowed; color: #b06a6a; background: #ffecec; box-shadow: none; }

/* 教师端：使用说明 */
.gs-help {
  background: #fbfbfb; border: 1px solid #eee; border-radius: 10px;
  padding: 8px 12px; margin-bottom: 12px; font-size: 13px; color: #555;
}
.gs-help summary { cursor: pointer; font-weight: 700; color: #333; }
.gs-help ol { margin: 8px 0 2px; padding-left: 20px; line-height: 1.8; }
.gs-help li b { color: #d2691e; }

/* 教师端：路线卡状态 */
.gs-route-card.is-off { background: #fcfcfc; opacity: .92; }
.gs-open-num { color: #d2691e; }

/* 教师端：现场调度工具条 */
.gs-v-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gs-v-auto { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #666; }

/* 教师端：站点放行卡 */
.gs-disp-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.gs-disp { border: 1px solid #f0e6da; border-radius: 12px; padding: 10px 12px; background: #fff; }
.gs-disp.is-full { border-color: #ffc9c9; background: #fffafa; }
.gs-disp-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gs-disp-ico { font-size: 20px; }
.gs-disp-cnt { font-style: normal; font-size: 16px; font-weight: 800; color: #d2691e; }
.gs-disp-cnt span { font-size: 12px; font-weight: 400; color: #999; }
.gs-disp-todo { font-size: 12px; color: #999; }
.gs-disp-hd .btn { margin-left: auto; }
.gs-disp-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 13px; }
.gs-pchip {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  border: 1px solid #ffd8b3; background: #fff6ec; color: #8a4b00;
  border-radius: 999px; padding: 3px 10px; font-size: 12px;
}
.gs-pchip:hover { background: #ffe8d1; border-color: #ffb066; }
.gs-pchip i { font-style: normal; color: #b98a5a; font-size: 11px; }

/* 教师端：学生表「当前在站」 */
.gs-here-tag { font-size: 12px; color: #0d6efd; background: #eaf2ff; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.gs-load-tag.is-full { background: #ffecec; color: #c0392b; }
.gs-warn {
  margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  background: #fff7e6; border: 1px solid #ffe1a8; color: #a35b00;
}

