/* =========================================================================
 * 申请加入弹窗（H5）· 社区官网专用
 * 作用域 .join-modal，沿用社区橙红/米白配色，不依赖后台样式。
 * ========================================================================= */
.join-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.join-modal[hidden] { display: none !important; }
.join-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 15, 0.55);
  backdrop-filter: blur(3px);
}
.join-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: #FFFDF9;
  color: #1A1A1A;
  border: 1px solid #E7E0D8;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(23, 19, 15, 0.24);
  padding: clamp(22px, 4vw, 38px);
}
.join-modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #8A8A8A;
  cursor: pointer;
  border-radius: 8px;
}
.join-modal-x:hover { background: #F5F0EB; color: #1A1A1A; }
.join-modal-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #C5330F;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.join-modal-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.join-modal-intro {
  margin: 0 0 22px;
  color: #57534E;
  font-size: 14.5px;
  line-height: 1.8;
}
.join-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.join-choice-card {
  border: 1px solid #E7E0D8;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.join-choice-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #C5330F;
}
.join-choice-card h3 { margin: 0; font-size: 18px; }
.join-choice-card p { margin: 0; color: #6B6560; font-size: 13px; line-height: 1.75; }
.join-qr-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0; }
.join-qr-wrap img { width: 148px; height: 148px; object-fit: contain; border: 1px solid #E7E0D8; border-radius: 8px; background: #fff; }
.join-qr-wrap img[hidden] { display: none; }
.join-qr-empty { color: #8A8A8A; font-size: 12px; line-height: 1.7; text-align: center; }
.join-qr-empty[hidden] { display: none; }
.join-btn {
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.join-btn-primary { background: #E8401C; color: #fff; }
.join-btn-primary:hover { background: #C5330F; }
.join-btn-ghost { background: transparent; border-color: #DED7CE; color: #57534E; }
.join-btn-ghost:hover { border-color: #1A1A1A; color: #1A1A1A; }
.join-btn:disabled { opacity: .6; cursor: not-allowed; }
.join-fineprint { font-size: 11.5px !important; color: #8A8A8A !important; }
.join-form { margin-top: 4px; }
.join-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3A3531;
}
.join-form-grid label em { color: #E8401C; font-style: normal; }
.join-form-grid input,
.join-form-grid textarea {
  width: 100%;
  border: 1px solid #E2DCD3;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #1A1A1A;
  background: #fff;
  outline: none;
}
.join-form-grid input:focus,
.join-form-grid textarea:focus { border-color: #E8401C; box-shadow: 0 0 0 3px rgba(232, 64, 28, .1); }
.join-form-grid textarea { resize: vertical; line-height: 1.7; }
.join-span2 { grid-column: 1 / -1; }
.join-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #6B6560;
}
.join-consent input { margin-top: 3px; }
.join-error { min-height: 18px; margin: 8px 0 0; color: #B42318; font-size: 12.5px; }
.join-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.join-success { text-align: center; padding: 8px 0 4px; }
.join-success-mark {
  width: 44px; height: 44px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #E9F5EC; color: #1F7A3D;
  font-size: 22px; font-weight: 700;
}
.join-success h3 { margin: 0 0 8px; font-size: 20px; }
.join-success p { margin: 0 0 14px; color: #57534E; font-size: 13.5px; line-height: 1.8; }
.join-qr-tip { color: #57534E; font-size: 12.5px; }
.join-success .join-qr-wrap img { width: 136px; height: 136px; }
body.join-open { overflow: hidden; }

@media (max-width: 720px) {
  .join-modal { padding: 12px; align-items: flex-end; }
  .join-modal-card { max-height: 92vh; border-radius: 16px 16px 0 0; padding: 20px 18px 26px; }
  .join-choice { grid-template-columns: 1fr; }
  .join-form-grid { grid-template-columns: 1fr; }
  .join-qr-wrap img { width: 128px; height: 128px; }
}
