/* 定义弹窗的样式 */
@media screen and (min-width: 900px) {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .dialog {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    width: 1000px;
    /* height: 700px; */
    overflow: hidden;
    padding: 20px 40px 0;
    left: 50%;
    top: 30px;
    margin-left: -500px;
    height: 66vh;
  }

  .dialog .show-dialog-box {
    width: 50vw;
    margin: 0 auto;
    min-height: 50vh;
    /* margin-top: 20vh; */
    background-color: #FFF;
    padding: 50px;
    position: relative;
  }

  .dialog-header {
    text-align: right;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .dialog-title {
    font-size: 18px;
    font-weight: bold;
  }

  .dialog-close {
    cursor: pointer;
    font-size: 20px;
    user-select: none;
  }

  .dialog-content {
    margin-bottom: 20px;
  }

  .dialog-footer {
    text-align: right;
    margin-top: 30px;
  }

  .dialog-footer button {
    margin-left: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f0a62c;
    color: white;
  }
}

@media screen and (max-width: 500px) {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .dialog {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    width: 85vw;
    margin: 0 auto;
    height: 80vh;
    overflow: auto;
    padding: 20px;
    top: 30px;
  }

  .dialog .show-dialog-box {
    width: 70vw;
    margin: 0 auto;
    min-height: 50vh;
    /* margin-top: 20vh; */
    background-color: #FFF;
    /* padding: 50px; */
    position: relative;
  }

  .dialog-box {
    margin-top: 20px;
    font-size: 14px;
  }

  .dialog-header {
    text-align: right;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .dialog-title {
    font-size: 18px;
    font-weight: bold;
  }

  .dialog-close {
    cursor: pointer;
    font-size: 20px;
    user-select: none;
  }

  .dialog-content {
    margin-bottom: 20px;
  }

  .dialog-footer {
    text-align: right;
    margin-top: 30px;
  }

  .dialog-footer button {
    margin-left: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f0a62c;
    color: white;
  }
}