/* 动画效果定义 */

/* 淡入向上动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 缩放动画 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 弹窗淡入动画 */
@keyframes popupFadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    1% {
        visibility: visible;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

/* 弹窗缩放动画 */
@keyframes popupScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
        visibility: hidden;
    }
    1% {
        visibility: visible;
    }
    70% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        visibility: visible;
    }
}

/* 弹窗震动效果 */
@keyframes popupShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* 弹窗浮动效果 */
@keyframes popupFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 动画类 */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
    opacity: 0;
}

/* 弹窗动画类 */
.animate-popup-fade-in {
    animation: popupFadeIn 0.5s ease forwards;
    opacity: 0;
    visibility: hidden;
}

.animate-popup-scale-in {
    animation: popupScaleIn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    opacity: 0;
    visibility: hidden;
}

.animate-popup-shake {
    animation: popupShake 0.5s ease-in-out;
}

.animate-popup-float {
    animation: popupFloat 3s ease-in-out infinite;
}

/* 弹窗按钮悬停效果 */
.popup-button-hover {
    transition: all 0.3s ease;
}

.popup-button-hover:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(255, 156, 0, 0.4); */
}

/* 弹窗背景淡入效果 */
.animate-overlay-fade-in {
    animation: popupFadeIn 0.3s ease forwards;
    opacity: 0;
    visibility: hidden;
}

/* 弹窗关闭动画 */
@keyframes popupFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    99% {
        opacity: 0;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes popupScaleOut {
    0% {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        visibility: hidden;
    }
}

.animate-popup-fade-out {
    animation: popupFadeOut 0.3s ease forwards;
}

.animate-popup-scale-out {
    animation: popupScaleOut 0.5s ease forwards;
}

/* 为.box_1内的元素添加初始状态 */
.box_1 .image_1:not(.animate-fade-in-up),
.box_1 .text_1:not(.animate-fade-in-up),
.box_1 .text-wrapper_1:not(.animate-fade-in-up),
.box_1 .group_1:not(.animate-fade-in-up),
.box_1 .image_9:not(.animate-fade-in-up) {
    opacity: 0;
    transform: translateY(30px);
}

/* 确保动画平滑过渡 */
.box_1 * {
    will-change: opacity, transform;
}



/* 弹窗 */
/* 年龄 */
.box_1_nl , .popup{
  background-color: rgba(24, 11, 2, 0.75);
  width: 100%;
  position: fixed;
  height: 100vh;
  justify-content: center;
  z-index: 999999;
  top: 0;
  left: 0;
}

.group_1_nl , .popup-content{
  width: 56.52vw;
  height: 38.18vw;
  background: url(../images/popup/d414966a194ef62940b1432dc0a34b53.png)
    100% no-repeat;
  background-size: 100% 100%;    
  background-repeat: no-repeat;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text_1_nl {
  overflow-wrap: break-word;
  color: #330000;
  font-size: 3.9vw;
  font-family: NataSans-ExtraBold;
  text-align: left;
  white-space: nowrap;    
  line-height: 1;
  margin-top: 10.25vw;
}

.paragraph_1_nl {
  overflow-wrap: break-word;
  font-size: 1.87vw;
  font-family: NataSans-Regular;
  text-align: center;
  white-space: nowrap;    
  line-height: 1.2;
  margin-top: 1.8vw;
  color: #330000;
}

.paragraph_2_nl {
  overflow-wrap: break-word;
  color: #330000;
  font-size: 1.56vw;
  font-family: NataSans-Regular;
  text-align: center;
  line-height: 1.2;
  margin-top: 2.07vw;
}

.box_2_nl {
  width: 36.36vw;
  margin-top: 2.8vw;
}

.text-wrapper_1_nl {
  height: 5.89vw;
  background: url(../images/popup/1edd8c651bfb65357502dd2a9cbdaca1.png)
    100% no-repeat;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 18.18vw;
  cursor: pointer;
}

.text_2_nl {
  width: 14.17vw;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 1.71vw;
  font-family: NataSans-SemiBold;
  text-align: center;
  white-space: nowrap;
  line-height: 1.72vw;
  margin-top: 2vw;
  margin-left: 1.2vw;
}

.text-wrapper_2_nl {
  height: 5.89vw;
  background: url(../images/popup/cd49cea8f7ad987674c25df6072d8c8b.png)
    100% no-repeat;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 18.18vw;
  cursor: pointer;
}

.text_3_nl {
  width: 13.55vw;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 1.71vw;
  font-family: NataSans-SemiBold;
  text-align: center;
  white-space: nowrap;
  line-height: 1.72vw;
  margin-top: 2vw;
  margin-left: 1.6vw;
}


#register-popup-content{
    background: url(../images/popup/3392db5ad9f67de9307c3fbe460c497d.png) 100% no-repeat;
    height: 41vw;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
}
#login-popup-content{
    background: url(../images/popup/3392db5ad9f67de9307c3fbe460c497d.png);
    height: 33vw;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
}

