@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("./assets/fonts/AlibabaPuHuiTi-3-55-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("./assets/fonts/AlibabaPuHuiTi-3-45-Light.woff2") format("woff2");
  font-weight: 300;
}

@font-face {
  font-family: "Alibaba PuHuiTi L3";
  src: url("./assets/fonts/AlibabaPuHuiTi-3-55-RegularL3.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("./assets/fonts/AlibabaPuHuiTi-3-85-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("./assets/fonts/AlibabaPuHuiTi-3-105-Heavy.woff2") format("woff2");
  font-weight: 900;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #e8e8e8;
  color: #121214;
  font-family: "Alibaba PuHuiTi", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-capture {
  --capture-scale: 0.6333333333;
  position: relative;
  flex: 0 0 684px;
  width: 684px;
  height: calc(3679px * var(--capture-scale));
  overflow: hidden;
  background: #f6f6f6;
}

.phone-canvas {
  position: relative;
  width: 1080px;
  height: 3679px;
  margin: 0;
  overflow: hidden;
  background: #f6f6f6;
  text-align: left;
  transform: scale(var(--capture-scale));
  transform-origin: top left;
}

.export-mode .phone-canvas {
  transform: none;
  box-shadow: none;
}

.export-tools {
  position: sticky;
  top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 320px;
  max-height: calc(100vh - 20px);
  margin: 20px 0 0 18px;
  overflow-y: auto;
  padding: 10px 10px 28px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(6, 79, 142, 0.1);
}

.export-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 10px;
  background: #064f8e;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(6, 79, 142, 0.18);
  font-size: 18px;
  font-weight: 700;
}

.export-tools button:last-child {
  border: 2px solid #064f8e;
  background: #ffffff;
  color: #064f8e;
}

.export-tools button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 22px;
  line-height: 1;
}

.edit-form {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  width: 100%;
  padding: 8px 0 0;
}

.form-section-title {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eaf4ff;
  color: #064f8e;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.edit-form label {
  display: grid;
  gap: 6px;
  color: #064f8e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.edit-form input {
  width: 100%;
  height: 42px;
  border: 1px solid #c9d9ea;
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  background: #f8fbff;
  color: #121214;
  font-size: 17px;
  font-weight: 400;
}

.edit-form input:focus {
  border-color: #064f8e;
  box-shadow: 0 0 0 3px rgba(6, 79, 142, 0.12);
}

.status-chip {
  position: absolute;
  left: 862px;
  top: 299px;
  width: 218px;
  height: 70px;
  border-radius: 45px 0 0 0;
  background: #ff6900;
}

.status-chip span {
  position: absolute;
  left: 42px;
  top: 2px;
  color: #ffffff;
  font-size: 46px;
  font-weight: 400;
  white-space: nowrap;
}

.station-title {
  position: absolute;
  left: 116px;
  top: 299px;
  color: #000000;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.station-icon {
  position: absolute;
  left: 39px;
  top: 302px;
  width: 63px;
  height: 63px;
  border-radius: 16px;
  overflow: hidden;
}

.station-icon img {
  position: absolute;
  left: 0;
  top: -2px;
  width: 68px;
  height: 70px;
}

.fee-card {
  position: absolute;
  left: 39px;
  top: 421px;
  width: 1004px;
  height: 1269px;
  border: 2px solid #ffffff;
  border-radius: 24px;
  background: transparent;
  overflow: visible;
}

.fee-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1004px;
  height: 180px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(270deg, #fff9f1 0%, #ffe7c5 100%);
}

.ticket-body {
  position: absolute;
  left: 0;
  top: 134px;
  width: 1004px;
  height: 1135px;
  z-index: 0;
  overflow: hidden;
}

.ticket-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1004px;
  height: 1135px;
  background: url("./assets/images/ticket-body-bg.png") 0 0 / 1004px 1135px no-repeat;
}

.ticket-edge {
  display: none;
}

