html,
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", 微软雅黑, Arial, sans-serif;
    /* height: 100%;
    max-height: 100%; */
    width: 100%;
    background: url(../img/Bg02.png) 50% 50% no-repeat;
    background-size: cover;
    box-sizing: border-box;
    /* overflow: hidden; */
}

a {
    text-decoration: none;
    transition: 0.2s;
}

p {
    margin: 0;
}

img {
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
}

.w576 {
    background: url(../img/Bg01.png) 50% 50% no-repeat;
    background-size: cover;
    /* background-size: cover; */
    background-attachment: fixed;
    height: 100%;
    width: min(100%, 754px);
    /* height: calc(100% - 160px); */
    margin: 0 auto;
    box-shadow: 0 0 8px rgba(0, 0, 0, .2);
    overflow: scroll;
    padding: 50px 0 20px 0;
    box-sizing: border-box;
}

.w576::-webkit-scrollbar {
    width: 0;
}

header {
    width: 100%;
    width: min(100%, 576px);
    height: 70px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    display: flex;
    justify-content: center;
    padding: 8px 0;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    z-index: 5;
}

.container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 min(4vw, 24px);
}

.container_flex {
    height: 77.2vh;
    width: 100%;
    display: grid;
    display: flex;
    justify-content: space-around;
}

/* 視覺 */
.main {
    position: relative;
    margin-bottom: 40px;
}

.mainTitle {
    top: -3%;
    display: block;
    z-index: 4;
    position: absolute;
    left: calc(50% - 236.5px);
}

.bubble {
    padding: 4px 12px;
    background: rgba(255, 251, 219, 0.7);
    background: rgba(255, 255, 255, 0.85);
    position: absolute;
    z-index: 6;
    border-radius: 8px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
    color: #ec0000;
}



.bubble01 {
    bottom: 15%;
    left: 10%;
    animation: bubble 15s ease infinite;
    opacity: 0;
}

.bubble02 {
    bottom: 33%;
    left: 25%;
    animation: bubble 15s 5s ease infinite;
    opacity: 0;
}

.bubble03 {
    bottom: 20%;
    right: 7%;
    animation: bubble 15s 10s ease infinite;
    opacity: 0;
}




