/* Popup entry area */
.popup-entry-panel {
  position: absolute;
  top: 8px;
  right: 56px;
  display: flex;
  gap: 14px;
}

.popup-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 44px;
  padding: 0 22px;
  border: 3px solid #f4b55f;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf8 0%, #ffefcf 100%);
  box-shadow: 0 8px 16px rgba(153, 95, 19, 0.18);
  color: #a45227;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.popup-entry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(153, 95, 19, 0.24);
}

.popup-entry-btn.is-accent {
  border-color: #ff9d52;
  background: linear-gradient(180deg, #fff1cc 0%, #ffd78f 100%);
}

/* Overlay */
.dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(2px);
  z-index: 100;
}

.dialog.dialog-dailygift {
  z-index: 101;
}

/* Main panel */
.dialog .dialog-main {
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-sizing: border-box;
  text-align: center;
  color: #7a4a2a;
  font-size: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

/* Close button */
.dialog .dialog-close {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 24px;
  height: 24px;
  background: url("../images/pcModel/close_icon.png") center / contain no-repeat;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.15s ease;
}

.dialog .dialog-close:hover {
  /* transform: scale(1.12); */
}

/* Content & footer */
.dialog .dialog-content {
  width: 100%;
  box-sizing: border-box;
}

.dialog .dialog-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
}

.dialog.dialog-address .dialog-footer {
  margin-top: 5px;
}

/* Common dialog text */
.dialog .dialog-main .dlg-title {
  color: #974821;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
}

.dialog .dialog-main .dlg-title .highlight {
  margin-left: 4px;
  color: #eb463a;
}

.dialog .dialog-main .dlg-desc {
  color: #974821;
  font-size: 24px;
  line-height: 1.7;
  margin-top: 8px;
}

.dialog .dialog-main .dlg-desc-2 {
  margin-top: 30px;
  margin-bottom: 70px;
  font-size: 20px;
  color: #974821;
}

.dialog .dialog-main .dlg-note {
  color: #e74336;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
}

/* Dialog buttons */
.dialog-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent no-repeat center / 100% 100%;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  transition: filter 0.15s ease;
}

.dialog-btn:hover {
  filter: brightness(1.05);
}

.btn-confirm,
.btn-use,
.btn-giveup,
.btn-fill {
  width: 230px;
  height: 59px;
}

.btn-confirm {
  background-image: url("../images/pcModel/group_1.png");
}

.btn-use {
  background-image: url("../images/pcModel/group_1_1.png");
}

.btn-giveup {
  background-image: url("../images/pcModel/group_47.png");
}

.btn-fill {
  background-image: url("../images/pcModel/group_46.png");
}

.btn-fill-sm {
  width: 115px;
  height: 40px;
  background-image: url("../images/pcModel/group_26_copy.png");
}

.btn-claim-sm {
  width: 115px;
  height: 40px;
  background-image: url("../images/pcModel/group_27_copy.png");
}

.btn-exchange-sm {
  width: 115px;
  height: 40px;
  background-image: url("../images/pcModel/exchangeBtn.png");
}

/* Dialog sizes */
.dialog-main.myrecord {
  width: 602px;
  min-height: 524px;
  padding: 42px 32px 28px;
  background-image: url("../images/pcModel/rectangle_4_copy_7.png");
}

.dialog-main.dailygift {
  width: 610px;
  min-height: 736px;
  padding: 28px 26px 30px;
  background-image: url("../images/pcModel/rectangle_4_copy_7.png");
}

.dialog-main.playvalue {
  width: 602px;
  min-height: 392px;
  padding: 42px 32px 26px;
  background-image: url("../images/pcModel/rectangle_4_copy_7_1.png");
}

.dialog-main.rule {
  width: 610px;
  min-height: 540px;
  max-height: calc(100vh - 48px);
  padding: 42px 28px 30px;
  background-image: url("../images/pcModel/rectangle_4_copy_7.png");
}

.dialog-main.address,
.dialog-main.qrcode,
.dialog-main.couponwin,
.dialog-main.claimsuccess,
.dialog-main.bcode,
.dialog-main.warmtip {
  width: 601px;
  min-height: 385px;
  padding: 42px 36px 22px;
}

.dialog-main.address {
  background-image: url("../images/pcModel/frame_copy_2.png");
}

.dialog-main.qrcode {
  background-image: url("../images/pcModel/frame_copy_2_1.png");
}

.dialog-main.couponwin {
  background-image: url("../images/pcModel/frame_copy_2_2.png");
  padding: 72px 30px 22px;
}

.dialog-main.claimsuccess {
  width: 602px;
  min-height: auto;
  padding: 30px 32px 28px;
  overflow-y: auto;
  background-image: url("../images/pcModel/rectangle_4_copy_7_2.png");
}

.dialog-main.claimsuccess .dialog-close {
  top: 18px;
  right: 18px;
}

