/* style.css */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: #f4f6fa;
  color: #333;
  font-size: 16px;
}

.container {
  max-width: 375px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.5rem 0;
}

.logo {
  width: 20.6rem;
  height: 3.7rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1rem 1.6rem 2.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.amount {
  font-size: 32px;
  color: #ff0000;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.note {
  font-size: 14px;
  color: #888;
  line-height: 20px;
  margin-top: 1rem;
}

.qr {
  text-align: center;
  margin: 1rem 0;
}

.qr img {
  width: 150px;
  height: 150px;
}

.addr-type {
  text-align: center;
  font-weight: bold;
  margin: 0.5rem 0;
}

.address {
  word-break: break-all;
  text-align: center;
  font-size: 16px;
  color: #383c4b;
  font-weight: 600;
  margin: 1rem auto;
  line-height: 16px;
}
.line {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 3rem auto 1rem;
}
.info-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}
.info-item .label {
  width: 80px;
}
.info-item p {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

button {
  width: 7.2rem;
  height: 2.6rem;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 10rem;
  border: 1px solid #383c4b;
  color: #383c4b;
}

h2 {
  font-size: 16px;
  margin-bottom: 1.6rem;
}
.card ol {
  list-style: decimal;
  margin-left: 1.5em; /* 可选：确保数字不被缩进隐藏 */
}
.card ol li {
  font-size: 14px;
  color: #495066;
  line-height: 20px;
  margin-top: 1rem;
}

#countdown {
  font-weight: bold;
  color: #333;
  margin-top: 0.5rem;
}

/* 大屏 1920px 样式 */
.pc-layout header {
  width: 865px;
  margin: 0 auto;
  justify-content: space-between;
}
.pc-layout .logo {
  width: 244px;
  height: 44px;
}
.pc-layout .header-right {
  display: flex;
  align-items: center;
}
.pc-layout .usdt-text {
  font-size: 24px;
  font-weight: 600;
}
.pc-layout .trc-text {
  width: 120px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  color: #383c4b;
}

.pc-layout .card {
  width: 865px;
  margin: 0 auto;
  border-radius: 40px;
  background: linear-gradient(to bottom, #ffffff 70%, #f4f6fa 100%);
  box-shadow: none;
}
.pc-layout .qr {
  margin-top: 40px;
}
.pc-layout .qr img {
  width: 200px;
  height: 200px;
}
.pc-layout .form-item-wrap {
  position: relative;
  width: 564px;
  margin: 30px auto;
}
.pc-layout .form-item-wrap .label {
  font-size: 16px;
  font-weight: 400;
  color: #495066;
}
.pc-layout .form-item-wrap input {
  width: 564px;
  height: 53px;
  border-radius: 6px;
  border: 1px solid #cccccc;
  margin: 10px auto;
  padding: 10px;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 600;
  color: #383c4b;
  background: #fff;
}
.pc-layout .form-item-wrap input:disabled {
  background: #fff;
}

.pc-layout .form-item-wrap .copy-btn {
  position: absolute;
  right: 14px;
  top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 93px;
  height: 31px;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
}
.pc-layout .form-item-wrap .copy-btn img {
  display: block;
  width: 20px;
  height: 20px;
}
.pc-layout .form-item-wrap .tips {
  font-size: 12px;
  color: #495066;
}
.pc-layout .tips-wrap {
  /* width: 564px; */
  margin: 30px auto 30px 157px;
}
.pc-layout .card ol li {
  font-size: 16px;
  color: #495066;
}
.pc-layout .footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  border-radius: 50px 50px 0 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.pc-layout .footer-left .label {
  font-size: 14px;
  line-height: 14px;
  color: #495066;
  margin-top: 20px;
}
.pc-layout .footer-left .money {
  font-size: 30px;
  color: #383c4b;
  line-height: 30px;
  margin: 16px auto;
}
.pc-layout .footer-right {
  margin-left: 144px;
}
.pc-layout .footer-item {
  display: flex;
  margin: 27px auto;
}
.pc-layout .footer-item .label {
  font-size: 14px;
  line-height: 16px;
  color: #495066;
}
.pc-layout .footer-item .value {
  font-size: 16px;
  line-height: 16px;
  color: #495066;
}
#pcCountdown {
  font-weight: bold;
  color: #333;
}