#reset-password-popup-content{
    background: url(../images/popup/3392db5ad9f67de9307c3fbe460c497d.png);
    height: 26vw;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
}

#partner-code-popup-content,#message-popup-content,#prize-popup-content{
    background: url(../images/popup/3392db5ad9f67de9307c3fbe460c497d.png);
    height: 41vw;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    background-repeat: no-repeat;
}

#message-popup-content{
    width: 42vw;
    height: 36vw;
}
#message-popup-content .popup-title{
    color: #721c24;
}
#message-popup-content .popup-title.success{
    color: #155724;
}

.popup-title{
    overflow-wrap: break-word;
    color: #2C0D03;
    font-size: 3.9vw;
    font-family: NataSans-ExtraBold;
    white-space: nowrap;
    line-height: 1;
    font-weight: lighter;
    text-transform: uppercase;
    width: 100%;
    text-align: center;    
    margin-top: 3vw;
    margin-bottom: 1.6vw;
}

#partner-code-popup-content .popup-title{
    margin-top: 5vw;
}

.form-input {
    border-radius: 13px;
    height: 3.44vw;
    width: 43.86vw;
    margin-top: 0.677vw;
    background: #FFD69B;
    padding-left: 2.1354vw;
    color: #2C0D03;
    font-family: Nata Sans;
    font-weight: 600;
    font-size: 1.56vw;
}
.password_div{
    position: relative;
    width: 43.86vw;
    margin: 0 auto;
}
.password_div .password-toggle{
    position: absolute;
    right: 2vw;
    top: 1.2vw;
    width: 2.19vw;
    height: 2.14vw;
}

#signup-button,#login-button,#reset-password-button,#copy-code-button,#winner-submission-button,.redeem-button{
    height: 6.36vw;
    background: url(../images/popup/e1902217d381e7167744704c50694c14.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 19.02vw;
    margin: 0 auto;
    margin-top: 1.5vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
body .redeem-button{
    width: initial;
    padding: 0 2vw;
    background: url(../images/popup/redeem-button.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    line-height: 1.5;
    padding-right: 3vw;
    display: none;
}
/* #reset-password-button{    
    margin: 0;
    margin-top: 1.5vw;
} */
#login-button{
    margin-top: 3vw;
    cursor: pointer;
}

#signup-button span,#login-button span,#reset-password-button span,#copy-code-button span,#winner-submission-button span,.redeem-button span{
    overflow-wrap: break-word;
    color: rgba(255, 255, 255, 1);
    font-size: 2.6vw;
    font-family: NataSans-Bold;
    white-space: nowrap;
    margin-top: 0.5vw;
}

/* 表单样式 */
.form-input:focus {
    outline: none;
    border-color: #ff9f00;
    box-shadow: 0 0 5px rgba(255, 159, 0, 0.3);
}

.password-toggle {
    cursor: pointer;
}

#reset-password-message{
    color: #155724;
}

.registration-message,.copy-code-message {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    background: #fdf3ea;
    color: #FE6B00;
}

.registration-message.success,.copy-code-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.registration-message.error,.copy-code-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.popup-close-btn {
    position: absolute;
    top: -2vw;
    right: -2vw;
    background: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    border: 3px solid #fff;
    font-size: 4vw;
    width: 3.28125vw;
    height: 3.28125vw;
    font-weight: 100;
    line-height: 1.5;
}

.popup-close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.popup-links{
    font-size: 1.1458vw;
    text-align: right;
    width: 43.86vw;
    margin: 0 auto;
    padding-top: 1vw;
    color: #1D1D1B;
    font-family: 'NataSans-SemiBold';
}