.fee-card > :not(.ticket-body, .ticket-edge) {
  z-index: 1;
}

.gold-gem {
  position: absolute;
  left: 20px;
  top: 28px;
  width: 96px;
  height: 70px;
  object-fit: cover;
}

.member-price {
  position: absolute;
  left: 116px;
  top: 34px;
  color: #ff6900;
  font-size: 46px;
  font-weight: 900;
  white-space: nowrap;
}

.open-btn {
  position: absolute;
  left: 726px;
  top: 22px;
  width: 249px;
  height: 86px;
  border-radius: 50px;
  background: #bd873d;
  color: #ffffff;
  font-size: 46px;
  font-weight: 400;
  line-height: 86px;
  text-align: center;
}

.card-title {
  position: absolute;
  color: #121214;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.fee-title {
  left: 48px;
  top: 180px;
  color: #000000;
}

.discount-text {
  position: absolute;
  left: 641px;
  top: 181px;
  color: #5c6167;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -2.88px;
  white-space: nowrap;
}

.discount-text span {
  color: #ff6900;
}

.help-circle {
  position: absolute;
  left: 903px;
  top: 192px;
  width: 46px;
  height: 46px;
  border: 1px solid #5c6167;
  border-radius: 50%;
  color: #5c6167;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 44px;
  text-align: center;
}

.label {
  position: absolute;
  color: #000000;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.44px;
  white-space: nowrap;
}

.prepaid-label {
  left: 48px;
  top: 283px;
}

.order-label {
  left: 48px;
  top: 383px;
}

.paid-label {
  left: 48px;
  top: 793px;
}

.wallet-label {
  left: 48px;
  top: 1103px;
}

.value {
  position: absolute;
  color: #000000;
  font-size: 48px;
  font-weight: 500;
  white-space: nowrap;
}

.prepaid-value {
  left: auto;
  right: 94px;
  top: 273px;
  width: 560px;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.64px;
  text-align: right;
}

.unit {
  position: absolute;
  color: #000000;
  font-size: 48px;
  font-weight: 400;
  white-space: nowrap;
}

.prepaid-unit {
  left: auto;
  right: 48px;
  top: 289px;
}

.order-value {
  left: auto;
  right: 48px;
  top: 387px;
  width: 560px;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 1.92px;
  text-align: right;
}

.sub-fees {
  position: absolute;
  left: 48px;
  top: 471px;
  width: 904px;
  height: 200px;
  border-radius: 24px;
  background: #f6f6f6;
}

.sub-label,
.sub-value {
  position: absolute;
  font-size: 48px;
  white-space: nowrap;
}

.sub-label {
  left: 29px;
  color: #5c6167;
  font-weight: 300;
  letter-spacing: -2.88px;
}

.sub-value {
  color: #000000;
  font-weight: 300;
  letter-spacing: 1.92px;
}

.electric-label,
.electric-value {
  top: 22px;
}

.service-label {
  top: 111px;
}

.service-value {
  top: 116px;
}

.electric-value {
  left: auto;
  right: 29px;
  width: 560px;
  text-align: right;
}

.service-value {
  left: auto;
  right: 29px;
  width: 560px;
  text-align: right;
}

.refund-label {
  position: absolute;
  left: 46px;
  top: 693px;
  color: #ff6900;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -2.88px;
  white-space: nowrap;
}

.refund-value {
  position: absolute;
  left: auto;
  right: 48px;
  top: 700px;
  width: 560px;
  color: #ff6900;
  font-size: 48px;
  letter-spacing: 1.92px;
  text-align: right;
  white-space: nowrap;
}

.paid-editor {
  position: absolute;
  right: 48px;
  top: 787px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  width: 560px;
  height: 82px;
  color: #000000;
  white-space: nowrap;
}

.paid-editor input {
  width: 456px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  font-family: "Alibaba PuHuiTi", Arial, sans-serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 2.56px;
  text-align: right;
}

