* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #dde3ec;
  background: #0d1117;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.loading {
  padding: 100px 20px;
  color: #8a94a6;
  text-align: center;
}

.page-shell {
  width: 100%;
  max-width: 588px;
  margin: 0 auto;
  padding: 38px 14px 56px;
}

.hero {
  padding: 28px 18px 24px;
  text-align: center;
}

.hero-mark {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 13px;
  color: #f5d08c;
  border: 1px solid #765a30;
  border-radius: 14px;
  background: #211c14;
  font-size: 12px;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 0;
  color: #f5d08c;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 2px;
}

.hero p {
  margin: 10px 0 0;
  color: #8a94a6;
  font-size: 15px;
}

.notice-box {
  margin: 0 0 18px;
  padding: 13px 16px;
  color: #aeb7c6;
  border: 1px solid #39404b;
  border-radius: 8px;
  background: #141922;
}

.notice-box strong,
.notice-box span {
  display: block;
}

.notice-box strong {
  margin-bottom: 2px;
  color: #e6b35a;
}

.step-section,
.query-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #26303f;
  border-radius: 12px;
  background: #161d27;
}

.step-title {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 18px;
}

.step-title > span {
  display: block;
  width: 31px;
  height: 31px;
  margin-right: 11px;
  color: #15110a;
  border-radius: 50%;
  background: #e6b35a;
  font-weight: bold;
  line-height: 31px;
  text-align: center;
}

.step-title h2,
.query-panel h2 {
  margin: 0;
  color: #f0f3f8;
  font-size: 17px;
  line-height: 1.35;
}

.step-title p,
.query-panel p {
  margin: 3px 0 0;
  color: #778296;
  font-size: 12px;
}

.tier-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -5px;
}

.tier-card {
  display: block;
  width: calc(50% - 10px);
  min-height: 135px;
  margin: 5px;
  padding: 15px;
  color: #cbd2dd;
  border: 1px solid #303a4a;
  border-radius: 10px;
  outline: none;
  background: #1c2533;
  text-align: left;
}

.tier-card:hover,
.tier-card:focus {
  border-color: #8f6d36;
}

.tier-card.is-selected {
  border-color: #e6b35a;
  box-shadow: 0 0 0 1px #e6b35a inset;
  background: #241f18;
}

.tier-card.is-disabled {
  opacity: .46;
}

.tier-heading,
.tier-line,
.tier-remain {
  display: block;
}

.tier-heading {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tier-heading strong {
  overflow: hidden;
  color: #f2f4f8;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-heading em {
  margin-left: 8px;
  color: #f5d08c;
  font-size: 17px;
  font-style: normal;
  font-weight: bold;
  white-space: nowrap;
}

.tier-line {
  color: #8a94a6;
  font-size: 12px;
}

.tier-remain {
  margin-top: 7px;
  color: #54c57d;
  font-size: 12px;
}

.form-group {
  margin-top: 19px;
}

.field-title {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 7px;
}

.field-title label {
  color: #dce2eb;
  font-weight: bold;
}

.field-title span {
  color: #6f7a8c;
  font-size: 12px;
}

.text-input,
.dynamic-row input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #eef1f6;
  border: 1px solid #303b4c;
  border-radius: 7px;
  outline: none;
  background: #101720;
}

.text-input:focus,
.dynamic-row input:focus {
  border-color: #b88b46;
  box-shadow: 0 0 0 2px rgba(230, 179, 90, .12);
}

.dynamic-row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 8px;
}

.row-number {
  display: block;
  width: 27px;
  min-width: 27px;
  height: 27px;
  margin-right: 8px;
  color: #8994a7;
  border-radius: 50%;
  background: #252e3b;
  font-size: 12px;
  line-height: 27px;
  text-align: center;
}

.dynamic-row input {
  -ms-flex: 1;
  flex: 1;
  width: auto;
}

.remove-row,
.link-button {
  border: 0;
  outline: none;
  background: transparent;
}

.remove-row {
  margin-left: 10px;
  padding: 6px 2px;
  color: #df6464;
}

.link-button {
  margin-left: 35px;
  padding: 2px 0;
  color: #e6b35a;
}

.pay-methods {
  display: -ms-flexbox;
  display: flex;
  margin: 0 -5px;
}

.pay-option {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex: 1;
  flex: 1;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 5px;
  padding: 13px;
  font: inherit;
  text-align: left;
  color: #ced5df;
  border: 1px solid #303b4c;
  border-radius: 8px;
  background: #111822;
  cursor: pointer;
}

.pay-option:hover,
.pay-option:focus {
  border-color: #65758c;
}

.pay-option.is-selected {
  color: #f4d393;
  border-color: #e6b35a;
  background: #211c15;
  box-shadow: inset 0 0 0 1px #e6b35a;
}

.pay-option em {
  display: none;
  margin-left: auto;
  color: #e6b35a;
  font-size: 12px;
  font-style: normal;
}

.pay-option.is-selected em {
  display: inline;
}

.pay-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  line-height: 25px;
  text-align: center;
}

.pay-icon.wechat {
  background: #22ac38;
}

.pay-icon.alipay {
  background: #1677ff;
}

.order-summary {
  margin-top: 21px;
  padding: 12px 15px;
  border: 1px solid #2a3545;
  border-radius: 8px;
  background: #111822;
}

.order-summary > div,
.detail-card > div {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #2a3442;
}