.popup-links a{
    color: #1D1D1B;
    font-family: 'NataSans-SemiBold';
}

/* 分享码弹窗样式 */
.partner-code-container {
  text-align: center;    
  padding: 0 4vw;
}

.partner-code-display {
  margin: 3vw 0;
}

.partner-code {
    font-size: 8.125vw;
    color: #2C0D03;
    font-family: NataSans-ExtraBold;
    line-height: 1;
    margin-bottom: 2vw;
}

.partner-code-description {
    font-size: 1.875vw;
    color: #2C0D03;
    margin-bottom: 3vw;
    line-height: 1.5;
    font-family: NataSans-Regular;
}

.prize-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prize-description {
    font-size: 1.875vw;
    color: #2C0D03;
    margin-bottom: 0;
    line-height: 1;
    font-family: NataSans-ExtraBold;
}

.message-description {
    max-width: 80%;
    margin: 0 auto;
    font-size: 1.875vw;
    color: #2C0D03;
    line-height: 1.1;
    font-family: NataSans-ExtraBold;
}
.prize-popup-image{
    max-width: 16vw;
}
.m_block{
    display: none;
}
.pc_block{
    display: block;
}

/* 领奖表单 */
#winner-submission-content{
    background: url(../images/popup/winner_bg.png);
    height: initial;
    max-height: 90vh;
    width: 86vw;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    font-family: 'NataSans-Medium'
}

/* 中奖者提交表单样式 */
.winner-form-container {
    padding: 4vw;
    position: relative;
    width: 100%;
}
@keyframes glow {
    0% { box-shadow: 0 0 5px #ff9a00; }
    50% { box-shadow: 0 0 20px #ff9a00, 0 0 30px #ff6600; }
    100% { box-shadow: 0 0 5px #ff9a00; }
}

.winner-form-container .popup-title {
    text-align: center;
    margin: 0;
    font-size: 3vw;
}

.winner-thanks-message {
    color: #ff6600;
    text-align: center;
    margin-top: 0;
    font-size: 1.5vw;
    margin-bottom: 3vw;
}

#winner-submission-popup .form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5vw;
    flex-wrap: wrap;
}

#winner-submission-popup .form-row.full-width {
    justify-content: center;
}

#winner-submission-popup .form-item {
    flex: 0 0 48%;
    position: relative;
}

#winner-submission-popup .form-row.full-width .form-item {
    flex: 0 0 100%;
    max-width: 100%;
}

#winner-submission-popup .form-item label {
    display: inline-block;
    color: #330000;
    font-weight: bold;
    font-size: 1.8vw;
    position: absolute;
    left: 2vw;
    background: #FFD69B;
    height: 100%;
    top: 0;
    margin: 0;
    padding: 0.8vw 0;
    line-height: 1;
}

#winner-submission-popup .form-input {
    margin: 0;
    width: 100%;
    padding: 0.8vw 1vw;
    border-radius: 5px;
    font-size: 1.5vw;
    box-sizing: border-box;
    text-align: right;
    height: initial;
    line-height: 1;
}

#winner-submission-popup .form-note {
    color: #ff6600;
    text-align: left;
    font-size: 1.5vw;
    line-height: 1.41;
    margin: 0;
    margin-bottom: 3vw;
}

