 @font-face {
      font-family: 'Qwigley';
      src: url(https://shuming-official-file.markyin.com/img/kks/Qwigley-Regular.ttf);
      font-display: swap;
    }

    .missive-page {
      width: 100%;
      height: 100vh;
      display: flex;
      justify-content: center;
      position: relative;
      background: linear-gradient(to bottom, #372B24 0%, #161413 100%);
      overflow: hidden;
    }

    .logo-box {
      width: 121px;
      height: 27px;
      position: absolute;
      top: 10px;
      left: 20px;
      z-index: 10;
    }

    .video-box {
      width: 100%;
      max-width: 630px;
      height: auto;
      max-height: 100vh;
    }

    .video-box video {
      width: 100%;
      height: 100%;
    }

    .step1-box {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      background: url(https://shuming-official-file.markyin.com/img/kks/kks_start.png) no-repeat center/contain;
      opacity: 1;
      z-index: 2;
    }

    .step1-box.hide {
      opacity: 0;
      z-index: 0;
    }

    .step1-box .start-btn {
      width: 209px;
      height: 56px;
      background: url(https://shuming-official-file.markyin.com/img/kks/start-btn.png) no-repeat;
      background-size: contain;
      position: absolute;
      bottom: 68px;
      left: 50%;
      margin-left: -104.5px;
      cursor: pointer;
    }
    

    .ask-dialog-box {
      width: 432px;
      height: 306px;
      background: url(https://shuming-official-file.markyin.com/img/kks/dialog-content-box-bg.png) no-repeat center/contain;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 99;
      display: none;
    }
     .ask-dialog-box-name {
      width: 432px;
      height: 306px;
      background: url(https://shuming-official-file.markyin.com/img/kks/dialog-name-box-bg.png) no-repeat center/contain;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 99;
      display: none;
    }

    .ask-dialog-box #inpText {
      background-color: transparent;
      width: 306px;
      height: 42px;
      border: none;
      outline: none;
      resize: none;
      padding: 6px 22px;
      font-size: 12px;
      color: #947A6B;
      position: absolute;
      top: 114px;
      left: 61px;
    }

    .ask-dialog-box #areaText {
      background-color: transparent;
      width: 306px;
      height: 52px;
      border: none;
      outline: none;
      resize: none;
      padding: 6px 22px;
      font-size: 12px;
      color: #947A6B;
      position: absolute;
      top: 108px;
      left: 61px;
    }

    .ask-dialog-box button {
      width: 130px;
      height: 43px;
      background: url(https://shuming-official-file.markyin.com/img/kks/dialog-submit-btn.png) no-repeat center/contain;
      border: none;
      position: absolute;
      bottom: 76px;
      left: 50%;
      margin-left: -65px;
    }

    .step2-box {
      width: 100%;
      height: 100%;
      position: relative;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
    }

    .step2-box.show {
      opacity: 1;
    }

    .step2-box video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
      z-index: -1;
    }

    .step2-box video.active {
      opacity: 1;
      z-index: 1;
    }

    .missive-content {
      width: 100%;
      max-width: 630px;
      height: 100%;
      position: absolute;
      overflow: hidden;
      opacity: 0;
      transform: scale(0);
      transition: opacity 0.3s ease-in-out, transform 0.6s ease-in-out;
      z-index: 0;
      transform-style: preserve-3d;
    }

    .missive-content.show {
      opacity: 1;
      transform: scale(1);
      z-index: 9999;
    }

    .missive-content .missive-bg {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
    }

    .missive {
      width: 100%;
      max-height: 100%;
      padding: 184px 100px 0 95px;
      position: relative;
      overflow: hidden;
      z-index: 10;
    }

    .missive .content {
      width: 100%;
      height: calc(100% - 184px);
      position: relative;
      z-index: 2;
      padding: 20px;
      box-sizing: border-box;
      user-select: none;
    }

    .missive .missive-text {
      color: #333;
      font-family: Qwigley;
      font-size: 24px;
      line-height: 1.6;
      margin: 0;
      height: calc(100% - 40px);
      white-space: normal;
      word-wrap: break-word;
      overflow: hidden;
    }

    .missive .missive-text br {
      display: block;
      content: "";
      line-height: 1.6em;
    }

    .missive-signature {
      color: #333;
      font-family: Qwigley;
      font-size: 24px;
      text-align: right;
      padding: 0 20px 20px 0;
      position: relative;
      z-index: 2;
      white-space: nowrap;
    }

    .cursor {
      display: inline-block;
      width: 2px;
      height: 16px;
      background-color: #333;
      animation: blink 1s infinite;
      vertical-align: middle;
      margin-left: 2px;
      color: #333;
    }

    @keyframes blink {

      0%,
      50% {
        opacity: 1;
      }

      51%,
      100% {
        opacity: 0;
      }
    }

    /* 隐藏光标当动画完成时 */
    .text-complete .cursor {
      display: none;
    }

    .download-box {
      width: auto;
      margin-top: 8px;
      z-index: 3;
      opacity: 0;
    }

    .download-box .download-icon {
      width: 17px;
      height: 17px;
      margin-right: 8px;
      display: block;
    }

    .download-box span {
      font-size: 16px;
      color: #6F3410;
      text-align: center;
      font-style: normal;
      text-decoration-line: underline;
      display: block;
    }

    .loading-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .loading-img{
      width: 170px;
      height: 170px;
    }
    .loading-spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #161413;
      border-top: 4px solid #f3f3f3;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
      .missive-page {
        height: 100vh;
        overflow: hidden;
      }

      .logo-box {
        width: 90px;
        height: 20px;
        top: 10px;
        left: 15px;
      }

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

      .video-box {
        max-width: 100vw;
        height: 100vh;
      }

      .step1-box,
      .step2-box video {
        width: 100%;
        height: 100%;
      }

      .start-btn {
        width: 150px !important;
        height: 40px !important;
        bottom: 70px !important;
        margin-left: -75px !important;
      }

      .start-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }

      .ask-dialog-box {
        width: 90%;
        max-width: 350px;
        height: 280px;
        background-size: cover;
      }

      .ask-dialog-box #inpText,
      .ask-dialog-box #areaText {
        width: 72%;
        height: 40px;
        top: 100px;
        left: 48px;
        font-size: 12px;
      }

      .ask-dialog-box button {
        width: 110px;
        height: 35px;
        bottom: 60px;
        margin-left: -55px;
      }

      .missive {
        padding: 34% 12% 0 12%;
      }

      .missive .missive-text {
        font-size: 20px;
      }

      .missive-signature {
        font-size: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
      }

      .download-box {
        right: 20px;
        bottom: 150px;
      }

      .missive-content {
        max-width: 100%;
      }
    }

    @media (max-width: 480px) {
      .missive .missive-text {
        font-size: 20px;
      }

      .missive-signature {
        font-size: 20px;
      }

      .ask-dialog-box {
        height: 250px;
      }

      .ask-dialog-box #inpText,
      .ask-dialog-box #areaText {
        top: 88px;
        height: 44px;
        font-size: 12px;
      }

      .missive {
        padding: 34% 12% 0 12%;
      }
    }