.dialog-main.bcode {
  background-image: url("../images/pcModel/frame_copy_2_3.png");
  padding: 72px 24px 24px;
}

.dialog-main.warmtip {
  background-image: url("../images/pcModel/frame_copy_2.png");
}

.dialog-main.warmtip {
  padding: 42px 35px 22px;
}

.dialog-main.bcode .dialog-footer {
  margin-top: 18px;
}

.dialog-main.bcode-redeem {
  width: min(600px, calc(100vw - 140px));
  height: min(840px, calc(100vh - 120px));
  padding: 50px 20px 20px;
  overflow: hidden;
  background: #fff8ee;
  border: 4px solid #f4b55f;
  border-radius: 8px;
}

.dialog-main.bcode-redeem .dialog-content,
.bcode-redeem-wrap,
.bcode-redeem-iframe {
  width: 100%;
  height: 100%;
}

.dialog-main.bcode-redeem .dialog-footer {
  display: none;
}

.bcode-redeem-iframe {
  display: block;
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.dialog-main.playvalue .dialog-footer,
.dialog-main.dailygift .dialog-footer,
.dialog-main.rule .dialog-footer {
  display: none;
}

.dialog-main.dailygift .dialog-content {
  display: flex;
  justify-content: center;
}

.dialog-main.rule .dialog-content {
  max-height: calc(100vh - 120px);
  padding-right: 8px;
  overflow-y: auto;
}

.dialog-main.dailygift .dialog-close {
  top: 16px;
  right: 18px;
  width: 30px;
  height: 30px;
}

.rule-wrap {
  width: 100%;
  padding-top: 4px;
  text-align: left;
}

.rule-wrap .dlg-title {
  text-align: center;
}

.rule-list {
  margin: 18px 0 0;
  padding: 0 8px 0 4px;
  list-style: none;
}

.rule-list li {
  color: #955936;
  font-size: 20px;
  line-height: 1.52;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.rule-list li+li {
  margin-top: 8px;
}

/* Record dialog */
.record-wrap {
  width: 100%;
}

.record-list {
  margin-top: 14px;
}

.record-list dl {
  font-size: 20px;
  color: #9e4d37;
  border: 2px solid #f18353;
  background: #fffdf8;
  overflow: hidden;
  box-sizing: border-box;
}

.record-list dl dt,
.record-list dl dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.record-list dl dt {
  background: #FFEFC9;
}

.record-list dl dd {
  background: #FFFAF0;
}

.record-list dl dd {
  border-top: 2px solid #f18353;
}

.record-list dl div {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 0 10px;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
}

.record-list dl div+div {
  border-left: 2px solid #f18353;
}

.record-list .r-name {
  width: 188px;
}

.record-list .r-time {
  flex: 1;
}

.record-list .r-op {
  width: 150px;
}

.record-list .btn-sent {
  color: #9e4d37;
  font-size: 20px;
}

.dlg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 16px;
  color: #974821;
  user-select: none;
}

.dlg-pagination .page-arrow {
  width: 14px;
  height: 16px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.dlg-pagination .page-arrow:hover {
  opacity: 1;
}

.dlg-pagination .page-info {
  min-width: 62px;
  text-align: center;
  font-weight: 700;
  color: #644D2F;
  color: #644D2F;
}

/* Play value dialog */
.playvalue-list {
  margin-top: 26px;
  padding: 0 10px;
  background: #FFEFA9;
  border-radius: 16px;
  border: 2px solid #EFD078;
}

.playvalue-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 3px solid #EFD078;
  text-align: left;
}

.playvalue-list li:last-child {
  margin-bottom: 20px;
}

.playvalue-tip {
  margin: 14px 10px 0;
  color: #E74336;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.pv-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.pv-content.is-done .pv-text {
  color: #A3986A;
}

.playvalue-list .pv-num {
  flex: 0 0 auto;
  font-size: 18px;
}

.playvalue-list .pv-text {
  flex: 1;
  color: #974821;
  font-size: 18px;
  line-height: 1.55;
}

.playvalue-list .pv-text .highlight {
  margin-left: 4px;
}

.pv-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 77px;
  height: 28px;
  border-radius: 999px;
  color: #FFFAE4;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  background: #F98D3B;
}

.pv-action.is-done {
  color: #F1F1F1;
  background: #979797;
}

/* Address dialog */
.address-form {
  --address-label-width: 100px;
  --address-label-gap: 10px;
  --address-input-width: 314px;
  margin-top: 10px;
  text-align: left;
  padding: 0 32px;
}

.address-footer-tip {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: left;
  font-size: 18px;
  color: #E44D2E;
}

.address-form-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.address-form-item:last-of-type {
  margin-bottom: 6px;
}

.address-form-item label {
  width: var(--address-label-width);
  text-align: right;
  margin-right: var(--address-label-gap);
  font-size: 24px;
  color: #644D2F;
  white-space: nowrap;
  flex: 0 0 auto;
}

