﻿html{
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Microsoft Yahei, sans-serif;
    background: #a22623;
}

section {
    position: relative;
}

@media only screen and (min-width: 769px) {
    html{
        overflow-x: auto;
    }

    body{
        position: relative;
        min-width: 1200px;
        margin: 0 auto !important;
        overflow-x: hidden;
    }

    .web-version{
        display: block;
        text-align: center;
    }

    .wap-version{
        display: none;
    }
    
    .branding-logo {
        position: absolute;
        width: 250px;
        left: 5%;
        top: 5%;
        z-index: 1;
    }

    .branding-logo img {
        width: 100%;
    }

    #particles-js {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .background{
        position: relative;
        background: url('../image/web-bg.png') no-repeat top;
        background-attachment: fixed;
        background-size: cover;
        width: 100%;
    }

    .content{
        min-height: 100vh;
        display: grid;
        place-content: center;
    }

    .title {
        position: relative;
        margin: 0 auto;
        top: 0;
        z-index: 100;
    }

    .title img {
        width: 800px;
    }

    .button-list {
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 40px;
        margin-top: 0px;
        padding-bottom: 20px;
        z-index: 100;
    }

    .about{
        position: relative;
    }

    .about img{
        width: 280px;
        cursor: pointer;
    }

    .rule{
        position: relative;
    }

    .rule img{
        width: 280px;
        cursor: pointer;
    }

    /* 活动时间 modal */
    #aboutModal{
        overflow-x: auto;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #aboutModal .modal-dialog{
        max-width: 700px;
        top: 15%;
    }

    #aboutModal .modal-content{
        position: relative;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    #aboutModal .close-button{
        position: absolute;
        right: 5px;
        top: 5px;
        text-align: right;
        z-index: 10;
        cursor: pointer;
    }

    #aboutModal .close-button img{
        width: 60px;
    }

    /* background */
    #aboutModal .modal-body img{
        width: 100%;
    }

    #aboutModal .modal-body .modal-body-content{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    #aboutModal .modal-body .modal-body-content .modal-title img{
        width: 300px;
    }

    #aboutModal .modal-body .modal-body-content .modal-detail{
        padding-top: 50px;
    }

    #aboutModal .modal-body .modal-body-content .modal-detail .detail-content{
        font-size: 23px;
        font-weight: bold;
        color: #B77029;
        line-height: 3;
    }

    #aboutModal .modal-body .modal-body-content .modal-detail img{
        width: 500px;
    }

    /* 活动规则 modal */
    #ruleModal{
        overflow-x: auto;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #ruleModal .modal-dialog{
        max-width: 700px;
        top: 6%;
    }

    #ruleModal .modal-content{
        position: relative;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    #ruleModal .close-button{
        position: absolute;
        right: 5px;
        top: -10px;
        text-align: right;
        z-index: 10;
        cursor: pointer;
    }

    #ruleModal .close-button img{
        width: 60px;
    }

    /* background */
    #ruleModal .modal-body img{
        width: 100%;
    }

    #ruleModal .modal-body .modal-body-content{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    #ruleModal .modal-body .modal-body-content .modal-title img{
        width: 280px;
        margin-top: -10px;
    }

    #ruleModal .modal-body .modal-body-content .modal-detail{
        height: 480px;
        margin: 0 45px;
        margin-right: 40px;
        padding-top: 30px;
        padding-bottom: 30px;
        overflow-y: scroll;
    }

    #ruleModal .modal-body .modal-body-content .modal-detail img{
        width: 560px;
    }

    /* width */
    #ruleModal ::-webkit-scrollbar {
        width: 10px;
    }
    
    /* Track */
    #ruleModal ::-webkit-scrollbar-track {
        background: #DEDEDE;  
        border-radius: 10px;
    }
    
    /* Handle */
    #ruleModal ::-webkit-scrollbar-thumb {
        background: #9A7B67;  
        border-radius: 10px;
    }
    
    /* Handle on hover */
    #ruleModal ::-webkit-scrollbar-thumb:hover {
        background: #9A7B67; 
    }

    ::-webkit-scrollbar {
        width: 0px;
    }
}

