/* ========================================
   modal.css · 3 类 Modal 样式
   来源:开发文档 §5
   ======================================== */

/* === 自助报名 modal(底部弹出 · register-modal) === */
.register-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.register-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.register-modal__sheet {
  width: 100%;
  max-width: 480px;
  max-height: 96vh;  /* 增大,避免内容折叠 */
  background: var(--gradient-main);
  padding-bottom: 40px;  /* 底部留白,防按钮贴底 */
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 32px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(25, 211, 255, 0.2);
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}
.register-modal.show .register-modal__sheet {
  transform: translateY(0);
}
.register-modal__handle {
  width: 36px;
  height: 4px;
  background: rgba(234, 246, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto var(--space-4);
}
.register-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.05em;
}
.register-modal__sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

/* register-modal 内的字段复用 base.css .field 样式 */
.register-modal .field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.register-modal .field__label {
  font-size: var(--fs-tiny);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: var(--fw-medium);
}
.register-modal .field__label .required {
  color: var(--color-red-orange);
  margin-left: 2px;
}
.register-modal .field input,
.register-modal .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(234, 246, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.register-modal .field input:focus,
.register-modal .field textarea:focus {
  border-color: var(--color-cyan-light);
}
.register-modal .field textarea {
  min-height: 80px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}
.register-modal .field input::placeholder,
.register-modal .field textarea::placeholder {
  color: var(--text-tertiary);
}

/* === register-modal 美化(用户需求 1 · 与 lm 一致) === */
.register-modal__topbar {
  height: 4px;
  background: linear-gradient(90deg, #00A3FF 0%, #19D3FF 50%, #FFD36A 100%);
}
.register-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.register-modal__close:active { background: rgba(255, 255, 255, 0.3); }

.register-modal__hero {
  position: relative;
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.register-modal__hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.register-modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 14, 31, 0.3) 0%,
    rgba(5, 14, 31, 0.7) 70%,
    rgba(14, 41, 82, 0.95) 100%
  );
  z-index: 1;
}
.register-modal__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 20px;
}
.register-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(25, 211, 255, 0.2);
  border: 1px solid rgba(25, 211, 255, 0.5);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-l);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  backdrop-filter: blur(12px);
}

.register-modal__body {
  padding: 24px 24px 28px;
}

/* 注册提交按钮(美化的主 CTA) */
.register-submit {
  margin-top: 24px;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #00A3FF 0%, #0B6CFF 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 24px rgba(0, 163, 255, 0.4),
    0 2px 6px rgba(11, 108, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}
.register-submit:active { transform: scale(0.98); }
.register-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.register-cancel {
  margin-top: 12px;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.register-cancel:hover { color: rgba(255, 255, 255, 0.9); }

/* ============================================== */
/* === 全屏 modal 基础 === */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
}
.modal__sheet {
  width: 92%;
  max-width: 480px;
  max-height: 95vh;  /* 增大,避免内容被截断 */
  background: var(--gradient-main);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--card-border);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal.show .modal__sheet {
  transform: translateY(0) scale(1);
}
.modal--vip .modal__sheet {
  border: 2px solid var(--card-border-vip);
  background: linear-gradient(180deg, rgba(255, 211, 106, 0.08) 0%, var(--bg-main) 50%);
  box-shadow: var(--shadow-glow-gold);
}
.modal--success .modal__sheet {
  background: var(--gradient-hero);
  border: none;
  text-align: center;
  color: #fff;
}
.modal--success .modal__sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.svg') center/cover;
  opacity: 0.5;
  pointer-events: none;
  border-radius: var(--radius-xl);
}
.modal__sheet > * {
  position: relative;
  z-index: 1;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal__close:active { background: rgba(255, 255, 255, 0.25); }

.modal__header {
  padding: 24px 20px 16px;
}
.modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.modal__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.modal__body {
  padding: 0 20px 24px;
}

/* === M1 确认参会 === */
.confirm-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(25, 211, 255, 0.1);
  border: 1px solid rgba(25, 211, 255, 0.3);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-cyan-light);
  margin-bottom: 16px;
}
.confirm-tip::before {
  content: "✓";
  font-weight: 700;
}
.readonly-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 246, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 4px 0;
  margin-bottom: 16px;
}
.readonly-row {
  display: flex;
  padding: 10px 14px;
  border-bottom: 1px dashed rgba(234, 246, 255, 0.06);
  font-size: 14px;
}
.readonly-row:last-child { border-bottom: none; }
.readonly-row__label {
  width: 64px;
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}
.readonly-row__value {
  flex: 1;
  color: var(--text-primary);
}
.confirm-section-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 16px 0 8px;
  letter-spacing: 0.05em;
}
.confirm-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 246, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.confirm-field__label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.confirm-field__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(25, 211, 255, 0.1);
  color: var(--color-cyan-light);
  border-radius: var(--radius-pill);
  font-size: 12px;
  margin-top: 4px;
}
.confirm-field__add:active {
  background: rgba(25, 211, 255, 0.2);
}
.companion-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
}
.companion-form input {
  height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(234, 246, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
}
.radio-group, .checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.radio-item, .check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}
.radio-item input, .check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-cyan-light);
}
.confirm-field textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 246, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  resize: vertical;
  margin-top: 4px;
}

/* === M2 提交成功 === */
.success-modal__sheet {
  padding: 56px 32px;
}
.success-modal__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.3);
}
.success-modal__icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
  stroke-width: 3;
}
.success-modal__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.success-modal__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}
.success-modal__qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
}
.success-modal__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.success-modal__qr-tip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* === M3 VIP 晚宴 === */
.vip-section {
  background: rgba(255, 211, 106, 0.08);
  border: 1px solid rgba(255, 211, 106, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.vip-section__title {
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.vip-section__line {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.vip-section__line strong {
  color: var(--color-gold);
  font-weight: 600;
}
.vip-tablemate {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(234, 246, 255, 0.08);
  font-size: 14px;
}
.vip-tablemate:last-child { border-bottom: none; }
.vip-tablemate__name {
  font-weight: 500;
  color: #fff;
}
.vip-tablemate__org {
  font-size: 12px;
  color: var(--text-muted);
}
.vip-schedule-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(234, 246, 255, 0.06);
  font-size: 14px;
}
.vip-schedule-row:last-child { border-bottom: none; }
.vip-schedule-row__time {
  width: 60px;
  color: var(--color-gold);
  font-family: var(--font-num);
  font-weight: 500;
  flex-shrink: 0;
}
.vip-schedule-row__content {
  flex: 1;
  color: var(--text-primary);
}

.vip-denied {
  text-align: center;
  padding: 24px 0;
}
.vip-denied__title {
  font-size: 18px;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.vip-denied__msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.vip-denied__contact {
  background: rgba(255, 211, 106, 0.08);
  border: 1px solid rgba(255, 211, 106, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14px;
}
.vip-denied__contact strong {
  color: var(--color-gold);
}

/* === M4 下载参会函引导 === */
.download-modal__sheet {
  padding: 28px 24px;
}
.download-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.download-option:active {
  background: rgba(255, 255, 255, 0.05);
}
.download-option__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(25, 211, 255, 0.15);
  color: var(--color-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.download-option__title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.download-option__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === 签到二维码 modal === */
.checkin-modal__sheet {
  text-align: center;
  padding: 32px 24px;
}
.checkin-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.checkin-modal__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.checkin-modal__qr {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
}
.checkin-modal__qr-svg {
  width: 100%;
  height: 100%;
}
.checkin-modal__name {
  font-size: 14px;
  color: var(--text-secondary);
}
.checkin-modal__name strong {
  color: var(--color-cyan-light);
}