body #prize-popup-content{
    height: initial;
    max-height: 90vh;
    background-size: 100% 100%;
    padding-bottom: 2vw;
}
@media (max-width: 768px) {
    #message-popup-content{
        width: 70vw;
        height: 52vw;
    }
    .popup-title{
        font-size: 7.8vw;
    }
    #message-popup-content .popup-title{
        margin-bottom: 3vw;
    }
    #partner-code-popup-content, #message-popup-content, #prize-popup-content{
        width: 90%;
        height: 65vw;
    }

    .form-input {
        height: 6.88vw;
        width: 76vw;
        font-size: 3.5vw;
        margin-top: 1.2vw;
    }
    .password_div{
        width: 100%;
    }
    .password_div .password-toggle{
        top: 2.4vw;
        width: 4.38vw;
        height: 4.28vw;
        right: 9vw;
    }
    #signup-button,#login-button,#reset-password-button,#copy-code-button,#winner-submission-button,.redeem-button{
        height: 12.72vw;
        width: 38.04vw;
        margin-top: 3vw;
    }
    #signup-button span,#login-button span,#reset-password-button span,#copy-code-button span,#winner-submission-button span,.redeem-button span{
        font-size: 5.2vw;
        margin-top: 1vw;
    }
    .popup-links{
        font-size: 3.5vw;
        width: 87.72%;
        padding-top: 2vw;
        margin-top: 3vw;
    }

    .partner-code-container {
        padding: 0 8vw;
    }
    .partner-code-description {
        font-size: 3.5vw;
    }
    .partner-code{
        font-size: 12vw;
    }
    .prize-description {
        font-size: 3.5vw;
    }
    .message-description {
        font-size: 4vw;
        line-height: 1.2;
    }
    .popup-close-btn {
        top: -4vw;
        right: -4vw;
        width: 6.5625vw;
        height: 6.5625vw;
        font-size: 8vw;
    }
    #signup-button, #login-button, #reset-password-button, #copy-code-button,.redeem-button{
        height: 12.72vw;
        width: 38.04vw;
        margin-top: 5vw;
    }
    #signup-button span, #login-button span, #reset-password-button span, #copy-code-button span,.redeem-button span{
        font-size: 5.2vw;
    }
    .prize-popup-image {
        max-width: 25vw;
    }
    #prize-popup .prize-name{
        font-size: 14px;
    }

    .group_1_nl, .popup-content,#register-popup-content{
        width: 90%;
        height: 65vw;
    }
    #login-popup-content,#reset-password-popup-content{
        height: 65vw;
    }
    #login-popup-content form{
        width: 100%;
    }
    .text_1_nl{
        font-size: 7.8vw;
        margin-top: 20.5vw;
    }
    .paragraph_1_nl{
        font-size: 3.75vw;
    }
    .paragraph_2_nl{
        font-size: 3.75vw;
    }
    .box_2_nl{
        font-size: 3.75vw;
        width: auto;
    }
    .text-wrapper_2_nl,.text-wrapper_1_nl{
        height: 11vw;
        width: 36vw;
    }
    .text_2_nl,.text_3_nl{
        font-size: 3.5vw;
        line-height: 1.8;
        margin-left: 2.5vw;
    }
    .m_block{
        display: block;
    }
    .pc_block{
        display: none;
    }

    #register-popup-content{
        height: 85vw;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }


    .text_faq_q{
        font-size: 4vw;
        line-height: 1.5;
        overflow-wrap: break-word;
        color: rgba(255, 232, 211, 1);
        font-family: NataSans-Bold;
        text-align: left;
        white-space: nowrap;
        cursor: pointer;
    }
    .text_faq_a{
        font-size: 3.5vw;
        line-height: 1.3;
        overflow-wrap: break-word;
        color: rgba(255, 232, 211, 1);
        font-family: NataSans-Regular;
        text-align: justifyLeft;
    }

    .text-wrapper_faq {
        margin: 3.28vw 0 0 10.52vw;
        width: 76vw;
        flex-direction: column;
    }

    .m_block_faq{
        padding-bottom: 10vw;
    }

    /* 领奖表单 */
    #winner-submission-content{
        height: initial;
        width: 90vw;
        background: url(../images/popup/3392db5ad9f67de9307c3fbe460c497d.png);
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    .winner-form-container .popup-title,#winner-submission-popup .form-input,#winner-submission-popup .form-item label{
        font-size: 5vw;
    }
    .winner-thanks-message{
        font-size: 3.5vw;
    }
    #winner-submission-popup .form-row{
        flex-direction: column;
        margin-bottom: 0;
    }
    #winner-submission-popup .form-item label{
        display: none;
    }
    #winner-submission-popup .form-input{
        text-align: left;
        margin-bottom: 1vw;
    }
    #winner-submission-popup .form-note{
        font-size: 3vw;
    }
}



@media (min-width: 1560px) {
    #winner-submission-popup .form-note{
        margin-bottom: 1vw;
    }
    #winner-submission-popup .form-row{
        margin-bottom: 0.5vw;
    }
    .winner-thanks-message{
        margin-bottom: 2vw;
    }
    .winner-form-container{
        padding: 2vw;
    }
}