@keyframes bubble {
    0% {
        opacity: 0;
    }

    1.5% {
        opacity: 1;
        transform: translateY(-8px);
    }

    3% {
        transform: translateY(0px);
    }

    15% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* 搖錢樹 */
.tree_box {
    max-width: 576px;
    max-height: 581px;
    width: 83.5vh;
    aspect-ratio: 1.02;
    position: relative;
    margin: 0 auto;
    margin-bottom: min(5.5vw, 24px);
}

.tree_item {
    position: absolute;
}

.tree01 {
    top: 2%;
    left: 11%;
    z-index: 3;
    animation: shake01 4s ease infinite;
    transform-origin: 50% 76% 0px;
    max-height: 351px;
    height: 23vh;
    height: 36%;
}

@keyframes shake01 {
    0% {
        transform: matrix3d(0.999983, -0.00582937, 0, 0, 0.058099, 0.926643, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    50% {
        transform: matrix3d(0.999391, 0.0348995, 0, 0, -0.0343313, 0.983121, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1.1);
    }

    100% {
        transform: matrix3d(0.999983, -0.00582937, 0, 0, 0.058099, 0.926643, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1);
    }
}

.tree02 {
    z-index: 4;
    bottom: 37%;
    right: 8%;
    animation: shake02 3.5s ease-in-out infinite;
    transform-origin: 50% 70% 0px;
    max-height: 401px;
    height: 27.2vh;
    height: 43%;
}

@keyframes shake02 {
    0% {
        transform: matrix3d(0.999391, 0.000348995, 0, 0, -0.0343313, 0.983121, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
    }

    50% {
        transform: matrix3d(0.999865, -0.0164054, 0, 0, 0.0357885, 0.96227, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1.1);
    }

    100% {
        transform: matrix3d(0.999391, 0.000348995, 0, 0, -0.0343313, 0.983121, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1);
    }
}

.tree03 {
    bottom: 34%;
    left: 8%;
    z-index: 2;
    animation: shake03 4.5s ease infinite;
    transform-origin: 50% 60% 0px;
    max-height: 358px;
    height: 27vh;
    height: 43%;
}

@keyframes shake03 {
    0% {
        transform: matrix3d(0.999391, 0.0348995, 0, 0, -0.0343313, 0.983121, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
    }

    50% {
        transform: matrix3d(0.999919, -0.0127057, 0, 0, -0.0124282, 0.978081, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    100% {
        transform: matrix3d(0.999391, 0.0348995, 0, 0, -0.0343313, 0.983121, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
    }
}

/* .tree01 {
    top: 2%;
    left: 11%;
    z-index: 3;
    animation: shake01 1.2s ease-in-out infinite;
    transform-origin: 50% 76% 0px;
    max-height: 351px;
    height: 36%;
} */

@keyframes shake011 {
    0% {
        transform: matrix3d(0.98, -0.08, 0, 0, 0.1, 0.90, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    50% {
        transform: matrix3d(0.95, 0.2, 0, 0, -0.18, 0.91, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1.2);
    }

    100% {
        transform: matrix3d(0.98, -0.08, 0, 0, 0.1, 0.90, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1);
    }
}

/* .tree02 {
    z-index: 4;
    bottom: 37%;
    right: 8%;
    animation: shake02 1.4s ease-in-out infinite;
    transform-origin: 50% 70% 0px;
    max-height: 401px;
    height: 43%;
} */

@keyframes shake022 {
    0% {
        transform: matrix3d(0.98, 0.03, 0, 0, -0.08, 0.93, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    50% {
        transform: matrix3d(0.96, -0.09, 0, 0, 0.12, 0.91, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1.15);
    }

    100% {
        transform: matrix3d(0.98, 0.03, 0, 0, -0.08, 0.93, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1);
    }
}

/* .tree03 {
    bottom: 34%;
    left: 8%;
    z-index: 2;
    animation: shake03 1.6s ease-in-out infinite;
    transform-origin: 50% 60% 0px;
    max-height: 358px;
    height: 43%;
} */

@keyframes shake033 {
    0% {
        transform: matrix3d(0.99, 0.05, 0, 0, -0.05, 0.97, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    50% {
        transform: matrix3d(0.97, -0.06, 0, 0, 0.07, 0.95, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1.1);
    }

    100% {
        transform: matrix3d(0.99, 0.05, 0, 0, -0.05, 0.97, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
        filter: brightness(1);
    }
}

.tree04 {
    bottom: 0;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    max-height: 337px;
    height: 35vh;
    height: 55%;
}

@keyframes shake04 {
    0% {}

    50% {
        transform: matrix3d(0.999988, -0.00484036, 0, 0, 0.00475646, 0.982655, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }
}

/* 查詢 */
.searchBg {
    width: 100%;
    background: linear-gradient(#fff, #f3f3f3);
    padding: min(5vw, 28px) min(7vw, 40px);
    border-radius: 500px;
    box-shadow: inset -1px -2px 3px 2px #dbdbdb, 1px 1px 3px #7a7a7a;
    box-sizing: border-box;
    margin-bottom: min(5.9vw, 36px);
}

.input_grid {
    height: 36px;
    width: min(100%, 360px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto min(20vw, 104px);
    grid-column-gap: 5px;
}

.input02 {
    width: 100%;
    height: 100%;
    outline: none;
    border: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
    box-sizing: border-box;
    font-size: 16px;
}

.input02::placeholder {
    color: #999;
}

.input02::placeholder:focus {
    color: #ddd;
}

.searchBg .submit {
    border-radius: 4px;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

}

/* footer */
footer {
    background: #624d25;
    width: min(100%, 576px);
    height: 90px;
    position: absolute;
    bottom: 0;
}

.menuBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.menu {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    height: 100%;
    font-size: min(3.3vw, .95rem);
    border-right: 1px solid #b1a48c;
}

.menu:hover {
    background: #55411c;
}

.menu img {
    margin-bottom: 6px;
}

/* 按鈕 */
.btn01 {
    position: absolute;
    bottom: -6%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.btn01:hover {
    filter: brightness(1.2);
}


/* 彈窗 */
.cover {
    background: rgba(0, 0, 0, .6);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 7;
    display: none;
}

.pop {
    padding: min(10vw, 50px) min(7vw, 40px);
    border: 1px solid #ad7c20;
    background: linear-gradient(#fff, #fff8ea);
    position: fixed;
    border-radius: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    width: min(95vw, 500px);
    box-sizing: border-box;
    display: none;
}

.pop01 {
    width: auto;
}


.close {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.close:hover {
    transform: translateX(-50%) scale(.95);
}

.content {
    height: auto;
    max-height: 70vh;
    overflow: auto;
    text-align: center;
    padding-right: 5px;
}

.content::-webkit-scrollbar {
    width: 3px;
    border-radius: 50px;

}

.content::-webkit-scrollbar-thumb {
    background: #e4dbcc;
    border-radius: 50px;

}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: min(5.5vw, 20px);
}

.title p {
    color: #bf0000;
    font-weight: bold;
    font-size: min(6.5vw, 32px);
    margin: 0 16px;
}

.pop05 .title p {
    letter-spacing: -0.2px;
    font-size: min(6.1vw, 32px);
}

.desp {
    line-height: 26px;
    margin-bottom: 12px;
    text-align: left;
    font-size: min(4.6vw, 16px);
}

.input {
    display: block;
    height: 36px;
    width: min(60vw, 260px);
    border: none;
    background: #efe9d8;
    outline: none;
    text-align: center;
    margin-bottom: 24px;
    color: #605023;
    font-size: 16px;
}

.input::placeholder {
    color: #ada07d;
}

.submit {
    color: #fff;
    background: linear-gradient(#ed0000, #950000);
    padding: 6px 36px;
    border-radius: 50px;
    margin: 0 auto;
    display: inline-block;
}

.submit:hover {
    filter: brightness(1.1);
}

/* 表格 */

.table {
    width: 100%;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, .95);
}

.detailBox table,
.pop table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #000;

}

.detailBox thead,
.pop thead {
    background: #938771;
    color: #fff;
    border-top-right-radius: 16px;
    overflow: hidden;

}

.detailBox thead th,
.pop thead th {
    padding: min(2vw, 16px) 0;
    border: 1px solid #d0c1a3;
    font-size: min(3.6vw, 16px);
}

.detailBox tbody,
.pop tbody {
    font-size: 14px;
}

.detailBox tbody td,
.pop tbody td {
    /* padding: 10px min(1vw, 4px); */
    border: 1px solid #d0c1a3;
    padding: 5px 0;
}

.detailBox tbody tr:nth-of-type(even),
.pop tbody tr:nth-of-type(even) {
    background: #e5dcc9;
}


/* 中獎 */
.pop03 {
    background: #fff url(../img/popBg.png)50% 50% no-repeat;
    background-size: cover;
    aspect-ratio: 1/1;
    width: min(80vw, 400px);
}

.pop05 {
    width: min(80vw, 400px);
}

.pop03::before {
    content: "";
    top: -30px;
    right: -30px;
    bottom: -30px;
    left: -30px;
    background: url(../img/moneyBg.png) 50% 50% no-repeat;
    background-size: 100% auto;
    position: absolute;
    pointer-events: none;
}

.pop03 .desp {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    margin: 0;
    padding-top: min(2vw, 16px);
}

.pop03 h1 {
    color: #ff0000;
    font-size: 48px;
    margin: min(3.5vw, 20px) 0;
}



@media screen and (max-height: 900px) {
    .mainTitle {
        width: 50vh;
        left: calc(50% - 25vh);
    }

    .tree_box {
        width: min(118vw, 65vh);
    }

    .btn01 img {
        width: 14vh;
    }
}

@media screen and (max-width: 500px) {
    .mainTitle {
        width: 85vw;
        left: calc(50% - 42.5vw);
    }

    .container {
        /* height: calc(100% - 70px - 20vw); */
    }

    footer {
        height: 20vw;
    }

    .menu img {
        height: 7vw;
    }

    .pop {
        top: 37%;
    }
}

.remark {
    cursor: pointer;
}


.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #938771 !important;
}