/* ============================================================
   10knet · 预约演示弹窗 (Book a Demo Modal)
   V2.53 — 全站共享样式，被 13 个页面引用
   设计基调：深色弹窗 + 站点橙(--orange #EE5F27)
   ============================================================ */

/* ---------- 遮罩层 ---------- */
.bk-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  opacity: 0;
  transition: opacity .22s ease;
}
.bk-overlay.is-open{ display: flex; opacity: 1; }

/* ---------- 弹窗主体 ---------- */
.bk-modal{
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #1c1c1c 0%, #161616 100%);
  color: #fff;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.30);
  padding: 34px 38px 30px;
  transform: translateY(12px) scale(.985);
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
  /* 安全区（移动端刘海/胶囊条） */
  padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
}
.bk-overlay.is-open .bk-modal{ transform: translateY(0) scale(1); }

/* ---------- 关闭按钮 ---------- */
.bk-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid transparent;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  z-index: 2;
}
.bk-close:hover{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.bk-close svg{ width: 14px; height: 14px; }

/* ---------- 英文眉标 ---------- */
.bk-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange, #EE5F27);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bk-eyebrow::before{
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange, #EE5F27);
}

/* ---------- 标题 / 副文 ---------- */
.bk-title{
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #fff;
}
.bk-sub{
  font-size: 14px;
  color: #b8b8b8;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ---------- 字段栅格 ---------- */
.bk-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.bk-field{ display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bk-field.full{ grid-column: 1 / -1; }
.bk-field > label{
  font-size: 13px;
  color: #b8b8b8;
  font-weight: 500;
}
.bk-label-req{ color: var(--orange, #EE5F27); margin-left: 2px; }
.bk-label-opt{ color: #8a8a8a; font-weight: 400; margin-left: 4px; font-size: 12px; }

/* ---------- 输入框 ---------- */
.bk-input{
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  /* iOS 自动放大字号防护 */
  -webkit-text-size-adjust: 100%;
}
.bk-input::placeholder{ color: #8a8a8a; }
.bk-input:hover{ border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.bk-input:focus{
  outline: none;
  border-color: var(--orange, #EE5F27);
  background: rgba(238,95,39,.06);
  box-shadow: 0 0 0 3px rgba(238,95,39,.14);
}
/* 校验失败态 */
.bk-input.is-invalid{
  border-color: #e2543f;
  box-shadow: 0 0 0 3px rgba(226,84,63,.14);
}

/* 字段下方的辅助说明小字（V2.55 一句话业务介绍） */
.bk-hint{
  margin: 5px 0 0;
  font-size: 11.5px;
  color: #8a8a8a;
  line-height: 1.5;
}

/* ---------- 兴趣多选 chip ---------- */
.bk-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.bk-tag{
  cursor: pointer;
  user-select: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #b8b8b8;
  font-size: 13px;
  transition: all .15s ease;
}
.bk-tag:hover{ border-color: rgba(255,255,255,.18); color: #e6e6e6; }
.bk-tag.is-on{
  background: rgba(238,95,39,.14);
  border-color: var(--orange, #EE5F27);
  color: #ff8a4c;
}

/* ---------- 提交按钮 ---------- */
.bk-cta-wrap{ margin-top: 22px; }
.bk-cta{
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #ff7a3a 0%, #ff5b14 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 10px 24px rgba(255,106,44,.30), 0 2px 4px rgba(255,106,44,.15);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.bk-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255,106,44,.40), 0 4px 8px rgba(255,106,44,.18);
}
.bk-cta:active{ transform: translateY(0); filter: brightness(.96); }
.bk-cta:disabled{
  filter: grayscale(.4) brightness(.85);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- 底部说明 ---------- */
.bk-foot{
  margin-top: 14px;
  font-size: 12.5px;
  color: #8a8a8a;
  line-height: 1.55;
}
.bk-foot .bk-lock{
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
  opacity: .8;
}

/* ---------- 成功态 ---------- */
.bk-success{ display: none; text-align: center; padding: 18px 0 6px; }
.bk-success.is-on{ display: block; }
.bk-success .bk-check{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(238,95,39,.16);
  color: var(--orange, #EE5F27);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.bk-success h3{ margin: 0 0 8px; font-size: 20px; color: #fff; }
.bk-success p{ margin: 0; font-size: 13.5px; color: #b8b8b8; line-height: 1.6; }
.bk-success .bk-again{
  margin-top: 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #e6e6e6;
  padding: 9px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bk-success .bk-again:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }

/* ---------- footer 触发器（保持原有 a 样式，仅加手型+hover） ---------- */
a[data-book-demo]{ cursor: pointer; }

/* ============================================================
   V2.54 · 顶部导航「预约演示」入口
   桌面：资源下拉（.nav-submenu）
   移动：汉堡抽屉（.nav-drawer）
   两处均复用 data-book-demo 属性，由 book-demo.js 统一触发
   ============================================================ */

/* ---------- 桌面：资源下拉里的预约演示项 ---------- */
.nav-submenu a.nav-book-cta{
  position: relative;
  margin-top: 4px;
  padding-left: 20px !important;
  background: linear-gradient(135deg, rgba(238,95,39,.09) 0%, rgba(238,95,39,.03) 100%);
  border-top: 1px solid rgba(238,95,39,.18);
}
.nav-submenu a.nav-book-cta::before{
  content: "";
  position: absolute;
  left: 10px;
  top: 24%;
  bottom: 24%;
  width: 3px;
  border-radius: 2px;
  background: var(--orange, #EE5F27);
}
.nav-submenu a.nav-book-cta strong{
  color: var(--orange, #EE5F27);
}
.nav-submenu a.nav-book-cta:hover{
  background: rgba(238,95,39,.13);
}

/* ---------- 移动：汉堡抽屉里的预约演示项 ---------- */
/* V2.74 修复：与下方链接（.nav-drawer a）字体+间距完全一致，仅保留橙色文字。
   已移除：橙色背景渐变、border-top、padding-left:14px!important、flex 布局、::after -> 箭头 */
.nav-drawer nav a.nav-drawer-book-cta{
  color: var(--orange, #EE5F27);
}
.nav-drawer nav a.nav-drawer-book-cta::after{
  content: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px){
  .bk-overlay{ padding: 16px; align-items: flex-start; padding-top: max(24px, env(safe-area-inset-top, 0px)); }
  .bk-modal{ padding: 28px 22px 24px; border-radius: 16px; }
  .bk-title{ font-size: 24px; }
  .bk-grid{ grid-template-columns: 1fr; gap: 12px; }
  .bk-cta{ height: 50px; }
}

/* ---------- 矮屏（笔记本/横屏手机） ---------- */
@media (max-height: 700px){
  .bk-modal{ padding-top: 26px; padding-bottom: 26px; }
  .bk-title{ font-size: 24px; margin-bottom: 8px; }
  .bk-sub{ margin-bottom: 16px; font-size: 13px; }
  .bk-grid{ gap: 11px; margin-bottom: 12px; }
  .bk-cta-wrap{ margin-top: 16px; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce){
  .bk-overlay, .bk-modal{ transition: none; }
  .bk-cta:hover{ transform: none; }
}
