/* 影院报名弹窗（疑似跑路看护）——独立注入组件，样式全部 hkcsp- 前缀，不污染原站 Element Plus */
.hkcsp-root {
  --hkcsp-primary: #2b6cf6;
  --hkcsp-primary-dark: #1d54cc;
  --hkcsp-danger: #e5484d;
  --hkcsp-warn: #d97706;
  --hkcsp-text: #1f2329;
  --hkcsp-sub: #646a73;
  --hkcsp-line: #e5e6eb;
  --hkcsp-bg-soft: #f7f8fa;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 右下角浮标 ---------- */
.hkcsp-fab {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 2800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b6cf6, #4a8bff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(43, 108, 246, .32), 0 2px 6px rgba(15, 23, 42, .12);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.hkcsp-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(43, 108, 246, .4); }
.hkcsp-fab:active { transform: translateY(0); }
.hkcsp-fab[hidden] { display: none !important; }
.hkcsp-fab svg { width: 18px; height: 18px; }
.hkcsp-fab-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #fff;
  color: #2b6cf6;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.hkcsp-fab.is-pulse { animation: hkcsp-pulse 2.4s ease-in-out 2; }
@keyframes hkcsp-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(43, 108, 246, .32); }
  50% { box-shadow: 0 0 0 10px rgba(43, 108, 246, .12), 0 10px 26px rgba(43, 108, 246, .32); }
}

/* ---------- 遮罩 & 弹窗 ---------- */
.hkcsp-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(16, 24, 40, .52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: hkcsp-fade .18s ease both;
}
.hkcsp-mask[hidden] { display: none !important; }
@keyframes hkcsp-fade { from { opacity: 0 } to { opacity: 1 } }

.hkcsp-modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(8, 16, 40, .28), 0 2px 10px rgba(8, 16, 40, .08);
  overflow: hidden;
  animation: hkcsp-rise .22s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes hkcsp-rise { from { opacity: 0; transform: translateY(14px) scale(.985) } to { opacity: 1; transform: none } }

.hkcsp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8f959e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.hkcsp-close:hover { background: #f2f3f5; color: #1f2329; }

.hkcsp-head {
  display: flex;
  gap: 12px;
  padding: 22px 52px 16px 22px;
  border-bottom: 1px solid #f0f1f3;
  background: linear-gradient(180deg, #f7f9ff, #fff);
}
.hkcsp-alert-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(229, 72, 77, .1);
  color: var(--hkcsp-danger);
}
.hkcsp-alert-icon svg { width: 20px; height: 20px; }
.hkcsp-head h3 {
  margin: 2px 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--hkcsp-text);
  letter-spacing: .2px;
}
.hkcsp-head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--hkcsp-sub);
}

.hkcsp-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 6px;
}
.hkcsp-body::-webkit-scrollbar { width: 8px; }
.hkcsp-body::-webkit-scrollbar-thumb { background: #dfe1e6; border-radius: 4px; }

.hkcsp-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hkcsp-text);
}
.hkcsp-section em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: #8f959e;
}

