/* MIIGO_COMMUNITY_PUBLISH_MODAL_V1_20260704 */

.miigo-pub-v1-lock {
  overflow: hidden !important;
}

.miigo-pub-v1-mask {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.miigo-pub-v1-sheet {
  width: min(430px, 100vw);
  max-height: 88vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 229, 164, .45), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 60px rgba(15, 23, 42, .30);
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateY(0);
  animation: miigoPubV1Up .22s ease-out;
}

@keyframes miigoPubV1Up {
  from { transform: translateY(26px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

.miigo-pub-v1-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 0 auto 14px;
}

.miigo-pub-v1-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.miigo-pub-v1-titlebox {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.miigo-pub-v1-title {
  font-size: 20px;
  font-weight: 950;
  color: #020617;
  letter-spacing: -.03em;
}

.miigo-pub-v1-sub {
  font-size: 12px;
  font-weight: 750;
  color: #64748b;
}

.miigo-pub-v1-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.miigo-pub-v1-field {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(148, 163, 184, .20);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 12px;
}

.miigo-pub-v1-input,
.miigo-pub-v1-textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-weight: 800;
  box-sizing: border-box;
}

.miigo-pub-v1-input {
  height: 34px;
  font-size: 16px;
}

.miigo-pub-v1-textarea {
  min-height: 92px;
  resize: none;
  font-size: 15px;
  line-height: 1.55;
}

.miigo-pub-v1-input::placeholder,
.miigo-pub-v1-textarea::placeholder {
  color: #94a3b8;
  font-weight: 750;
}

.miigo-pub-v1-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 10px;
}

.miigo-pub-v1-media-title {
  font-size: 14px;
  font-weight: 950;
  color: #0f172a;
}

.miigo-pub-v1-media-count {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  background: #eef2ff;
  border-radius: 999px;
  padding: 5px 9px;
}

.miigo-pub-v1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.miigo-pub-v1-add,
.miigo-pub-v1-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
}

.miigo-pub-v1-add {
  border: 1.5px dashed rgba(2, 6, 23, .20);
  background:
    linear-gradient(135deg, rgba(255, 244, 214, .95), rgba(238, 242, 255, .95)),
    #fff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 22px rgba(15, 23, 42, .06);
}

.miigo-pub-v1-plus {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #020617;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(2, 6, 23, .20);
}

.miigo-pub-v1-add span:last-child {
  font-size: 12px;
  font-weight: 900;
  color: #475569;
}

.miigo-pub-v1-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}

.miigo-pub-v1-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.24);
}

.miigo-pub-v1-gif {
  position: absolute;
  left: 7px;
  bottom: 7px;
  background: rgba(2, 6, 23, .78);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  padding: 4px 7px;
}

.miigo-pub-v1-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.miigo-pub-v1-cancel,
.miigo-pub-v1-submit {
  height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
}

.miigo-pub-v1-cancel {
  flex: 0 0 104px;
  background: #f1f5f9;
  color: #334155;
}

.miigo-pub-v1-submit {
  flex: 1;
  background: #020617;
  color: #fff;
  box-shadow: 0 12px 26px rgba(2, 6, 23, .22);
}

.miigo-pub-v1-submit:disabled {
  opacity: .62;
}

.miigo-pub-v1-tip {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 750;
  color: #64748b;
  text-align: center;
}

.miigo-pub-v1-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 1000003;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  background: rgba(15, 23, 42, .94);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  transition: all .18s ease;
}

.miigo-pub-v1-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* MIIGO_COMMUNITY_PUBLISH_MODAL_LAYER_FIX_V2_20260704
   发帖弹窗上移 + 提高层级 + 底部按钮可见 */
.miigo-pub-v1-mask {
  z-index: 2147483000 !important;
  align-items: flex-end !important;
  box-sizing: border-box !important;
  padding: 24px 0 calc(74px + env(safe-area-inset-bottom)) !important;
}

.miigo-pub-v1-sheet {
  width: min(430px, calc(100vw - 18px)) !important;
  max-height: calc(100vh - 118px) !important;
  border-radius: 28px !important;
  padding-bottom: 16px !important;
  box-sizing: border-box !important;
}

.miigo-pub-v1-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5 !important;
  padding-top: 12px !important;
  padding-bottom: 2px !important;
  background: linear-gradient(180deg, rgba(248,250,252,0), rgba(248,250,252,.96) 26%, rgba(248,250,252,1) 100%) !important;
}

.miigo-pub-v1-toast {
  z-index: 2147483001 !important;
}

#miigoPubV1Mask input,
#miigoPubV1Mask textarea,
#miigoPubV1Mask button {
  touch-action: manipulation;
}
