/* 评论晒图任务页 /activity/task/comment */

.activity-task-comment.page-main {
  gap: 0;
  padding: 30px 0 60px;
  font-family: PingFang SC, sans-serif;
}

.activity-task-comment__wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---------- 面包屑 ---------- */

.activity-task-comment-breadcrumb {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
}

.activity-task-comment-breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
}

.activity-task-comment-breadcrumb a:hover {
  color: var(--color-primary-500);
}

.activity-task-comment-breadcrumb__current {
  color: var(--text-secondary);
}

/* ---------- 奖励说明横幅 ---------- */

.activity-task-comment-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #fce3ad;
  background: linear-gradient(180deg, #fff 0%, #fdf6de 100%);
}

.activity-task-comment-reward__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-task-comment-reward__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-task-comment-reward__em {
  font-style: normal;
  color: #ff2d55;
}

.activity-task-comment-reward__count {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-secondary);
}

.activity-task-comment-reward__icon {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.activity-task-comment-reward__icon::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: -4px;
  width: 39px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(2px);
}

.activity-task-comment-reward__icon img {
  position: absolute;
  left: -5px;
  top: -3px;
  width: 74px;
  height: 74px;
  max-width: none;
}

/* ---------- 任务步骤 ---------- */

.activity-task-comment-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-task-comment-steps {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.activity-task-comment-step {
  flex: 1 0 0;
  min-width: 0;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-black-alpha-10);
  background: #fff;
}

.activity-task-comment-step__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
}

.activity-task-comment-step__badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-500);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-primary);
}

.activity-task-comment-step__text,
.activity-task-comment-step__note {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-secondary);
}

.activity-task-comment-step__actions {
  display: flex;
  gap: 12px;
}

.activity-task-comment-step__btn {
  flex: 1 0 0;
  min-width: 0;
  height: 44px;
  padding: 11px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
}

.activity-task-comment-step__btn--ghost {
  border: 1px solid var(--color-primary-500);
  background: #fff;
  color: var(--color-primary-500);
}

.activity-task-comment-step__btn--ghost:hover {
  background: var(--color-primary-alpha-10);
}

.activity-task-comment-step__btn--primary {
  background: var(--color-primary-500);
  color: var(--text-primary);
}

.activity-task-comment-step__btn--primary:hover {
  background: #f0bf00;
}

.activity-task-comment-step__platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.activity-task-comment-step__platform {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #694923;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #694923;
  white-space: nowrap;
  cursor: pointer;
}

.activity-task-comment-step__platform:hover {
  background: rgba(105, 73, 35, 0.06);
}

.activity-task-comment-step__platform--active {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.activity-task-comment-step__platform--active:hover {
  background: var(--color-primary-500);
}

.activity-task-comment-step__shots {
  flex: 1 0 auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.activity-task-comment-step__shots--has {
  flex: none;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 7px;
}

/* 缩略块/有图时的上传按钮:与原上传框等高的正方形。70px 为兜底,仅在移动端等于上传框高
   (20 行高 + 24×2 内边距 + 1×2 边框);桌面端上传框被等高卡片拉伸(>70px),
   实际尺寸由 activityTaskComment.js 初始化时量取原上传框高度后以内联样式覆盖 */
.activity-task-comment-step__shot {
  position: relative;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-black-alpha-10);
  background: linear-gradient(135deg, #fdf6de 0%, #f2f2f2 100%);
  color: #a08b55;
}

.activity-task-comment-step__shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 7px;
}

.activity-task-comment-step__shot svg {
  width: 26px;
  height: 26px;
}

.activity-task-comment-step__shot-del {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.activity-task-comment-step__shot-del:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* 上传中/失败蒙层:老 Safari 约定,不用 inset/gap 简写,间距走 margin */
.activity-task-comment-step__shot-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.activity-task-comment-step__shot-mask--error {
  background: rgba(217, 0, 0, 0.55);
}

.activity-task-comment-step__shot-spinner {
  width: 16px;
  height: 16px;
  margin-bottom: 6px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: atc-shot-spin 0.8s linear infinite;
}

@keyframes atc-shot-spin {
  to {
    transform: rotate(360deg);
  }
}

.activity-task-comment-step__shots--has .activity-task-comment-step__upload {
  flex: none;
  width: 70px;
  height: 70px;
  padding: 0;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
}

.activity-task-comment-step__upload {
  flex: 1 0 auto;
  width: 100%;
  padding: 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px dashed var(--text-secondary);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-secondary);
  cursor: pointer;
}

.activity-task-comment-step__upload:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ---------- 提交审核 ---------- */

.activity-task-comment-submit {
  width: 100%;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: none;
  background: var(--color-primary-500);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-primary);
  cursor: pointer;
}

