.main-container {
    max-width: 1200px;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.coupon_luck {
    overflow: hidden;
}

.content-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 53px;

}

.lottery-wrap {
    flex: 1;
    width: 470px;
    min-width: 470px;
    max-width: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(347deg, #2665D0 0%, #6CFDD4 100%, #6CFDC1 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 2px;
    position: relative;
}

.mark {
    width: 244px;
    height: 185px;
    position: absolute;
    right: 0px;
    top: 0px;
    background: url(../image/mark.webp) no-repeat center top;
    background-size: 244px 88px;
    z-index: 10;
}

.mark img {
    position: absolute;
    left: 68%;
    top: -48px;
    /* 让图片超出背景图上方，可根据实际调整 */
    transform: translateX(-50%);
    width: 188px;
    height: 115px;
    /* 比 .mark 高，超出显示 */
    width: auto;
    z-index: 11;
    pointer-events: none;
}

.lottery-section {
    width: 100%;
    height: 100%;
    background: linear-gradient(123deg, rgba(11, 134, 234, 0.4) 0%, rgba(0, 0, 0, 0) 25%), #081027;
    border-radius: 20px;
    padding: 10px 24px 16px;

}

.lottery-section .prize-grid img {
    width: 52px;
    height: 52px;
}

.lottery_title,
.section-title {
    margin-bottom: 33px;
    width: 100%;
    font-weight: 400;
    font-size: 40px;
    color: #FFFFFF;
    line-height: 49px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    font-family: 'Oswald';
}

.lottery-container {
    position: relative;
    width: 100%;
    height: 408px;
    margin: 0 auto;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

.prize-grid {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(4, 96px);
    grid-template-columns: repeat(4, 96px);
    gap: 8px;
    z-index: 2;

    justify-content: center;
    align-content: center;
}

.prize-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(38, 101, 208, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(38, 101, 208, 0.5);
    transition: all 0.3s ease;

    border: 2px solid transparent;
    min-width: 0;
    min-height: 0;
    height: 96px;
    width: 96px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    cursor: default;
    box-sizing: border-box;
}

.prize-container.highlight {

    background: rgba(38, 101, 208, 0.5);
    box-shadow: 0px 0px 25px 0px rgba(11, 134, 234, 0.7), 0px 0px 5px 0px #0B86EA;
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image:
        linear-gradient(rgba(38, 101, 208, 0.5), rgba(38, 101, 208, 0.5)),
        linear-gradient(180deg, #6CFDAD, #0B86EA);
    z-index: 5;
}

.prize-icon {
    /*    font-size: 2.1rem;
    margin-bottom: 4px; */
    transition: all 0.3s ease;
}

.prize-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
    text-align: center;
    transition: all 0.3s ease;
}

.prize-probability {
    font-size: 0.78rem;
    color: #666;
}

.lottery-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: url(../image/coupon_luck/start.png) no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;

}

.lottery-center:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

html[lang='es'] .lottery-center .btn-text,
html[lang='fr'] .lottery-center .btn-text,
html[lang='pt'] .lottery-center .btn-text {
    font-size: 25px;
}

.lottery-center .btn-text {
    font-weight: 400;
    font-size: 36px;
    color: #FFFFFF;
    line-height: 44px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5), 0px 4px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Oswald';
    margin-top: -17px;
    cursor: pointer;
    /* 禁止有光标 */
    user-select: none;
    /* 禁止选中 */
}

.lottery-center.disabled {
    pointer-events: none;
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.95);
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transform: scale(1.05);
}

.loading.show {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff4b2b;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff4b2b;
    opacity: 0;
    animation: confetti 1s ease-in forwards;
    pointer-events: none;
    z-index: 99;
}

/* 中奖结果展示区域 - 在prize-grid内部 */
.result-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b1838;
    border-radius: 10px 10px 10px 10px;
    border: 1px solid rgba(38, 101, 208, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.9);
    padding: 20px;
    text-align: center;
}

.result-display.show {
    opacity: 1;
    pointer-events: all;
    transform: scale(1.05);
}

.result-icon {
    font-size: 5rem;
    color: #ff4b2b;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.result-icon img {
    width: 100px;
    height: 100px;
}

.result-title {
    font-weight: 400;
    font-size: 32px;
    color: #FFFFFF;
    line-height: 39px;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Oswald';
}

.result-code {
    /* display: none; */
}

.result-name,
.result-code {
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 27px;
    color: #fff;
    margin-bottom: 15px;

}

