@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');
body,html{
    font-family: "PingFangHK-Regular", "Noto Sans TC", "Microsoft Yahei", sans-serif, Arial;
    font-size: 16px;
}

.re-main {
    padding: 65px 54px;
    background: url(../20230313/re-page/bg.jpg) no-repeat center top;
    background-size: cover;
    border: 2px solid #dc974d;
    box-sizing: border-box;
    border-radius: 4px;
}
.re-main .time {
    margin-bottom: 8px;
}
.re-main .time, .re-main .server-info {
    text-align: center;
    font-size: 20px;
}
.server-info i {
    margin: 0 16px;
}
.chocolate {
    color: #9a5e1d !important;
}
.server-tab {
    margin: 30px auto 0;
    width: 200px;
    height: 50px;
    line-height: 48px;
    text-align: center;
    background: url(../20230313/re-page/btn.png) no-repeat center;
    background-size: contain;
    cursor: pointer;
}
.server-tab span {
    display: inline-block;
    font-size: 24px;
    filter: drop-shadow(0 2px 2px #633a0c);
    background-image: linear-gradient(#fff, #fec587);
    -webkit-background-clip: text;
    color: transparent;
    font-family: "PingFangSC-Medium", "Noto Sans TC", "Microsoft Yahei", sans-serif, Arial;
    font-weight: 500;
    letter-spacing: 10px;
    text-indent: 10px;
}
.rank-box {
    padding: 50px 0;
    margin: 50px 0;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
}
.rank-box h3 {
    margin-bottom: 30px;
    line-height: 1;
    font-size: 36px;
    font-weight: 500;
}
.rank-table {
    border-radius: 10px;
    overflow: hidden;
}
.rank-box table {
    width: 100%;
}
.rank-box table th, .rank-box table td {
    text-align: center;
}
.rank-box thead tr {
    background-color: #9a5e1d;
    color: #fff;
}
.rank-box table th {
    padding: 12px 10px;
    font-size: 20px;
    font-weight: normal;
    border-right: 1px solid #905719;
}
.rank-box table th:last-child {
    border-right: none;
}
.rank-box table td {
    padding: 8px 10px;
    font-size: 16px;
    color: #9a5e1d;
    border-right: 1px solid #905719;
}
.rank-box table td:last-child {
    border-right: none;
}
.rank-box tbody tr:nth-child(odd) {
    background-color: #fff9f2;
}
.rank-box tbody tr:nth-child(even) {
    background-color: #eedfcf;
}
.rank-box tbody td.rank1 {
    background: url(../20230313/re-page/icon-rank-1.png) no-repeat center 2px;
    background-size: 44px auto;
}
.rank-box tbody td.rank2 {
    background: url(../20230313/re-page/icon-rank-2.png) no-repeat center 2px;
    background-size: 44px auto;
}
.rank-box tbody td.rank3 {
    background: url(../20230313/re-page/icon-rank-3.png) no-repeat center 2px;
    background-size: 44px auto;
}
.rank-box tbody tr span {
    position: relative;
    top: 3px;
}
.unselected {
    padding: 100px 0 !important;
    text-decoration: underline;
    cursor: pointer;
}
.rank-box p{
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
}
.pagenum-blue {
    margin-top: 20px;
}

.rank-arawd {
    margin-top: 50px;
}
.rank-arawd ul {
    margin-top: 50px;
}
.rank-arawd li {
    display: flex;
    align-items: center;
    margin: 0 auto 10px;
    padding: 0 45px 0 0;
    width: 640px;
    height: 80px;
    font-size: 18px;
    color: #9a5e1d;
    background: url(../20230313/re-page/r-bg.png) no-repeat center;
    background-size: contain;
    box-sizing: border-box;
}
.rank-arawd li span {
    width: 194px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    margin-right: 45px;
}
.rank-arawd li .arawd-img {
    margin-right: 30px;
    width: 50px;
    height: 50px;
}

.redeem {
    margin-bottom: 60px;
    text-align: center;
}
.redeem-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    width: 250px;
    height: 60px;
    background: url(../20230313/re-page/btn2.png) no-repeat center;
    background-size: contain;
    cursor: pointer;
}
.icon-integral {
    margin: 5px 8px 0 0;
    width: 36px;
    height: 36px;
    background: url(../20230313/re-page/icon-integral.png) no-repeat center;
    background-size: contain;
}
.redeem-btn span {
    margin-top: -2px;
    font-size: 28px;
    filter: drop-shadow(0 2px 2px #633a0c);
    background-image: linear-gradient(#fff, #fec587);
    -webkit-background-clip: text;
    color: transparent;
    font-family: "PingFangSC-Medium", "Noto Sans TC", "Microsoft Yahei", sans-serif, Arial;
    font-weight: 500;
}
.redeem p {
    font-size: 20px;
}

.activity-rules-title {
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 1;
    font-weight: 500;
}
.activity-rules p {
    line-height: 2;
}
.pop-redeem.pop-blue .popup-inner {
    width: 980px;
    max-width: 90%;
    padding: 40px 60px;
    max-height: 90vh;
    overflow: auto;
    border: 2px solid #dc974d;
    background: url(../20230313/re-page/pop-bg.png) no-repeat center #fffff8;
    background-size: cover;
    box-sizing: border-box;
}
.pop-redeem.pop-blue .popup-inner::after {
    display: none;
}
.pop-redeem .popup-body {
    padding: 0;
    text-align: left;
    background: none;
}
.pop-redeem .popup-close {
    top: 40px;
    right: 60px;
    z-index: 10;
    width: 34px;
    height: 34px;
    background: url(../20230313/re-page/close-btn.png) no-repeat center;
    background-size: contain;
}
.redeem-list {
    margin-bottom: 34px;
    padding-right: 30px;
    max-height: 400px;
    overflow: auto;
}
.redeem-list::-webkit-scrollbar {
    width: 6px;
}
.redeem-list::-webkit-scrollbar-track {
    background-color: #d5bda0;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
}
.redeem-list::-webkit-scrollbar-thumb {
    background-color: #9a5e1d;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
}
.redeem-list ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.redeem-list ul li {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 10px;
    width: 48%;
    height: 120px;
    border-radius: 10px;
    background: url(../20230313/re-page/award-bg.png) no-repeat center;
    background-size: cover;
    box-sizing: border-box;
    cursor: pointer;
}
.redeem-list ul li:nth-last-of-type(-n+2) {
    margin-bottom: 0;
}
.redeem-list ul li.completed {
    filter: contrast(.8) grayscale(1);
    cursor: auto;
}
.redeem-list ul li.completed::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: url(../20230313/re-page/lable.png) no-repeat center;
    background-size: contain;
}
.redeem-list .arawd-img {
    margin-right: 30px;
    width: 100px;
    height: 100px;
}
.redeem-info {
    text-align: left;
}
.redeem-info b {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 26px;
    font-weight: 500;
}
.redeem-info p {
    font-size: 14px;
    color: #fff6ed;
}
.redeem-info p em {
    color: #ffff00;
}
.pop-redeem h3 {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
}
.pop-redeem h3 span {
    position: relative;
    margin-left: 30px;
    padding-left: 30px;
    font-size: 20px;
    color: #666;
    font-weight: normal;
}
.pop-redeem h3 span::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 34px;
    background-color: #e3e3e3;
}
.pop-redeem .activity-rules {
    margin-top: -10px;
}

@media (max-width: 900px) {
    .re-main {
        padding: 20px 10px;
    }
    .re-main .time, .re-main .server-info {
        font-size: 16px;
    }
    .re-main .time {
        justify-content: space-between;
        text-align: left;
    }
    .re-main .time .chocolate {
        width: calc(100% - 80px);
    }
    .re-main .server-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .re-main .server-info span {
        margin-bottom: 6px;
    }
    .server-info i {
        display: none;
    }
    .server-tab {
        margin: 20px auto 30px;
        width: 180px;
        height: 44px;
        line-height: 42px;
    }
    .rank-box {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    .rank-box h3 {
        margin-bottom: 30px;
        font-size: 26px;
    }

    .rank-arawd ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0;
    }
    .rank-arawd li {
        flex-direction: column;
        margin: 0 0 10px 0;
        padding: 0;
        width: 48%;
        height: auto;
        background: #fffcee;
        border: 2px solid #8c5921;
        border-radius: 8px;
        box-sizing: border-box;
    }
    .rank-arawd li span {
        margin: 0 0 10px 0;
        width: 100%;
        text-align: center;
        font-size: 18px;
        background: #8c5921;
    }
    .rank-arawd li .arawd-img {
        display: none;
        margin: 6px 0;
    }
    .rank-arawd li em {
        padding: 0 10px 10px;
        text-align: center;
        font-size: 16px;
    }
    .rank-arawd {
        margin-top: 30px;
    }
    .pagenum-blue {
        margin-top: 20px;
    }
    .pagenum-blue li {
        margin: 0.2em;
    }

    .rank-table {
        border-radius: 4px;
    }
    .rank-box table th {
        padding: 7px 8px;
        font-size: 14px;
    }
    .rank-box table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    .rank-box tbody tr.first td:first-child {
        font-weight: 600;
        color: #ff8b00;
        font-size: 16px;
        background: none;
    }
    .rank-box tbody tr.second td:first-child {
        font-weight: 600;
        color: #87cdfc;
        font-size: 16px;
        background: none;
    }
    .rank-box tbody tr.third td:first-child {
        font-weight: 600;
        color: #ff825e;
        font-size: 16px;
        background: none;
    }

    .pop-redeem.pop-blue .popup-inner {
        max-width: 94%;
        padding: 20px;
    }
    .pop-redeem h3 {
        flex-flow: column;
        align-items: flex-start;
        font-size: 20px;
        line-height: initial;
    }
    .pop-redeem h3 span {
        position: relative;
        margin-left: 0;
        padding-left: 0;
        font-size: 18px;
    }
    .pop-redeem h3 span::before {
        display: none;
    }
    .pop-redeem .popup-close {
        top: 10px;
        right: 10px;
        left: auto;
        bottom: auto;
        transform: none;
        width: 26px;
        height: 26px;
    }
    .redeem-list {
        padding-right: 0;
        margin-bottom: 0;
    }
    .redeem-list ul li {
        width: 100%;
        height: auto;
    }
    .redeem-list .arawd-img {
        margin-right: 10px;
        width: 60px;
        height: 60px;
    }
    .redeem-info b {
        font-size: 20px;
    }
    .redeem-list ul li:nth-last-of-type(-n+2) {
        margin-bottom: 20px;
    }
    .redeem-list ul li:last-child {
        margin-bottom: 0;
    }
    .pop-redeem .popup-body {
        max-height: inherit;
    }
}