/* ============================================
   zhuce.soxue100.com  弹窗 + 表单样式
   ============================================ */

.zhuce-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
  z-index: 99998; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  -webkit-overflow-scrolling: touch;
}
.zhuce-overlay.zhuce-show { opacity: 1; pointer-events: auto; }

.zhuce-modal {
  position: relative; background: #fff; border-radius: 12px;
  width: 90%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  transform: translateY(20px); transition: transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.zhuce-overlay.zhuce-show .zhuce-modal { transform: translateY(0); }

.zhuce-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  border-radius: 50%; background: #E53E3E; color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 500; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 62, 62, .4); z-index: 2;
  padding: 0; font-family: inherit;
}
.zhuce-close:hover { background: #C53030; }

.zhuce-tabs {
  display: flex; border-bottom: 1px solid #E2E8F0;
}
.zhuce-tab {
  flex: 1; padding: 14px 0; background: none; border: none;
  font-size: 15px; color: #64748B; cursor: pointer; position: relative;
  font-weight: 400; transition: color .2s; font-family: inherit;
}
.zhuce-tab.active { color: #2B6CB0; font-weight: 500; }
.zhuce-tab.active::after {
  content: ''; position: absolute; left: 30%; right: 30%; bottom: 0;
  height: 2px; background: #2B6CB0; border-radius: 2px;
}

.zhuce-form { padding: 20px 24px 24px; }
.zhuce-field { margin-bottom: 16px; }
.zhuce-field label {
  display: block; font-size: 13px; color: #475569; margin-bottom: 6px;
}
.zhuce-field label .zhuce-req { color: #E53E3E; margin-left: 2px; }
.zhuce-field label .zhuce-opt { color: #94A3B8; font-weight: 400; font-size: 12px; }

.zhuce-field input,
.zhuce-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid #CBD5E0; border-radius: 8px; font-size: 14px;
  color: #1E293B; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit; -webkit-appearance: none;
}
.zhuce-field input:focus,
.zhuce-field textarea:focus {
  border-color: #2B6CB0; box-shadow: 0 0 0 3px rgba(43, 108, 176, .12);
}
.zhuce-field input::placeholder,
.zhuce-field textarea::placeholder { color: #94A3B8; }
.zhuce-field textarea { resize: vertical; min-height: 80px; }

.zhuce-submit {
  display: block; width: 100%; padding: 12px 0;
  background: linear-gradient(90deg, #2B6CB0 0%, #1E5BB8 100%);
  color: #fff; border: none; border-radius: 8px; font-size: 15px;
  font-weight: 500; cursor: pointer; margin-top: 8px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(43, 108, 176, .25);
  font-family: inherit; letter-spacing: .5px;
}
.zhuce-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(43, 108, 176, .35); }
.zhuce-submit:active { transform: translateY(0); }
.zhuce-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.zhuce-tip {
  font-size: 12px; color: #94A3B8; text-align: center;
  margin: 12px 0 0; line-height: 1.5;
}

.zhuce-result {
  font-size: 13px; text-align: center; margin: 12px 0 0; min-height: 18px;
  transition: color .2s;
}
.zhuce-result.zhuce-ok { color: #2F855A; }
.zhuce-result.zhuce-err { color: #E53E3E; }
.zhuce-result.zhuce-loading { color: #2B6CB0; }

/* 独立页模式（在 <[data-zhuce-auto]> 容器内挂载时去掉弹窗背景） */
.zhuce-page-mount .zhuce-modal {
  position: static; width: 100%; max-width: 100%;
  max-height: none; box-shadow: none;
  transform: none; border-radius: 0;
}

@media (max-width: 480px) {
  .zhuce-form { padding: 18px 18px 22px; }
  .zhuce-tab { font-size: 14px; }
  .zhuce-modal { width: 94%; }
}
