/* 活动通用弹框 — 设计稿 699:109 / 弹窗1（600×290 面板） */
.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.pc-modal[hidden] {
  display: none !important;
}

.pc-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.pc-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 600px;
}

.pc-modal__panel {
  position: relative;
  box-sizing: border-box;
  width: 600px;
  min-height: 290px;
  padding: 48px 70px 36px;
  background: url("../images/modal-panel.png?v=184") center / 100% 100% no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pc-modal__title {
  margin: 0;
  padding: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 46px;
  color: #0f1691;
  text-align: center;
}

.pc-modal__content {
  margin: 28px 0 0;
  padding: 0;
  max-width: 406px;
  font-size: 20px;
  font-weight: 500;
  line-height: 29px;
  color: #0f1691;
  text-align: center;
  word-break: break-word;
}

.pc-modal__actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pc-modal__btn {
  box-sizing: border-box;
  width: 158px;
  height: 50px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 25px;
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.pc-modal__btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

/* 左侧主操作：蓝底白字（去下载 / 确认） */
.pc-modal__btn--left {
  background-image: url("../images/modal-btn-primary.png?v=544");
  color: #fff;
  text-shadow:
    0 0 1.6px rgba(0, 0, 0, 0.46),
    0 1px 1.8px rgba(255, 255, 255, 0.35);
}

/* 右侧次操作：金底棕字（取消） */
.pc-modal__btn--right {
  background-image: url("../images/modal-btn-secondary.png?v=194");
  color: #5c3513;
  text-shadow: 0 1px 1.8px rgba(255, 255, 255, 0.55);
}

/* 关闭：Figma 727:561 圆环 + 叉号切图 */
.pc-modal__close {
  margin-top: 24px; /* 面板底 342 → 关闭顶 366 */
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  line-height: 0;
}

.pc-modal__close img {
  display: block;
  width: 50px;
  height: 50px;
  max-width: none;
}

.pc-modal__close:hover {
  opacity: 0.85;
}

.pc-modal__close:active {
  transform: scale(0.96);
  opacity: 0.8;
}

/* —— H5：Figma 743:998 弹窗1，稿面÷2（750→375）—— */
@media (max-width: 767.98px) {
  .pc-modal__dialog {
    width: 349.5px; /* 699/2 */
  }

  .pc-modal__panel {
    width: 349.5px; /* 699/2 */
    min-height: 169px; /* 338/2 */
    /* 49/2、112/2、45/2 */
    padding: 24.5px 56px 22.5px;
    background-image: url("../images/modal-panel-h5.png?v=549");
  }

  .pc-modal__title {
    font-size: 18px; /* 36/2 */
    line-height: 26px; /* 52/2 */
  }

  .pc-modal__content {
    margin-top: 15.5px; /* 31/2 */
    max-width: 237.5px; /* 475/2 */
    font-size: 13px; /* 26/2 */
    line-height: 19px; /* 38/2 */
  }

  .pc-modal__actions {
    padding-top: 12.5px; /* 25/2 */
    gap: 6px; /* 12/2 */
  }

  .pc-modal__btn {
    width: 97px; /* 194/2 */
    height: 30px; /* 60/2 */
    border-radius: 15px; /* 30/2 */
    font-size: 14px; /* 28/2 */
    line-height: 30px;
  }

  .pc-modal__btn--left {
    background-image: url("../images/modal-btn-primary-h5.png?v=921");
    text-shadow: 0 0.55px 1px rgba(0, 0, 0, 0.35);
  }

  .pc-modal__btn--right {
    background-image: url("../images/modal-btn-secondary-h5.png?v=356");
    text-shadow:
      0 0 0.88px rgba(0, 0, 0, 0.46),
      0 0.55px 1px rgba(255, 255, 255, 0.55);
  }

  /* 关闭：24/2、50/2 */
  .pc-modal__close {
    margin-top: 12px;
    width: 25px;
    height: 25px;
  }

  .pc-modal__close img {
    width: 25px;
    height: 25px;
  }
}
