/* 用户端「申请退款」入口（配合 job-dispute.js）
 * 站点主题色：玫瑰花渐变 --sn-deep → --sn-rose → --sn-amber
 */

/* 我的生成：卡片下方的入口按钮，尺寸对齐站点自带的 .job-id 条 */
.nf-dispute {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 158, 196, 0.34);
  border-radius: 999px;
  background: rgba(255, 158, 196, 0.1);
  color: #ffc9dd;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.nf-dispute:hover {
  background-image: linear-gradient(90deg, var(--sn-deep, #d6336c), var(--sn-rose, #ff9ec4) 58%, var(--sn-amber, #ffb37a));
  border-color: transparent;
  color: #2a0f1c;
}

.nf-dispute:active {
  transform: scale(0.97);
}

.nf-dispute:focus-visible {
  outline: 2px solid rgba(255, 158, 196, 0.75);
  outline-offset: 2px;
}

/* 结果页底部操作条里的按钮，尺寸对齐「尝试更多 / 下载」 */
.nf-dispute--bar {
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  font-size: 0.86rem;
  flex-shrink: 0;
}

/* 状态标签 */
.nf-dispute-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 244, 247, 0.7);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.nf-dispute-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.nf-dispute-pill.is-pending {
  border-color: rgba(255, 179, 122, 0.4);
  background: rgba(255, 179, 122, 0.12);
  color: #ffca9b;
}

.nf-dispute-pill.is-approved {
  border-color: rgba(120, 219, 160, 0.4);
  background: rgba(120, 219, 160, 0.12);
  color: #9be7bd;
}

.nf-dispute-pill.is-rejected {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 244, 247, 0.55);
}

/* 结果页的状态标签也被加上 --bar 的尺寸 */
footer.bar .nf-dispute-pill {
  width: auto;
  height: 40px;
  padding: 0 16px;
  font-size: 0.86rem;
  flex-shrink: 0;
}

/* ---------- 弹窗 ---------- */

.nf-dp {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 4, 7, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nf-dp.is-open {
  display: flex;
}

.nf-dp__card {
  position: relative;
  box-sizing: border-box;
  width: min(440px, 100%);
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 158, 196, 0.2);
  border-radius: 20px;
  background: linear-gradient(180deg, #1b1b20 0%, #15151a 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  color: #fff4f7;
}

.nf-dp__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 244, 247, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nf-dp__x:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nf-dp__x svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
}

.nf-dp__title {
  margin: 0 34px 8px 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nf-dp__lead {
  margin: 0 0 14px;
  color: rgba(255, 244, 247, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

.nf-dp__field {
  display: block;
}

.nf-dp__field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 108px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(9, 9, 12, 0.85);
  color: #fff4f7;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.55;
  resize: vertical;
}

.nf-dp__field textarea:focus {
  outline: none;
  border-color: rgba(255, 158, 196, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 158, 196, 0.14);
}

.nf-dp__field small {
  display: block;
  margin-top: 6px;
  text-align: right;
  color: rgba(255, 244, 247, 0.4);
  font-size: 0.72rem;
}

.nf-dp__err {
  margin: 10px 0 0;
  color: #ff9c9c;
  font-size: 0.78rem;
}

.nf-dp__acts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.nf-dp__ghost,
.nf-dp__hot {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, opacity 0.16s ease, transform 0.12s ease;
}

.nf-dp__ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 244, 247, 0.78);
}

.nf-dp__ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nf-dp__hot {
  border: 0;
  background-image: linear-gradient(90deg, var(--sn-deep, #d6336c), var(--sn-rose, #ff9ec4) 58%, var(--sn-amber, #ffb37a));
  color: #2a0f1c;
}

.nf-dp__hot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nf-dp__ghost:active,
.nf-dp__hot:active:not(:disabled) {
  transform: scale(0.97);
}

/* ---------- 提示条 ---------- */

.nf-dispute-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 9001;
  max-width: min(88vw, 420px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 158, 196, 0.28);
  border-radius: 999px;
  background: rgba(24, 20, 26, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  color: #fff4f7;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nf-dispute-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 480px) {
  .nf-dp__card {
    padding: 18px 16px 14px;
  }

  .nf-dp__acts {
    gap: 8px;
  }

  .nf-dispute-toast {
    bottom: 110px;
  }
}
