/* ============================================================
   实战师资 /shizhan/ · 在线预约弹窗
   ------------------------------------------------------------
   命名空间 szb-*，全部规则加 #szbMask 前缀（主站 style.css 后加载，
   低特异性选择器会被覆盖 —— 这一点在 /sxzx/ 上已经踩过坑）。
   配色：主站红 #c8282a / 深蓝 #0c548c
   ============================================================ */

#szbMask {
  position: fixed; inset: 0; z-index: 2000000000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 20, 36, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
#szbMask.on { display: flex; }
#szbMask * { box-sizing: border-box; }

#szbMask .szb-card {
  position: relative;
  width: 100%; max-width: 620px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff; border-radius: 12px;
  box-shadow: 0 40px 90px -30px rgba(6, 20, 36, .7);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #243447;
  animation: szbUp .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes szbUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 顶部色条 */
#szbMask .szb-bar {
  height: 4px;
  background: linear-gradient(90deg, #0c548c 0%, #c8282a 100%);
  border-radius: 12px 12px 0 0;
}

#szbMask .szb-hd { position: relative; padding: 22px 34px 0; }
#szbMask .szb-hd h3 {
  margin: 0; font-size: 23px; line-height: 1.35; font-weight: 700; color: #12283f;
  letter-spacing: -.01em;
}
#szbMask .szb-hd p {
  margin: 7px 40px 0 0; font-size: 13.5px; line-height: 1.6; color: #6b7c93;
}
#szbMask .szb-x {
  position: absolute; right: 16px; top: 16px;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 8px; background: transparent;
  color: #93a3b6; font-size: 26px; line-height: 38px; text-align: center;
  cursor: pointer; font-family: inherit;
}
#szbMask .szb-x:hover { background: #f1f5f9; color: #12283f; }

#szbMask .szb-bd { padding: 18px 34px 0; margin: 0; }
#szbMask .szb-f { margin-bottom: 13px; }
#szbMask .szb-f label {
  display: block; margin: 0 0 7px;
  font-size: 14px; font-weight: 600; color: #33465c;
}
#szbMask .szb-f label i { color: #c8282a; font-style: normal; margin-left: 2px; }
#szbMask .szb-f input,
#szbMask .szb-f textarea {
  display: block; width: 100%; height: auto; float: none; margin: 0;
  padding: 11px 14px;
  border: 1px solid #dbe3ec; border-radius: 8px;
  background: #fbfdff; color: #12283f;
  font-family: inherit; font-size: 15.5px; line-height: 1.45;
  box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
#szbMask .szb-f input:focus,
#szbMask .szb-f textarea:focus {
  outline: 0; border-color: #c8282a; background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 40, 42, .12);
}
#szbMask .szb-f input[readonly] {
  background: #f5f8fc; color: #4a5d75; border-color: #e2e9f1; cursor: default;
}
#szbMask .szb-f textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
#szbMask .szb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

#szbMask .szb-err {
  display: none; margin: 0 0 14px;
  padding: 9px 12px; border: 1px solid #f6d5d1; border-radius: 7px;
  background: #fdf0ef; color: #c0392b; font-size: 13.5px;
}

/* .szb-ft 位于 .szb-bd（本身已有 34px 左右内边距）内部，这里不能再加左右 padding */
#szbMask .szb-ft { padding: 4px 0 20px; }
#szbMask .szb-sub {
  display: block; width: 100%; min-height: 54px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: #c8282a; color: #fff;
  font-family: inherit; font-size: 16.5px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 22px -12px rgba(200, 40, 42, .9);
  transition: background .15s;
}
#szbMask .szb-sub:hover { background: #a81f21; }
#szbMask .szb-sub[disabled] { opacity: .62; cursor: default; }
#szbMask .szb-note {
  margin: 11px 0 0; text-align: center;
  font-size: 12.5px; color: #94a3b4;
}

/* 成功态 */
#szbMask .szb-ok { display: none; padding: 10px 34px 40px; text-align: center; }
#szbMask .szb-ok .ico {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 50%; background: #e8f5e9; color: #2e7d32;
  font-size: 40px; line-height: 76px; font-weight: 700;
}
#szbMask .szb-ok h4 { margin: 0; font-size: 22px; font-weight: 700; color: #12283f; }
#szbMask .szb-ok p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.75; color: #6b7c93; }
#szbMask .szb-ok p b { color: #12283f; }
#szbMask .szb-ok p a { color: #12283f; text-decoration: none; border-bottom: 1px dashed #c8282a; }

/* 成功态收起副标题，避免与图标挤在一起 */
#szbMask.done .szb-hd p { display: none; }
#szbMask.done .szb-hd { padding-bottom: 0; text-align: center; }
#szbMask.done .szb-hd h3 { font-size: 21px; color: #2e7d32; letter-spacing: 0; }

/* 列表页顶部预约条 */
.sz-bookbar {
  display: flex; align-items: center; gap: 12px;
  max-width: 1200px; margin: 18px auto 0; padding: 14px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0c548c 0%, #c8282a 100%);
  color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px -14px rgba(12, 84, 140, .9);
}
.sz-bookbar:hover { color: #fff; text-decoration: none; filter: brightness(1.05); }
.sz-bookbar .bb-t { flex: 1; min-width: 0; }
.sz-bookbar .bb-t b { display: block; font-size: 16px; font-weight: 700; }
.sz-bookbar .bb-t em {
  display: block; margin-top: 3px; font-size: 13px; font-style: normal; opacity: .86;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sz-bookbar .bb-btn {
  flex: 0 0 auto; padding: 10px 22px; border-radius: 6px;
  background: #fff; color: #c8282a; font-size: 14px; font-weight: 700;
  white-space: nowrap;
}

/* 手机端：底部抽屉 */
@media (max-width: 640px) {
  #szbMask { padding: 0; align-items: flex-end; }
  #szbMask .szb-card {
    max-width: 100%; max-height: 92vh;
    border-radius: 12px 12px 0 0;
    animation: szbSlide .24s ease;
  }
  @keyframes szbSlide { from { transform: translateY(100%); } to { transform: none; } }
  #szbMask .szb-hd { padding: 22px 20px 0; }
  #szbMask .szb-hd h3 { font-size: 21px; }
  #szbMask .szb-bd { padding: 18px 20px 0; }
  #szbMask .szb-ft { padding: 4px 0 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  #szbMask .szb-f input, #szbMask .szb-f textarea { font-size: 16px; }
  #szbMask .szb-two { grid-template-columns: 1fr; gap: 0; }
  #szbMask .szb-ok { padding: 6px 20px 34px; }
  .sz-bookbar { margin: 12px 15px 0; padding: 12px 15px; flex-wrap: wrap; }
  .sz-bookbar .bb-t em { white-space: normal; }
  .sz-bookbar .bb-btn { width: 100%; text-align: center; }
}