.address-form-item input {
  width: var(--address-input-width);
  height: 43px;
  background: #FFE6A8;
  border-radius: 7px 7px 7px 7px;
  border: 3px solid #EFD078;
  padding: 0 12px;
  outline: none;
  color: #7a4a2a;
  font-size: 24px;
  font-family: "Microsoft YaHei", Tahoma, Arial, sans-serif;
}

.address-form-item input::placeholder {
  color: #d3b26f;
}

.address-form-item input:focus {
  border-color: #ff9918;
  box-shadow: 0 0 0 2px rgba(255, 153, 24, 0.12);
}

.address-form-error {
  width: var(--address-input-width);
  min-height: 23px;
  margin: 4px 0 0 calc(var(--address-label-width) + var(--address-label-gap));
  color: #e45d42;
  font-size: 14px;
  text-align: left;
}

/* QR code dialog */
.qrcode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qrcode-copy {
  margin-top: 12px;
  color: #ef4a36;
  font-size: 19px;
  line-height: 1.6;
}

.qrcode-wrap .qr-img {
  width: 231px;
  margin: 14px 0 10px;
}

.qrcode-wrap .qr-desc {
  color: #974821;
  font-size: 15px;
  line-height: 1.55;
}

/* Coupon success dialogs */
.couponwin-wrap,
.claimsuccess-wrap,
.warmtip-wrap {
  padding: 6px 0px 0;
}

.couponwin-wrap .dlg-title,
.warmtip-wrap .dlg-title {
  margin-bottom: 14px;
}

.claimsuccess-wrap .dlg-title {
  margin-bottom: 8px;
}

.couponwin-divider {
  width: 100%;
  height: 1px;
  margin: 16px 0 12px;
  background: #f0c88a;
}

.claimsuccess-value {
  margin-bottom: 18px;
  color: #ef4936;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
}

.claimsuccess-list {
  width: 460px;
  max-height: 430px;
  margin: 0 auto;
  overflow-y: auto;
}

.claimsuccess-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
}

.claimsuccess-name {
  width: 100%;
  padding: 0 0 0 10px;
  color: #ef4936;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.claimsuccess-op {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-50%);
}

.claimsuccess-op .dialog-btn {
  margin: 0;
}

.claimsuccess-op .btn-exchange-sm {
  width: 115px;
  height: 40px;
}

.claimsuccess-tip {
  margin: 24px 0 0;
  color: #be6a40;
  font-size: 22px;
  line-height: 1.45;
}

.claimsuccess-warn {
  margin: 4px 0 0;
  color: #ef4936;
  font-size: 22px;
  line-height: 1.45;
}

.claimsuccess-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.bcode-wrap {
  padding: 8px 12px 0;
}

.bcode-wrap .dlg-title {
  margin-bottom: 6px;
}

.bcode-prize {
  color: #E74336;
}

.bcode-subtitle {
  color: #9c6b41;
  font-size: 20px;
  line-height: 1.5;
}

.bcode-value {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 317px;
  height: 46px;
  margin: 20px auto 0;
  background: url("../images/pcModel/bCodeBg.png") center / 100% 100% no-repeat;
  color: #9f5b2c;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.bcode-btn {
  margin-top: 20px;
  width: 230px;
  height: 59px;
  background-image: url("../images/pcModel/bCodeBtn.png");
}

/* Warm tip dialog */
.warmtip-wrap .tip-content {
  color: #974821;
  font-size: 20px;
  line-height: 1.8;
  margin: 38px 0 18px;
}

.warmtip-footer {
  margin-top: 16px;
}

.warmtip-footer-btn {
  display: flex;
  justify-content: space-between;
}

/* Daily gift dialog */
.dailygift-wrap {
  width: 100%;
  max-width: 430px;
  padding: 20px 0 0;
}

.dailygift-wrap .dlg-title,
.dailygift-wrap .dlg-desc,
.dailygift-wrap .dlg-note {
  display: none;
}

.dailygift-title {
  margin-top: 0;
  color: #974821;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 1px;
  font-weight: 700;
}

.dailygift-desc {
  margin-top: 14px;
  color: #9C5F3C;
  font-size: 18px;
  line-height: 1.75;
}

.dailygift-list {
  margin-top: 22px;
}

.dailygift-list li+li {
  margin-top: 12px;
}

.dailygift-list-item {
  width: 380px;
  margin: 0 auto;
}

.daily-coupon-image {
  display: block;
  width: 100%;
}

.dailygift-note {
  margin-top: 18px;
  color: #F3402A;
  font-size: 20px;
  line-height: 1.6;
}

/* Toast */
.activity-toast-enter-active,
.activity-toast-leave-active {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.activity-toast-enter,
.activity-toast-leave-to {
  opacity: 0;
  transform: translate(-50%, -46%);
}

.activity-toast {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  min-width: 220px;
  max-width: 520px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(79, 42, 13, 0.92);
  color: #fff7e4;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  z-index: 110;
}