@media only screen and (max-width: 769px) {
    .web-version{
        display: none;
    }

    .wap-version{
        display: block;
    }

    .branding-logo {
        position: absolute;
        width: 50vw;
        margin: 0 auto;
        left: 0;
        right: 0;
        top: 10%;
    }

    .branding-logo img {
        width: 100%;
    }
    
    .background{
        background: url('../image/mobile-bg.png') no-repeat top;
        background-attachment: fixed;
        background-size: cover;
        width: 100%;
        /* overflow-y: auto; */
    }

    .content{
        text-align: center;
        padding-bottom: 2vw;
        min-height: 100vh;
        display: grid;
        place-content: center;
    }

    .title{
        position: relative;
        margin: 0 auto;
        padding-top: 4vw;
        z-index: 10;
    }

    .title img{
        width: 100%;
    }

    .about{
        position: relative;
        width: 55vw;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 3vw;
        padding-bottom: 5vw;
    }
    
    .rule{
        position: relative;
        width: 55vw;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about img, .rule img{
        width: 100%;
    }

    /* 活动时间 modal */
    #aboutModal{
        overflow-x: auto;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #aboutModal .modal-dialog{
        top: 15%;
    }

    #aboutModal .modal-content{
        position: relative;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    #aboutModal .close-button{
        position: absolute;
        right: 7vw;
        text-align: right;
        z-index: 10;
        cursor: pointer;
    }

    #aboutModal .close-button img{
        width: 14vw;
    }

    /* background */    
    #aboutModal .modal-body{
        position: relative;
        width: 85%;
        height: max-content;
        margin: 0 auto;
    }
    
    #aboutModal .modal-body img{
        width: 100%;
    }

    #aboutModal .modal-body .modal-body-content{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        text-align: center;
    }

    #aboutModal .modal-body .modal-body-content .modal-title img{
        width: 40vw;
    }

    #aboutModal .modal-body .modal-body-content .modal-detail{
        position: relative;
        width: 100%;
        padding: 0 4vw;
        top: 8vw;
    }
    
    #aboutModal .modal-body .modal-body-content .modal-detail .detail-content {
        font-size: 3.5vw;
        font-weight: bold;
        line-height: 2.5;
        color: #B77029;
    }

    #aboutModal .modal-body .modal-body-content .modal-detail img{
        width: 70%;
    }

    @media only screen and (min-width: 576px){
        #aboutModal .modal-dialog{
            max-width: 100%;
        }
    }

    /* 活动规则 modal */
    #ruleModal{
        overflow-x: auto;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #ruleModal .modal-dialog{
        top: 4%;
    }

    #ruleModal .modal-content{
        position: relative;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    #ruleModal .close-button{
        position: absolute;
        right: 3vw;
        text-align: right;
        z-index: 10;
        cursor: pointer;
    }

    #ruleModal .close-button img{
        width: 14vw;
    }

    /* background */   
    #aboutModal .modal-body{
        position: relative;
    }
    
    #ruleModal .modal-body img{
        width: 100%;
    }

    #ruleModal .modal-body .modal-body-content{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        text-align: center;
    }

    #ruleModal .modal-body .modal-body-content .modal-title img{
        width: 40vw;
    }

    #ruleModal .modal-body .modal-body-content .modal-detail{
        padding: 4vw 0;
        overflow-y: scroll;
        height: 150vw;
        margin: 4vw 11vw 0;
    }

    #ruleModal .modal-body .modal-body-content .modal-detail img{
        padding-right: 4vw;
    }

    @media only screen and (min-width: 576px){
        #ruleModal .modal-dialog{
            max-width: 100%;
        }

        #ruleModal .modal-body .modal-body-content .modal-detail{
            height: 160vw;
        }
    }

    /* width */
    #ruleModal ::-webkit-scrollbar {
        width: 2vw;
    }
    
    /* Track */
    #ruleModal ::-webkit-scrollbar-track {
        background: #e1d5ba;  
        border-radius: 10px;
        margin-top: 3vw;
    }
    
    /* Handle */
    #ruleModal ::-webkit-scrollbar-thumb {
        background: #9A7B67;  
        border-radius: 10px;
    }
    
    /* Handle on hover */
    #ruleModal ::-webkit-scrollbar-thumb:hover {
        background: #9A7B67; 
    }
}