.activity-task-comment-submit:hover {
  background: #f0bf00;
}

.activity-task-comment-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- H5 ---------- */

@media (max-width: 768px) {
  .activity-task-comment.page-main {
    padding: 12px 0 32px;
  }

  .activity-task-comment__wrap {
    gap: 18px;
  }

  .activity-task-comment-breadcrumb {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
  }

  .activity-task-comment-reward {
    gap: 12px;
    padding: 12px;
  }

  .activity-task-comment-reward__info {
    gap: 2px;
  }

  .activity-task-comment-reward__title {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-task-comment-reward__count {
    font-size: 12px;
    line-height: 18px;
    color: #656565;
  }

  .activity-task-comment-reward__icon {
    width: 44px;
    height: 44px;
  }

  .activity-task-comment-reward__icon::after {
    left: 9px;
    bottom: -3px;
    width: 27px;
    height: 2px;
  }

  .activity-task-comment-reward__icon img {
    left: -9px;
    top: -8px;
    width: 62px;
    height: 62px;
  }

  .activity-task-comment-flow {
    gap: 12px;
  }

  .activity-task-comment-steps {
    flex-direction: column;
    gap: 12px;
  }

  .activity-task-comment-step {
    flex: none;
    width: 100%;
    min-height: 0;
  }

  .activity-task-comment-step__title {
    font-size: 14px;
    line-height: 20px;
  }

  .activity-task-comment-step__badge {
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
  }

  .activity-task-comment-step__text,
  .activity-task-comment-step__note {
    font-size: 12px;
    line-height: 18px;
  }

  .activity-task-comment-step__upload {
    flex: none;
  }
}

/* ---------- 晒图成功奖励弹窗 ---------- */

body.atc-layer-open {
  overflow: hidden;
}

.activity-task-comment__layer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.activity-task-comment__layer--open {
  display: flex;
}

.activity-task-comment__layer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.activity-task-comment__layer-inner {
  position: relative;
  z-index: 1;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.activity-task-comment__layer-card {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding-top: 92px;
}

.activity-task-comment__layer-girl {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 263px;
  height: 168px;
  pointer-events: none;
}

.activity-task-comment__layer-panel {
  position: relative;
  padding: 60px 36px 36px;
  border-radius: 24px;
  background:
    radial-gradient(140% 70% at 0% 0%, rgba(255, 158, 190, 0.5) 0%, rgba(255, 158, 190, 0) 55%),
    radial-gradient(130% 60% at 100% 0%, rgba(255, 222, 121, 0.55) 0%, rgba(255, 222, 121, 0) 55%),
    #fff;
  text-align: center;
}

.activity-task-comment__layer-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: rgba(0, 0, 0, 0.9);
}

.activity-task-comment__layer-divider {
  margin-top: 12px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.activity-task-comment__layer-prize {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.activity-task-comment__layer-coin {
  width: 100px;
  height: 100px;
}

.activity-task-comment__layer-prize-name {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.activity-task-comment__layer-prize-extra {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.activity-task-comment__layer-confirm {
  margin-top: 36px;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--color-primary-500);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  cursor: pointer;
}

.activity-task-comment__layer-confirm:hover {
  background: #f0bf00;
}

.activity-task-comment__layer-close {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.activity-task-comment__layer-close:hover {
  opacity: 0.85;
}

.activity-task-comment__layer-close img {
  display: block;
}

@media (max-width: 768px) {
  .activity-task-comment__layer-card {
    width: 300px;
    padding-top: 74px;
  }

  .activity-task-comment__layer-girl {
    width: 210px;
    height: 134px;
  }

  .activity-task-comment__layer-panel {
    padding: 40px 24px 24px;
    border-radius: 20px;
  }

  .activity-task-comment__layer-title {
    font-size: 18px;
    line-height: 24px;
  }

  .activity-task-comment__layer-coin {
    width: 84px;
    height: 84px;
  }

  .activity-task-comment__layer-confirm {
    margin-top: 24px;
  }
}
