body{ margin:0; padding:0; }
*{ box-sizing: border-box;}
img{ max-height: 100%; max-width: 100%; }
.warp_box{
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.warp_top{
    background-color: rgb(52 255 41);
    text-align: center;
    padding-top: 16px;
    padding-bottom: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}
.warp_top img{ max-height: 70px; }
.warp_top h4{
    margin: 0;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.125rem;
    line-height: 1.235;
    letter-spacing: 0.00735em;
    font-weight: 700;
}
.warp_top h4.top_title1{
  margin:8px 0px 0px;
}
.warp_top p{
    margin: 8px 0px 0px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.66;
    letter-spacing: 0.03333em;
    font-size: 1rem;
}
.warp_bottom{
    background-color: rgb(2, 0, 2);
    padding: 16px 160px;
    height: 100%;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;

}
.pin_img{ max-width: 300px; margin:25px auto;}
.pin_title{
    margin: 8px 0px 0px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.66;
    letter-spacing: 0.03333em;
    padding-left: 0px;
    padding-right: 0px;
    color: rgb(239, 232, 232);
    font-size: 1rem; 
    text-align: center;
}

.form_box{margin-top: 16px; margin-bottom: 16px;}
.form_box form{    
    display: flex;
    text-align: center;
}
.form_input{
    display: inline-flex;
    flex-direction: column;
    position: relative;
    min-width: 0px;
    padding: 0px;
    margin: 0px;
    border: 0px;
    vertical-align: top;
    width: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 5px 0px 0px 5px;
}
.form_input input{
    border: 0px;
    box-sizing: border-box;
    background: none;
    /*height: 1.4375em;*/
    margin: 0px;
    -webkit-tap-highlight-color: transparent;
    display: block;
    min-width: 0px;
    width: 100%;
    padding: 8.5px 14px;
    height: 40px;
    font-size: 15px;
}
input:focus {
  outline: none;
}
.form_btn{
    min-width: 64px;
    color: rgba(0, 0, 0, 0.87);
    background-color: rgb(52 255 41);
    margin: 0px 0px 0px -5px;
    text-decoration: none;    
    border-radius: 0px 5px 5px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}
.form_btn:hover{background-color: rgb(59 203 51);}
.form_box svg{
    font-size: 1.5rem;
    width: 18px;
    height: 18px;
}

.form_box2 label.label_title{ color:#333; margin: 15px 0 5px 0; display: flex;}
.bx_form_relative{ position: relative; }
.bx_form_relative span{ color:#666666; left: 12px; position: absolute; top: 45%; transform:translateY(-50%); }
.bx_form_relative input{ padding:15px 12px 15px 12px; border-radius: 6px; border:1px solid #e5e6eb; width: 100%;font-size: 14px;}
.bx_form_relative input#name{padding:15px 12px 15px 32px;}
.bx_form_relative input::placeholder{ color:#999; }

#tishi_code{ font-size:14px; color:#f00; margin-top:5px; display: none; transition: 0.3s ease;}

.bx_ts_img{position: relative; display: inline-block;}
.bx_ts_img .tip-img {
    display: none;
    position: absolute;
    left: 105%;
    top: 0;
    width: 180px;
    height: auto;
    z-index: 999;
    max-width: initial;
    max-height: inherit;
    box-shadow: 0 0 10px #333;
    border-radius: 6px;
}
.bx_ts_img a {
    width: 15px;
    height: 15px;
    display: inline-block;
    text-align: center;
    line-height: 15px;
    font-size: 10px;
    text-decoration: none;
    background: #4cacff;
    color: #fff;
    margin-left: 5px;
    border-radius: 50%;
}
.bx_ts_img:hover .tip-img {
    display: block;
}

/*.result_page{ background: #f5f7fa; }*/
.warp_middle{ padding:30px 0; background-color: rgb(52 255 41);}
.result_box{padding: 40px 25px; max-width: 500px; margin: auto; box-shadow: 0px 0px 9px #ffffff; border-radius: 7px; }
.result_box h2{ margin:0 0 30px 0; text-align: center; text-transform: uppercase;}
.result_box .result_info{ padding: 15px 0; border-bottom: 1px dotted #666; margin-top: 10px; }
.result_box .result_info span{ font-weight: bold; text-transform: uppercase; margin-right: 20px; font-size: 14px;}
.result_box p{ font-size:15px; line-height: 25px; color:#666; }

.public_head{background-color: rgb(52 255 41);}
.head_logo{ height: 64px; display: flex;align-items: center; justify-content: center; }
.head_logo img{ max-height:50px; }

.oopspage{ display: flex; align-items: center; justify-content: center; flex-direction: column; padding:50px 20px; text-align: center;}
.not_foundt{
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    color:#f00;
}

.successmsg{ text-align: center; padding: 50px 20px;}
.success_body a{color:#f00;}

.vapecheck img{ max-height: 50px; }
.warp_top h3{
    margin: 8px 0px 8px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.525rem;
    line-height: 1.235;
    letter-spacing: 0.00735em;
    font-weight: 700;
}
.form_box2{ padding:40px 0; max-width: 500px; margin: auto; border-radius: 7px; background: #fff; border:1px solid #e5e6eb; padding: 40px 25px; }
.form_box2 .input_wrap{ margin-top: 20px; }
.form_box2 .input_wrap input{    
    display: block;
    min-width: 0px;
    width: 100%;
    padding: 0 14px;
    height: 50px;
    font-size: 15px;
    box-sizing: border-box;
    border-radius: 6px;
    border:1px solid #e5e6eb;
}
.phone-country-wrapper{ margin-top: 20px; border-radius: 8px; overflow: hidden;display: flex; background: #fff; height: 50px;}

.form_box2 h2.formtitle{ text-align: center; padding: 0 0 15px 0; margin: 0;}

/* 国家下拉框样式 */
.country-select {
    padding: 0 15px;
    font-size: 18px;
    background-color: transparent;
    color: #000;
    border: none;
    border-right: 1px solid #fff; /* 分隔线 */
    outline: none;
    cursor: pointer;
    width: 150px;
}
.country-select option {
    background-color: #1a1a1a; /* 下拉选项深色背景 */
    color: #fff;
}

/* 手机号输入框 */
.phone-country-wrapper #phone {
    flex: 1; /* 占满剩余宽度 */
    padding: 0 14px;
    font-size: 15px;
    background-color: transparent;
    border: none;
    outline: none;
}

.terms-container{margin-top: 20px; display: flex; align-items: center}
.label_agree{ font-size:15px;}
/* 👇 这里是修改后的 checkbox 样式 👇 */
.terms-container input[type="checkbox"] {
    width: 17px;
    height: 17px;
    appearance: none;        /* 清除原生样式 */
    -webkit-appearance: none;
    background: transparent;/* 透明背景 */
    border: 2px solid #333; /* 白色边框 */
    border-radius: 3px;     /* 轻微圆角 */
    cursor: pointer;
    position: relative;
    margin:0 12px 0 0;
}
/* 勾选后的白色对勾 */
.terms-container input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.form_box2 .submit_wrap{ margin-top: 40px; border-radius: 8px; overflow: hidden;}
.submit_btn{
    width: 100%;
    height: 50px;
    padding: 0 14px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit_btn:hover{ background: #000; color:#fff; }

.warp_header {background: #f5f7fa;padding: 10px;}
.index_header{background: #34ff29;}
.change-language-info{ display: flex; justify-content: flex-end;}
.change-language-info ul{ margin:0 15px; list-style: none; padding: 0;}
.change-language-info a{ text-decoration: none; color: #000;}


.black_top{
    background-color: #f00;
    text-align: center;
    padding-top: 16px;
    padding-bottom: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}
.black_top img {
    max-height: 70px;
    filter: brightness(0) invert(1);
}
.black_middle{
    padding: 30px 0;
    background-color: #f00;
}
.black_info{
    padding: 40px 25px;
    /*max-width: 500px;*/
    margin: auto;
    /*box-shadow: 0px 0px 9px #ffffff;*/
    border-radius: 7px;
    color:#fff;
    text-align: center;
}
.black_info h2 {
    margin: 0 0 25px 0;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    font-size: 20px;
    justify-content: center;
    gap: 5px;
}
.black_info h2 span {
    background: #fff;
    border-radius: 50%;
    color: #f00;
    font-size: 14px;
    padding: 4px;
}

.form_box3 {
    padding: 40px 0;
    max-width: 500px;
    margin: auto;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #e5e6eb;
    padding: 40px 25px;
}

.form_box3 .formtitle {
    font-size: 18px;
    text-align: center;
    /* text-transform: uppercase; */
    margin-top: 0;
}
.form_box3 .label_title {
    font-size: 14px;
    color: #666;
}
.form_box3 .bx_form_content{}
.form_box3 .bx_form_content textarea{ width:100%; min-height: 150px; margin: 15px 0; padding:10px;}

.upload-box {
    border: 2px dashed #ccc;
    padding: 5px 30px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 8px;
}
.upload-box:hover {
    border-color: #409eff;
    background-color: #f7fafe;
}
#imageInput {
    display: none;
}
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.preview-item {
    width: 30%;
    /*height: 150px;*/
    border: 1px solid #eee;
    border-radius: 8px;
    /*overflow: hidden;*/
    position: relative;
}
.preview-item img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
}
.preview-item .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}
.preview-item .info {
    font-size: 12px;
    color: #666;
    padding: 5px;
    text-align: center;
    display: none;
}


/*scan css*/
.scan-button {
      background: #34ff29;
      border: none;
      border-radius: 14px;
      padding: 13px 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 18px;
      font-weight: 500;
      color: #000;
      border: 1px solid rgba(0, 0, 0, 0.04);
      width: fit-content;
      min-width: 300px;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      margin: 20px auto;
    }
    
    .scan-button:hover{ background-color: #63f55b; }
    .scan-button:active {
      transform: scale(0.96);
      background: #f0f0f0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .camera-icon {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      color:#000;
    }

    .scan-text {
      letter-spacing: 1px;
    }

    /* 扫描器覆盖层 - 完全全屏，覆盖浏览器UI */
    .scanner-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      background: #000;
      z-index: 2147483647;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      overflow: hidden;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }

    .scanner-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    /* 视频背景铺满全屏 */
    #scanner-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      background: #000;
      will-change: transform;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
    }

    /* 扫描区域框 */
    .scan-frame {
      position: relative;
      width: min(260px, 70vw);
      height: min(260px, 70vw);
      z-index: 10;
      pointer-events: none;
      will-change: transform;
      transform: translateZ(0);
    }

    .corner {
      position: absolute;
      width: 24px;
      height: 24px;
      border-color: #07c160;
      border-style: solid;
    }

    .corner-tl {
      top: 0;
      left: 0;
      border-width: 3px 0 0 3px;
    }

    .corner-tr {
      top: 0;
      right: 0;
      border-width: 3px 3px 0 0;
    }

    .corner-bl {
      bottom: 0;
      left: 0;
      border-width: 0 0 3px 3px;
    }

    .corner-br {
      bottom: 0;
      right: 0;
      border-width: 0 3px 3px 0;
    }

    /* 扫描线动画 - 使用GPU加速 */
    .scan-line {
      position: absolute;
      left: 10%;
      width: 80%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #07c160, #07c160, transparent);
      box-shadow: 0 0 8px #07c160;
      top: 10%;
      animation: scanMove 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
      z-index: 11;
      will-change: top;
      transform: translateZ(0);
    }

    @keyframes scanMove {
      0% {
        top: 10%;
        opacity: 0.6;
      }
      50% {
        top: 85%;
        opacity: 1;
      }
      100% {
        top: 10%;
        opacity: 0.6;
      }
    }

    /* 底部提示文字 */
    .scan-hint {
      position: absolute;
      bottom: max(80px, 12vh);
      color: rgba(255, 255, 255, 0.85);
      font-size: 15px;
      letter-spacing: 1px;
      z-index: 10;
      text-align: center;
      background: rgba(0, 0, 0, 0.5);
      padding: 10px 24px;
      border-radius: 24px;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      pointer-events: none;
    }

    /* 关闭按钮 - 右上角 */
    .close-button {
      position: absolute;
      top: max(20px, env(safe-area-inset-top, 20px));
      right: max(20px, env(safe-area-inset-right, 20px));
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 22px;
      cursor: pointer;
      z-index: 20;
      border: 1.5px solid rgba(255, 255, 255, 0.25);
      transition: all 0.2s ease;
      pointer-events: auto;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .close-button:active {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(0.92);
    }

    /* 轻提示消息 */
    .toast-message {
      position: fixed;
      top: 60px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.85);
      color: white;
      padding: 12px 24px;
      border-radius: 15px;
      font-size: 15px;
      z-index: 2147483648;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
      /*white-space: nowrap;*/
      border: 1px solid rgba(255, 255, 255, 0.2);
      text-align: center;
    }

    .toast-message.show {
      opacity: 1;
    }

    /* 性能优化：隐藏时降低消耗 */
    .scanner-overlay:not(.active) video {
      display: none;
    }

    @media (max-width: 400px) {
      .scan-frame {
        width: 220px;
        height: 220px;
      }
      .close-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
      }
    }
/*scan css end*/

@media (max-width: 991px){
  .warp_top h4{font-size: 1.325rem; line-height: 1.535;}
  .warp_middle { padding: 30px 20px; }
  .warp_bottom{ padding: 16px 20px;}
  .toast-message{ width: 90%; }
}