/* pages/activity-create.css — 由 pages/activity-create/activity-create.wxss 机械转换 *//* pages/activity-create/activity-create.wxss */

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .nav-placeholder-bar { height: 44px; }

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .form-body {
  padding: var(--space-card) var(--space-page) 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-left: max(var(--space-page), env(safe-area-inset-left));
  padding-right: max(var(--space-page), env(safe-area-inset-right));
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .group {
  margin-bottom: var(--space-card);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .group-badge {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 499.5px;
  font-size: 10px;
  font-weight: 400;
  color: var(--brand-orange);
  background: rgba(228, 90, 27, 0.14);
  border: 0.5px solid rgba(228, 90, 27, 0.45);
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .field {
  width: 100%;
  min-width: 0;
  margin-bottom: 14px;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .field-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 7px;
  min-width: 0;
  line-height: 1.5;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .req { color: var(--danger); }
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .field-hint {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .field-err {
  margin-top: 5px;
  font-size: 11px;
  color: var(--danger);
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--divider);
  color: var(--text-primary);
  font-size: 14px;
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .phone-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0.5px solid var(--divider);
  border-radius: 8px;
  background: var(--bg-elevated);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .phone-input-wrap:focus-within {
  border-color: rgba(228, 90, 27, 0.72);
  box-shadow: 0 0 0 3px rgba(228, 90, 27, 0.12);
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .field-invalid .phone-input-wrap {
  border-color: var(--danger);
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .phone-country-code {
  flex: none;
  margin-left: 12px;
  padding-right: 10px;
  border-right: 1px solid var(--divider);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .emergency-phone-input {
  flex: 1 1 auto;
  width: 0;
  height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35px;
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .phone-field-help {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 10px;
  line-height: 1.55;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 80px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--divider);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}/* 类型/费用胶囊 */
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .capsule-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .capsule {
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 499.5px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 0.5px solid var(--divider);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .capsule-active {
  color: var(--text-primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));
  border-color: transparent;
}/* 封面主题 6 选一 */
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .cover-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .cover-opt {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 60px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  box-sizing: border-box;
  cursor: pointer;
  touch-action: manipulation;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .cover-opt-active {
  border-color: var(--brand-orange);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .cover-opt-name {
  font-size: 11px;
  color: var(--text-primary);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .cover-opt-check {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  color: var(--text-primary);
}

/* 活动照片：首张为封面，上传状态直接覆盖在缩略图底部。 */
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-heading {
  display: block;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-summary {
  display: block;
  max-width: none;
  margin-top: 3px;
  color: var(--brand-gold);
  font-size: 11px;
  text-align: left;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-item,
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-add {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
}
@supports not (aspect-ratio: 1 / 1) {
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-item,
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-add {
    height: 96px;
  }
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-item {
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-add {
  min-height: 92px;
  border: 1px dashed rgba(228, 90, 27, 0.55);
  background: rgba(228, 90, 27, 0.07);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-add:active {
  transform: scale(0.97);
  background: rgba(228, 90, 27, 0.13);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-add-icon {
  font-size: 25px;
  line-height: 1;
  color: var(--brand-orange);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-help {
  margin-top: 7px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(5, 7, 10, 0.78);
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-remove:disabled {
  opacity: 0.45;
  cursor: wait;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 28px;
  padding: 5px 4px;
  border: 0;
  border-radius: 0;
  background: rgba(5, 7, 10, 0.78);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-status-error {
  width: 100%;
  color: #ffd5c5;
  background: rgba(153, 42, 23, 0.88);
  cursor: pointer;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-status-done {
  color: #c7f8db;
  background: rgba(11, 83, 54, 0.82);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -1px;
  animation: activity-photo-spin 0.8s linear infinite;
}
@keyframes activity-photo-spin { to { transform: rotate(360deg); } }

/* 时间 picker */
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .picker-row {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .picker-row picker {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .picker {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--divider);
  color: var(--text-primary);
  font-size: 14px;
}/* stepper */
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .stepper-row {
  display: flex;
  align-items: center;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 0.5px solid var(--divider);
  cursor: pointer;
  touch-action: manipulation;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .stepper-value {
  min-width: 48px;
  text-align: center;
  font-size: 18px;
  color: var(--text-primary);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .stepper-hint { margin-left: 10px; }/* 免责声明 */
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .disclaimer-row {
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .checkbox {
  flex: none;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 5px;
  border: 1px solid var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-primary);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .checkbox-on {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .disclaimer-text {
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

:where(.mp-page[data-route="pages/activity-create/activity-create"]) .submit-tip {
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 4px 0 12px;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .submit-btn {
  min-height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
:where(.mp-page[data-route="pages/activity-create/activity-create"]) .submit-btn-disabled {
  opacity: 0.64;
  pointer-events: none;
}

@media (max-width: 340px) {
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-heading {
    display: block;
  }
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-summary {
    display: block;
    max-width: none;
    margin-top: 3px;
    text-align: left;
  }
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-grid,
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .cover-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .picker-row {
    flex-direction: column;
  }
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .picker-row picker {
    flex: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .activity-photo-spinner {
    animation-duration: 1.8s;
  }
  :where(.mp-page[data-route="pages/activity-create/activity-create"]) .phone-input-wrap {
    transition: none;
  }
}