.paid-editor input:focus {
  border-bottom: 2px solid #ff6900;
}

.paid-editor span {
  color: #000000;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 1.92px;
  margin-left: 12px;
}

.paid-print {
  position: absolute;
  right: 48px;
  top: 787px;
  display: none;
  align-items: baseline;
  justify-content: flex-end;
  width: 560px;
  height: 82px;
  color: #000000;
  white-space: nowrap;
}

.paid-print span {
  color: #000000;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 2.56px;
}

.paid-print em {
  color: #000000;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 1.92px;
  margin-left: 12px;
}

.export-mode .paid-editor {
  display: none;
}

.export-mode .paid-print {
  display: flex;
}

.share-strip {
  position: absolute;
  left: 48px;
  top: 892px;
  width: 903px;
  height: 156px;
  border-radius: 24px;
  background: #fdf6ec;
}

.electric-badge {
  position: absolute;
  left: 33px;
  top: 48px;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  background: #f5ba57;
  color: #ffffff;
  font-family: "Alibaba PuHuiTi L3", "Alibaba PuHuiTi", sans-serif;
  font-size: 42px;
  line-height: 64px;
  text-align: center;
}

.saving-text {
  position: absolute;
  left: 122px;
  top: 44.5px;
  color: #e3a751;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -2.4px;
  white-space: nowrap;
}

.saving-text span {
  letter-spacing: 0.8px;
}

.share-btn {
  position: absolute;
  left: 614px;
  top: 35px;
  width: 249px;
  height: 86px;
  border: 5px solid #bd873d;
  border-radius: 50px;
  color: #e3a751;
  font-size: 46px;
  font-weight: 400;
  line-height: 76px;
  text-align: center;
}

.wallet-value {
  position: absolute;
  left: auto;
  right: 48px;
  top: 1106px;
  width: 560px;
  color: #000000;
  font-size: 48px;
  letter-spacing: 1.92px;
  text-align: right;
  white-space: nowrap;
}

.dashed-line {
  position: absolute;
  left: 47px;
  top: 1192px;
  width: 904px;
  height: 1px;
}

.nav-bar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  width: 1080px;
  height: 243px;
  background: #ffffff;
}

.status-bar {
  position: absolute;
  left: 22px;
  top: 0;
  width: 1033px;
  height: 121px;
}

.time {
  position: absolute;
  left: 33px;
  top: 35.8px;
  width: 149px;
  color: #1f2430;
  font-family: Arial, sans-serif;
  font-size: 41.3px;
  font-weight: 700;
  letter-spacing: -0.83px;
  text-align: center;
}

.cellular {
  position: absolute;
  left: 786.6px;
  top: 45.5px;
  width: 46.8px;
  height: 29.4px;
}

.wifi {
  position: absolute;
  left: 847.2px;
  top: 45.5px;
  width: 42.1px;
  height: 30.2px;
}

.battery {
  position: absolute;
  left: 903.7px;
  top: 45px;
  width: 67px;
  height: 31.2px;
}

.cellular-bars {
  position: absolute;
  left: 786px;
  top: 45px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 48px;
  height: 30px;
}

.cellular-bars i {
  display: block;
  width: 7px;
  border-radius: 4px;
  background: #1f2430;
}

.cellular-bars i:nth-child(1) {
  height: 9px;
}

.cellular-bars i:nth-child(2) {
  height: 15px;
}

.cellular-bars i:nth-child(3) {
  height: 21px;
}

.cellular-bars i:nth-child(4) {
  height: 28px;
}

.wifi-mark {
  position: absolute;
  left: 847px;
  top: 43px;
  width: 43px;
  height: 34px;
}

.wifi-mark i {
  position: absolute;
  left: 50%;
  border: 5px solid #1f2430;
  border-color: #1f2430 transparent transparent transparent;
  border-radius: 50%;
  transform: translateX(-50%);
}