.result-code span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-code span.copy img {
    display: block;
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

.result-probability {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.action-btn {
    padding: 14px 40px;
    font-size: 1.2rem;
    background: linear-gradient(141deg, #6CFDAD 0%, #1C53D4 100%);
    border-radius: 159px 159px 159px 159px;
    border: 1px solid;
    border-image: linear-gradient(145deg, rgba(108.00000116229057, 253.0000001192093, 173.00000488758087, 1), rgba(45.50885081291199, 115.26880592107773, 233.7500050663948, 1)) 1 1;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;

    font-weight: 600;
    width: 100%;
    max-width: 250px;
    margin-top: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(38, 101, 208, 0.6);
}

.action-btn:active {
    transform: translateY(1px);
}

.info-section {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(301deg, #2665D0 0%, #6CFDD4 100%, #6CFDC1 100%);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0 2px;
}

.section-title {
    margin-left: 24px;
    margin-bottom: 10px;
}

.instructions {
    height: 480px;
    background: #081027;
    border-radius: 20px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 400;
    padding: 20px 24px;
}

.info_wrap {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
}

.instructions h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions p {
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 21px;
    margin-bottom: 15px;
    padding-left: 10px;

}

.instructions p span {
    color: red;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.winner-list {
    margin-top: 25px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.winner-list h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.winner-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    margin-bottom: 10px;
    animation: slideIn 0.5s ease;
}


.attempts-info {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 21px;
    margin-top: 8px;
    font-weight: 500;
    display: inline-block;
}

.attempts-info #attemptsLeft {
    font-weight: 700;
    font-size: 14px;
    color: #6CFDAD;
    line-height: 21px;
    padding: 0 10px;
}


.copy_success {
    position: fixed;
    top: 40%;
    left: 50%;
    background-color: #f0f9eb;
    color: #67c23a;
    width: 200px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    transform: translateX(-50%);
    z-index: 999;
    display: none;
    border-radius: 10px;
    text-align: center;
}

.copy_success.show {
    display: block;
}

.winner-section {
    width: 100%;
    min-height: 464px;
    background: linear-gradient(301deg, #2665D0 0%, #6CFDD4 100%, #6CFDC1 100%);
    margin-top: 32px;
    border-radius: 20px;
    padding: 16px 2px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 63px;
}

.winner-title {
    font-weight: 400;
    font-size: 40px;
    color: #FFFFFF;
    line-height: 39px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: 'Oswald';
    margin-bottom: 16px;
}

.winner-wrap {
    width: 100%;
    min-height: 400px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url(../image/coupon_luck/winner-wrap.webp)no-repeat #081027;
    background-size:cover;
    border-radius: 20px;
}

.winner-marquee {
    width: 481px;
    height: 360px;
    overflow: hidden;
    position: relative;
    background: #081028;
    border-radius: 10px;
z-index: 8;
padding: 10px 0;
margin-top: 16px;

}

.winner-wrap::before {
    content: "";
    width: 100%;
    height: 100%;
    background:url(../image/coupon_luck/light.webp) no-repeat ;
    background-size: 100% 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
   
}



#winnerList {
    list-style: none;
    padding: 0;
    margin: 0;
   
    position: relative;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform;

}

#winnerList li {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;

}
#winnerList li span:nth-child(1){
    width: 50%;
    padding-left: 20px;
}
.winner-info {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.winner-prize,
.winner-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.solution-content {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 25px;
    border: 1px solid #d0e3ff;
}

.solution-steps {
    margin-top: 20px;
}

.step {
    margin-bottom: 25px;
    padding-left: 30px;
    position: relative;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2980b9;
}

.fixed-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #27ae60;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 1000;
}

.fixed-banner.show {
    transform: translateY(0);
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes winPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 25px #ff4b2b, 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px #ff4b2b, 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 25px #ff4b2b, 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width:1024px) {
    .content-container {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        padding: 0 8px;
        align-items: stretch;
        /* 新增，确保子元素撑满 */
    }

    .prize-container {
        width: 90px !important;
        height: 90px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        font-size: 13px;
    }

    .prize-grid {
        gap: 5px !important;
        grid-template-rows: repeat(4, 90px);
        grid-template-columns: repeat(4, 90px);
    }

    .lottery-wrap,
    .info-section {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        box-sizing: border-box;
        /* 清除浮动和绝对定位 */
        float: none !important;
        position: static !important;
        display: block !important;
    }

    .lottery-wrap {
        margin: 30px 0 36px 0 !important;
    }

    .lottery-section {
        padding: 12px 8px;
    }

    .info-section {
        margin-bottom: 16px;
        padding: 0 0px;
    }

    .info_wrap {
        position: static !important;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .result-display.show {
        transform: scale(1.05);
    }

    .instructions {
        height: auto;
    }

    .lottery_title,
    .section-title {
        font-size: 30px;
    }

    .instructions {
        padding: 10px 0px;
    }

    .instructions p {
        margin-bottom: 10px;
    }

    .section-title {
        margin-top: 10px;
        margin-left: 10px;
        margin-bottom: 10px;
    }

    .lottery-container {
        height: auto;
    }

    .mark {
        width: 60vw;
        height: 40vw;
        min-width: 140px;
        min-height: 100px;
        max-width: 240px;
        max-height: 180px;
        background-size: 100% auto;
    }

    .mark img {
        width: 85%;
        height: auto;
        left: 58%;
        top: -35%;
        transform: translateX(-50%);
        z-index: 11;
    }

    .lottery_title {
        margin-bottom: 20px;
    }
    .winner-wrap{
        background: #081027;
    }
    .winner-sectionALl{
        padding:  0 8px;
    }
}

@media (max-width: 650px) {
    .info_wrap {
        position: static !important;
        left: auto;
        right: auto;
        bottom: auto;
    }
}

@media (max-width: 500px) {
    .info_wrap {
        position: static !important;
        left: auto;
        right: auto;
        bottom: auto;
    }



    .mark {
        width: 60vw;
        height: 40vw;
        min-width: 140px;
        min-height: 100px;
        max-width: 240px;
        max-height: 180px;
        background-size: 100% auto;
    }

    .mark img {
        width: 85%;
        height: auto;
        left: 58%;
        top: -35%;
        transform: translateX(-50%);
        z-index: 11;
    }
}

@media (max-width: 375px) {
    .prize-container {
        width: 80px !important;
        height: 80px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        font-size: 13px;
    }

    .prize-grid {
        gap: 5px !important;
        grid-template-rows: repeat(4, 80px);
        grid-template-columns: repeat(4, 80px);
    }

    .lottery-section .prize-grid img {
        width: 40px;
        height: 40px;
    }

    .prize-name {
        font-size: 12px;
    }

    .lottery-center {
        width: 150px;
        height: 150px;
    }

    .lottery-center .btn-text {
        font-size: 20px;
    }

    .lottery_title,
    .section-title {
        font-size: 24px;
    }
}