.dialog {
  display: none; /* 初始隐藏 */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 0;
  text-align: center;
  white-space: nowrap;
  overflow: auto;
  z-index: 999;
}

.dialog.show {
  display: block;
}

.dialog:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}
.dialog-wrap {
  display: inline-block;
  font-size: 14px;
  vertical-align: middle;
  text-align: left;
  white-space: normal;
}
.dialog-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dialog-content-wrap {
  width: 640px;
  background-color: #fff;
  border-radius: 12px;
  font-size: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dialog-content-wrap .circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* background-color: #e0e0e0; */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  margin: 10px;
  border: 3px solid;
}
.dialog-content-wrap .success {
  border-color: #4caf50; /* 绿色 */
  color: #4caf50;
}

.dialog-content-wrap .error {
  border-color: #f44336; /* 红色 */
  color: #f44336;
}
.dialog-icon-wrap {
  margin: 40px auto 0;
}
.dialog-content-wrap .dialog-text {
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
  color: #333;
  text-align: center;
  margin-top: 20px;
}
.dialog-content-wrap .dialog-body-wrap {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
}
.dialog-info-item {
  margin-top: 20px;
  width: 420px;
}
.dialog-info-item .info-label {
  margin-top: 10px;
  font-size: 16px;
  color: #666;
}
.dialog-info-item .info-value {
  margin-top: 10px;
  font-size: 20px;
  color: #333;
}
.dialog-footer {
  /* border: 1px solid red; */
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0 40px;
  box-sizing: border-box;
  margin: 20px auto 40px;
}
.dialog-footer a {
  background: linear-gradient(to right, #4684ff, #81aaff);
  color: #fff;
  border: 0 none;
  display: inline-block;
  width: 128px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 10px;
}

/* 手机端显示dialog样式 */
@media screen and (max-width: 540px) {
  .dialog-content-wrap {
    width: 30rem;
  }
  .dialog-content-wrap .circle {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;

    font-size: 4.8rem;
    margin: 1rem;
    border: 0.3rem solid;
  }
  .dialog-content-wrap .success {
    border-color: #4caf50; /* 绿色 */
    color: #4caf50;
  }

  .dialog-content-wrap .error {
    border-color: #f44336; /* 红色 */
    color: #f44336;
  }
  .dialog-icon-wrap {
    margin: 4rem auto 0;
  }
  .dialog-content-wrap .dialog-text {
    font-size: 2rem;
    font-weight: 700;
    line-height: 3rem;
    color: #333;
    text-align: center;
    margin-top: 2rem;
  }

  .dialog-info-item {
    margin-top: 2rem;
    width: 22rem;
  }
  .dialog-info-item .info-label {
    margin-top: 1rem;
    font-size: 2rem;
    color: #666;
  }
  .dialog-info-item .info-value {
    margin-top: 1rem;
    font-size: 2rem;
    color: #333;
  }
  .dialog-footer {
    /* border: 1px solid red; */
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0 2rem;
    box-sizing: border-box;
    margin: 2rem auto 2rem;
  }
  .dialog-footer button {
    background: linear-gradient(to right, #4684ff, #81aaff);
    color: #fff;
    border: 0 none;
    height: 4.8rem;
  }
}

/* 默认：手机端显示，PC端隐藏 */
.mobile-layout {
  display: block;
}
.pc-layout {
  display: none;
}

/* PC端显示，隐藏手机结构 */
@media screen and (min-width: 768px) {
  .pc-layout {
    display: block;
  }
  .mobile-layout {
    display: none;
  }
}