.wifi-mark i:nth-child(1) {
  top: 0;
  width: 43px;
  height: 43px;
}

.wifi-mark i:nth-child(2) {
  top: 9px;
  width: 29px;
  height: 29px;
}

.wifi-mark i:nth-child(3) {
  top: 21px;
  width: 8px;
  height: 8px;
  border: 0;
  background: #1f2430;
}

.battery-mark {
  position: absolute;
  left: 904px;
  top: 45px;
  width: 60px;
  height: 30px;
  border: 3px solid #1f2430;
  border-radius: 7px;
}

.battery-mark::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 8px;
  width: 5px;
  height: 11px;
  border-radius: 0 4px 4px 0;
  background: #1f2430;
}

.battery-mark i {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 46px;
  height: 16px;
  border-radius: 4px;
  background: #1f2430;
}

.back-icon {
  position: absolute;
  left: 66px;
  top: 162px;
  width: 25px;
  height: 42px;
}

.back-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-left: 7px solid #000000;
  border-bottom: 7px solid #000000;
  transform: rotate(45deg);
  transform-origin: center;
}

.nav-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 141px;
  color: #000000;
  font-size: 58px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.info-card {
  position: absolute;
  left: 38px;
  width: 1004px;
  border-radius: 24px;
  background: #ffffff;
}

.charge-card {
  top: 1729px;
  height: 866px;
}

.charge-title {
  left: 89px;
  top: 1775px;
}

.row-label {
  position: absolute;
  color: #61666e;
  font-family: "Alibaba PuHuiTi L3", "Alibaba PuHuiTi", sans-serif;
  font-size: 44px;
  font-weight: 400;
  white-space: nowrap;
}

.row-value {
  position: absolute;
  color: #303036;
  font-family: "Alibaba PuHuiTi L3", "Alibaba PuHuiTi", sans-serif;
  font-size: 44px;
  font-weight: 400;
  white-space: nowrap;
}

.gun-label {
  left: 89px;
  top: 1884px;
  letter-spacing: -4.84px;
}

.gun-value {
  left: auto;
  right: 87px;
  top: 1882px;
  width: 560px;
  font-size: 48px;
  text-align: right;
}