/* ---------- 影院卡片 ---------- */
.hkcsp-cinemas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.hkcsp-cinema {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--hkcsp-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.hkcsp-cinema:hover { border-color: #c3d4ff; background: #fafbff; }
.hkcsp-cinema.is-active {
  border-color: var(--hkcsp-primary);
  background: #f5f8ff;
  box-shadow: 0 0 0 3px rgba(43, 108, 246, .1);
}
.hkcsp-radio {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c9cdd4;
  border-radius: 50%;
  background: #fff;
  transition: border-color .16s ease;
}
.hkcsp-cinema.is-active .hkcsp-radio { border: 5px solid var(--hkcsp-primary); }
.hkcsp-cinema-main { flex: 1 1 auto; min-width: 0; }
.hkcsp-cinema-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hkcsp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hkcsp-cinema-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #8f959e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hkcsp-chip {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
.hkcsp-chip.dead { background: rgba(229, 72, 77, .1); color: #d13438; }
.hkcsp-chip.suspect { background: rgba(217, 119, 6, .12); color: #b45309; }
.hkcsp-chip.signed { background: rgba(43, 108, 246, .1); color: #2b6cf6; }

/* ---------- 表单 ---------- */
.hkcsp-form { display: block; }
.hkcsp-form[hidden] { display: none !important; }
.hkcsp-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hkcsp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hkcsp-label em { font-style: normal; color: #8f959e; font-weight: 400; }

.hkcsp-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hkcsp-kind {
  padding: 7px 12px;
  border: 1px solid var(--hkcsp-line);
  border-radius: 9px;
  background: #fff;
  color: #4e5969;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .16s ease;
}
.hkcsp-kind:hover { border-color: #c3d4ff; color: #2b6cf6; }
.hkcsp-kind.is-active {
  border-color: var(--hkcsp-primary);
  background: rgba(43, 108, 246, .07);
  color: var(--hkcsp-primary);
  font-weight: 600;
}

.hkcsp-input, .hkcsp-textarea, .hkcsp-date {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--hkcsp-line);
  border-radius: 9px;
  background: #fff;
  color: var(--hkcsp-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.hkcsp-input::placeholder, .hkcsp-textarea::placeholder { color: #b8bcc4; }
.hkcsp-input:focus, .hkcsp-textarea:focus, .hkcsp-date:focus {
  border-color: var(--hkcsp-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 246, .12);
}
.hkcsp-textarea { min-height: 64px; resize: vertical; line-height: 1.6; }

.hkcsp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hkcsp-grid + .hkcsp-field { margin-top: 14px; }
.hkcsp-field { margin-bottom: 14px; }
.hkcsp-field:last-child { margin-bottom: 8px; }
.hkcsp-hint { margin-top: 6px; font-size: 11.5px; color: #8f959e; }

.hkcsp-error {
  display: none;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(229, 72, 77, .08);
  color: #d13438;
  font-size: 12px;
  line-height: 1.5;
}
.hkcsp-error.is-show { display: block; }

/* ---------- 结果态 ---------- */
.hkcsp-success { padding: 26px 4px 18px; text-align: center; }
.hkcsp-success[hidden] { display: none !important; }
.hkcsp-check {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 165, 90, .1);
  color: #1ea55a;
}
.hkcsp-check svg { width: 28px; height: 28px; }
.hkcsp-success h4 { margin: 0 0 6px; font-size: 16px; color: var(--hkcsp-text); }
.hkcsp-success p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--hkcsp-sub); }
.hkcsp-ticket {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--hkcsp-bg-soft);
  color: #4e5969;
  font-size: 12px;
  letter-spacing: .4px;
}

/* ---------- 底部 ---------- */
.hkcsp-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #f0f1f3;
  background: #fff;
}
.hkcsp-foot[hidden] { display: none !important; }
.hkcsp-foot-note {
  margin-right: auto;
  font-size: 11.5px;
  color: #a5a9b0;
}
.hkcsp-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .16s ease;
}
.hkcsp-btn.ghost { background: #fff; border-color: var(--hkcsp-line); color: #4e5969; }
.hkcsp-btn.ghost:hover { border-color: #c9cdd4; background: #fafafa; }
.hkcsp-btn.primary {
  background: linear-gradient(135deg, #2b6cf6, #4a8bff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(43, 108, 246, .26);
}
.hkcsp-btn.primary:hover { box-shadow: 0 8px 20px rgba(43, 108, 246, .34); }
.hkcsp-btn.primary:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.hkcsp-btn[hidden] { display: none !important; }

/* ---------- 移动端 ---------- */
@media (max-width: 560px) {
  .hkcsp-mask { padding: 0; align-items: flex-end; }
  .hkcsp-modal {
    max-width: none;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    animation: hkcsp-sheet .24s cubic-bezier(.22, .8, .3, 1) both;
  }
  @keyframes hkcsp-sheet { from { transform: translateY(36px); opacity: 0 } to { transform: none; opacity: 1 } }
  .hkcsp-grid { grid-template-columns: 1fr; }
  .hkcsp-fab { right: 14px; bottom: 16px; height: 40px; padding: 0 14px 0 12px; font-size: 13px; }
  .hkcsp-head { padding: 18px 46px 14px 18px; }
  .hkcsp-body { padding: 16px 18px 4px; }
  .hkcsp-foot { padding: 12px 18px 16px; }
  .hkcsp-foot-note { display: none; }
}