.order-summary > div:last-child,
.detail-card > div:last-child {
  border-bottom: 0;
}

.order-summary span,
.detail-card span {
  color: #8691a3;
}

.order-summary strong,
.detail-card strong {
  max-width: 68%;
  color: #dce2eb;
  overflow-wrap: break-word;
  text-align: right;
}

.order-summary .summary-total {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid #2a3545;
}

.order-summary .summary-total strong {
  color: #f5d08c;
  font-size: 19px;
}

.form-error,
.query-error {
  display: none;
  margin-top: 12px;
  padding: 9px 12px;
  color: #ff8b8b;
  border: 1px solid #633333;
  border-radius: 6px;
  background: #28191b;
}

.query-error:not(:empty) {
  display: block;
}

.primary-button,
.secondary-button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  outline: none;
  font-weight: bold;
}

.primary-button {
  margin-top: 15px;
  color: #21170a;
  background: #e6b35a;
}

.primary-button:hover,
.primary-button:focus {
  background: #f0c371;
}

.primary-button:disabled {
  color: #7d7261;
  background: #4b4235;
}

.query-panel h2 {
  color: #dce2eb;
}

.query-entry {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid #26303f;
  border-radius: 12px;
  background: #151c26;
}

.query-entry h2 {
  margin: 0 0 4px;
  color: #dce2eb;
  font-size: 16px;
}

.query-entry p {
  margin: 0;
  color: #778296;
  font-size: 12px;
}

.query-entry button {
  height: 38px;
  margin-left: 20px;
  padding: 0 18px;
  white-space: nowrap;
  color: #e6b35a;
  border: 1px solid #665536;
  border-radius: 7px;
  background: #211c15;
}

.query-page-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 35px 20px 60px;
}

.standalone-query {
  padding: 25px;
}

.query-form-group {
  margin-top: 17px;
}

.query-form-group label {
  display: block;
  margin-bottom: 7px;
  color: #aeb7c5;
  font-size: 13px;
}

.standalone-query .primary-button {
  margin-top: 18px;
}

.query-page-shell > .secondary-button {
  margin-top: 14px;
}

.status-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 74px 20px 60px;
  text-align: center;
}

.status-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 20px;
  border-radius: 18px;
  color: #0d1117;
  font-size: 36px;
  font-weight: bold;
  line-height: 65px;
  text-align: center;
}

.status-icon.waiting {
  background: #56b8dd;
}

.status-icon.processing {
  background: #e6b35a;
}

.status-icon.success {
  background: #54d28a;
}

.status-icon.failed {
  color: #fff;
  background: #d95757;
}

.status-icon.closed {
  color: #34313a;
  background: #a6a5aa;
}

.status-shell h1 {
  margin: 0;
  color: #ecf0f5;
  font-size: 25px;
}

.status-subtitle {
  margin: 8px 0 0;
  color: #8792a6;
  font-size: 16px;
}

.payment-amount {
  margin: 20px 0 12px;
  color: #e6b35a;
  font-size: 17px;
}

.payment-amount strong {
  font-size: 23px;
}

.qr-card {
  width: 246px;
  min-height: 246px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

.payment-qrcode,
.payment-qrcode canvas,
.payment-qrcode img,
.payment-qrcode table {
  display: block;
  width: 226px;
  height: 226px;
  margin: 0 auto;
}

.qr-missing {
  color: #58606b;
  line-height: 226px;
}

.qr-hint,
.countdown {
  color: #8190a8;
}

.qr-hint {
  margin: 12px 0 8px;
}

.countdown {
  margin: 0 0 16px;
}

.countdown strong {
  color: #e6b35a;
}

.detail-card,
.save-card,
.status-error {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid #2b3748;
  border-radius: 12px;
  background: #18212d;
  text-align: left;
}

.save-card {
  color: #4fd17d;
  border-color: #286440;
  background: #10261e;
}

.save-card p {
  margin: 0 0 10px;
}

.save-card > div {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  -ms-flex-align: center;
  justify-content: space-between;
  align-items: center;
}

.save-card strong {
  color: #f5d08c;
  font-size: 18px;
  word-break: break-all;
}

.save-card button {
  margin-left: 12px;
  padding: 7px 17px;
  color: #4fd17d;
  border: 1px solid #3fb96f;
  border-radius: 7px;
  background: transparent;
}

.status-error {
  color: #f08b8b;
  border-color: #633333;
  background: #28191b;
}

.secondary-button {
  margin-top: 16px;
  color: #dce2eb;
  border: 1px solid #303c4e;
  background: #1c2737;
}

.secondary-button:hover,
.secondary-button:focus {
  background: #253247;
}

.simple-status {
  padding-top: 145px;
}

@media screen and (max-width: 560px) {
  .page-shell {
    padding-top: 18px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .step-section,
  .query-panel {
    padding: 17px 14px;
  }

  .tier-card {
    width: calc(100% - 10px);
  }

  .pay-methods {
    display: block;
    margin: 0;
  }

  .pay-option {
    width: 100%;
    margin: 0 0 8px;
  }

  .query-entry {
    display: block;
  }

  .query-entry button {
    width: 100%;
    margin: 14px 0 0;
  }

  .pay-option {
    margin: 0 0 8px;
  }

  .status-shell {
    padding: 45px 12px 40px;
  }

  .detail-card,
  .save-card {
    padding: 17px 15px;
  }

  .detail-card strong {
    max-width: 62%;
  }
}