.copy-badge {
  position: absolute;
  width: 145px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.copy-badge img {
  position: absolute;
  left: 0;
  top: 0;
  width: 145px;
  height: 58px;
}

.charge-copy {
  left: 279px;
  top: 1970px;
}

.charge-id {
  left: 466px;
  top: 1970px;
}

.kwh-label {
  left: 89px;
  top: 2057px;
}

.kwh-value {
  left: auto;
  right: 87px;
  top: 2056px;
  width: 560px;
  font-size: 48px;
  text-align: right;
}

.duration-label {
  left: 89px;
  top: 2146px;
}

.duration-value {
  left: auto;
  right: 87px;
  top: 2144px;
  width: 560px;
  font-size: 48px;
  text-align: right;
}

.soc-label {
  left: 89px;
  top: 2274px;
}

.soc-start,
.soc-end {
  position: absolute;
  color: #858a91;
  font-size: 38px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.soc-start {
  left: 439px;
  top: 2247px;
  width: 90px;
}

.soc-end {
  left: 870px;
  top: 2315px;
  width: 90px;
}

.soc-track,
.soc-fill {
  position: absolute;
  height: 12px;
  border-radius: 7px;
}

.soc-track {
  left: 225px;
  top: 2294px;
  width: 704px;
  background: #c9edeb;
}

.soc-fill {
  left: 479px;
  top: 2294px;
  width: 450px;
  background: #1f96e8;
}

.power-label {
  left: 89px;
  top: 2398px;
}

.power-value {
  left: auto;
  right: 87px;
  top: 2401px;
  width: 560px;
  font-size: 48px;
  text-align: right;
}

.voltage-label {
  left: 89px;
  top: 2489px;
}

.voltage-value {
  left: auto;
  right: 87px;
  top: 2483px;
  width: 560px;
  font-size: 48px;
  letter-spacing: 2.4px;
  text-align: right;
}

.order-card {
  top: 2639px;
  height: 774px;
}

.order-info-title {
  left: 88px;
  top: 2684px;
  letter-spacing: 2px;
}

.order-no-label {
  left: 88px;
  top: 2778px;
}

.order-copy {
  left: 311px;
  top: 2779px;
}

.order-no-value {
  left: 495px;
  top: 2779px;
}

.created-label {
  left: 92px;
  top: 2864px;
}

.created-value,
.start-value,
.end-value {
  left: 535px;
  width: 459px;
  text-align: right;
  letter-spacing: 1.76px;
}

.created-value {
  top: 2862px;
}

.start-label {
  left: 88px;
  top: 2950px;
}

.start-value {
  top: 2949px;
}

.end-label {
  left: 92px;
  top: 3042px;
}

.end-value {
  top: 3037px;
}

.finish-label {
  left: 92px;
  top: 3128px;
}

.finish-value {
  left: auto;
  right: 86px;
  top: 3126px;
  width: 560px;
  text-align: right;
}

.pay-label {
  left: 92px;
  top: 3215px;
}

.pay-value {
  left: auto;
  right: 91px;
  top: 3215px;
  width: 560px;
  text-align: right;
}

.plate-label {
  left: 92px;
  top: 3302px;
}

.plate-value {
  left: auto;
  right: 88px;
  top: 3290px;
  width: 560px;
  font-size: 58px;
  text-align: right;
}

.bottom-bar {
  position: absolute;
  left: 0;
  top: 3468px;
  width: 1080px;
  height: 211px;
  background: #ffffff;
}

.bottom-divider {
  position: absolute;
  left: 0;
  top: 0;
  width: 1080px;
  height: 1px;
  background: #e7e7e7;
}

.feedback-icon {
  position: absolute;
  left: 149px;
  top: 32px;
  width: 88px;
  height: 80px;
  object-fit: cover;
}

.feedback-text {
  position: absolute;
  left: 89px;
  top: 122px;
  width: 230px;
  color: #121214;
  font-size: 36px;
  font-weight: 400;
  text-align: center;
}

.review-button {
  position: absolute;
  left: 362px;
  top: 22px;
  width: 619px;
  height: 148px;
  border-radius: 74px;
  background: #094d90;
  color: #ffffff;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 2.88px;
  line-height: 148px;
  text-align: center;
}

.customer-float {
  position: absolute;
  left: 919px;
  top: 3px;
  width: 123px;
  height: 176px;
  border-radius: 63px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 32.5px rgba(0, 0, 0, 0.19);
}

.customer-source {
  position: absolute;
  left: -13px;
  top: -17px;
  width: 160px;
  height: 222px;
  object-fit: cover;
}

.preview-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.preview-layer[hidden] {
  display: none;
}

.preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 430px);
  max-height: 92vh;
}

.preview-panel img {
  max-width: 100%;
  max-height: calc(92vh - 58px);
  border-radius: 10px;
  background: #f6f6f6;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.preview-panel button {
  height: 40px;
  border-radius: 20px;
  padding: 0 22px;
  background: #064f8e;
  color: #ffffff;
  font-size: 15px;
}

@media (max-width: 760px) {
  .page {
    background: #f6f6f6;
  }

  .phone-capture {
    --capture-scale: calc(100vw / 1080);
    flex-basis: 100vw;
    width: 100vw;
    height: calc(3679px * (100vw / 1080));
  }

  .export-tools {
    position: fixed;
    right: 12px;
    bottom: 86px;
    z-index: 10;
    width: min(320px, calc(100vw - 24px));
    max-height: 62vh;
    margin: 0;
  }

  .export-tools button {
    width: 100%;
  }
}
