* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: #fff5fa;
  color: #3d1430;
  padding: 12px;
}

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(210, 25, 118, 0.14);
  overflow: hidden;
}

.logo-header,
.topbar {
  background: #ffffff;
  padding: 10px 14px;
  border-bottom: 1px solid #ffe0ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffd1e6;
  background: #fff5fa;
  color: #d70f64;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.logo-box {
  width: 210px;
  height: 58px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header,
.title {
  background: #d70f64;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.title {
  background: #fff0f7;
  border-bottom: 1px solid #ffd9ea;
  color: #b10d53;
  font-size: 16px;
  font-weight: 700;
}

.section {
  padding: 14px 16px;
  border-bottom: 1px solid #ffd9ea;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 15px;
  margin: 0 0 10px;
  color: #b10d53;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #ffd1e6;
  font-size: 14px;
}

.row:last-child {
  border-bottom: none;
}

.label {
  color: #9a5a7c;
}

.value {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
  max-width: 68%;
  color: #6b123d;
}

.footer {
  padding: 14px 16px 18px;
  background: #fff7fb;
}

.btn,
.pay-btn,
.submit-btn {
  width: 100%;
  border: none;
  background: #d70f64;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(215, 15, 100, 0.26);
  text-decoration: none;
  text-align: center;
}

.btn:hover,
.pay-btn:hover,
.submit-btn:hover {
  background: #b80d56;
}

.btn:disabled,
.pay-btn:disabled,
.submit-btn:disabled {
  background: #e8a8c8;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row .btn {
  flex: 1;
  width: auto;
}

.btn-secondary {
  background: #ffe7f3;
  color: #b10d53;
  border: 1px solid #ffc3df;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #ffd4e9;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  color: #7f4a67;
  font-size: 14px;
}

.confirm-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #d70f64;
  flex-shrink: 0;
}

.notice-link {
  color: #d70f64;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice-dialog {
  width: calc(100vw - 32px);
  max-width: 520px;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  color: #3d1430;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  box-shadow: 0 16px 48px rgba(61, 20, 48, 0.22);
}

.notice-dialog::backdrop {
  background: rgba(61, 20, 48, 0.45);
}

.notice-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #ffd9ea;
  background: #fff7fb;
}

.notice-dialog-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #b10d53;
}

.notice-dialog-close {
  border: none;
  background: transparent;
  color: #9a5a7c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.notice-dialog-body {
  padding: 14px 16px;
  max-height: min(65vh, 520px);
  overflow-y: auto;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.7;
  color: #6b123d;
}

.notice-dialog-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #ffd9ea;
  background: #fff7fb;
}

.notice-dialog-ok {
  width: 100%;
  border: none;
  background: #d70f64;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.media-box video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ffd5e8;
  display: block;
  background: #111;
}

.upload-area {
  width: 100%;
  max-width: 400px;
  height: 200px;
  border: 2px dashed #ffc0dd;
  border-radius: 12px;
  background-color: #fff7fb;
  padding: 0;
  margin: 0 auto;
  cursor: pointer;
  outline: none;
  display: block;
}

.upload-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  opacity: 0.7;
}

.upload-icon.uploaded {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  opacity: 1;
  object-fit: cover;
  border-radius: 10px;
}

.upload-text {
  padding: 8px 20px;
  background-color: #d70f64;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
}

.file-input {
  display: none;
}

.success-box {
  padding: 26px 16px 20px;
  text-align: center;
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #d70f64;
  color: #fff;
  font-size: 36px;
  line-height: 68px;
  font-weight: 700;
}

.success-title {
  margin: 0 0 10px;
  font-size: 24px;
  color: #b10d53;
  font-weight: 700;
}

.tips {
  margin: 0;
  color: #8c3b65;
  line-height: 1.7;
  font-size: 14px;
}

.status {
  margin: 14px 16px 0;
  background: #fff3f9;
  border: 1px solid #ffc5df;
  border-radius: 10px;
  padding: 10px 12px;
  color: #b10d53;
  font-weight: 600;
}

.card-section {
  margin: 12px 16px;
  border: 1px solid #ffd9ea;
  border-radius: 10px;
  overflow: hidden;
}

.card-section h3 {
  margin: 0;
  padding: 10px 18px;
  background: #fff7fb;
  color: #b10d53;
  font-size: 14px;
  border-bottom: 1px solid #ffe1ef;
}

.card-section .row {
  padding: 10px 18px;
}

.voucher {
  padding: 12px;
  background: #fff;
}

.voucher img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ffd5e8;
  display: block;
}

.alert {
  margin: 14px 16px;
  padding: 12px;
  border-radius: 10px;
  background: #fff1f1;
  border: 1px solid #ffc9c9;
  color: #9e1c1c;
  line-height: 1.6;
}

.app-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: min(86vw, 360px);
  padding: 13px 18px;
  border-radius: 10px;
  background: rgba(61, 20, 48, 0.94);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 32px rgba(61, 20, 48, 0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 768px) {
  body {
    padding: 24px;
  }

  .container {
    max-width: 720px;
  }

  .logo-header,
  .topbar {
    padding: 20px 22px;
  }

  .logo-box {
    width: 280px;
    height: 72px;
  }

  .section {
    padding: 20px 22px;
  }

  .footer {
    padding: 20px 22px 24px;
  }
}
