html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    line-height: 1.8em;
    color: #333333;
    font-family: 'Noto Sans TC', 'Roboto', Arial, "Microsoft JhengHei", '新細明體', Helvetica, sans-serif;
    background-image: linear-gradient(to bottom, #77ceff 15%,#3ab7ff 50%, #558bef 90%,#5564ef 100%);
}

::selection {
    background-color: #D8F3FF;
    color: #121212;
}

a,
.t-title a {
    color: #094067;
}

a:hover,
.t-title a:hover {
    color: #2286C2;
    text-decoration: none;
}

.a-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.InnerPage {
    background: url(../img/bg-dec.svg) no-repeat 0% 10% fixed, url(../img/bg-dec-2.svg) no-repeat 100% 10% fixed;
    /* background-color: #77ceff; */
}


/* ------------------------------
                kv
   ------------------------------ */
.kv-reward {
    width: 100%;
    height: 500px;
    background-color: #efefef;
    background-image: url(../img/backgroud.jpg);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
}

/* .kv-reward:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(180deg, rgba(4, 48, 135, 0), #81d7ff);
    content: "";
} */


.kv-reward>.kv-content {
    width: 60%;
    height: 100%;
    margin: 0 auto;
    text-align: center;
    z-index: 1000;
}

.kv-content:before {
    position: relative;
    content: '';
    display: inline-block;
    width: 0;
    height: 20%;
    /*依據kv高度調整位置，改變kv主文字位置*/
    vertical-align: middle;
}

.kv-reward-logo {
    width: 70%;
    margin: 1.5rem auto;
}

.kv-reward-subtitle {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .kv-reward-logo {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .kv-reward>.kv-content {
        width: 80%;
    }
}

@media (max-width: 576px) {
    .kv-reward {
        height: 400px;
    }

    .kv-reward>.kv-content {
        width: 90%;
    }
}



/* ------------------------------
         btn-winner
   ------------------------------ */
.btn-switch-group {
    background-color: #ffffff61;
    border: 3px solid #ffffffcc;
    border-radius: 50px;
    max-width: 60%;
    width: 100%;
    margin: 40px auto 2%;
    display: flex;
    justify-content: space-between;
}

@media (max-width:1200px) {
    .btn-switch-group {
        max-width: 100%;
    }
}

@media (max-width:992px) {
    .btn-switch-group {
        padding: 0;
    }
}

.btn-switch {
    margin: 8px;
    padding: 15px;
    font-size: 22px;
    border: none;
    transition: all .3s ease;
    position: relative;
    width: 48%;
    display: block;
    border-radius: 50px;
    background: transparent;
    color: #333;
}

.btn-switch:hover {
    background-color: rgba(255, 255, 255, 0.7);
}


.btn-switch.actived {
    background: #345ee9;
    color: #fff;
    user-select: none;
    cursor: inherit;
}

/* ------------------------------
        個人
   ------------------------------ */
.winner-item {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    margin-bottom: 60px;
    transition: all 0.2s;
}

.winner-item:hover {
    transform: translateY(-3px);
}

.winner-item:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: calc(100% + 40px);
    height: 20px;
    border-radius: 6px;
    background-image: linear-gradient(to bottom, #edc386 14%, #f2a609 14%, #f2a609 80%, #d98c20 80%);
}

.winner-item__body {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.winner-item__body a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.winner-item__body:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.15);
}

.winner-item__body img {
    user-select: none;
    max-width: 100%;
}

.winner-item .flag-wreath {
    position: absolute;
    width: 100%;
    top: -45px;
    left: 0;
    z-index: 1;
}

.winner-item__content {
    position: absolute;
    left: 0;
    top: 30px;
    width: 100%;
    padding: 20px 30px;
    text-align: center;
}

.winner-item__body:after {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.2);
}

.winner-item:after {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: calc(100% + 20px);
    height: 28px;
    background-image: linear-gradient(to bottom, #f0cc98 14%, #F7B52D 14%, #F7B52D 80%, #E39F3F 80%);
}

.winner-item__content a {
    display: inline-block;
    line-height: 1.3;
}

.winner-item__avatar {
    width: 85px;
    height: 85px;
    background-color: #fff;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    margin: 0 auto 10px;
}

.winner-item__avatar img {
    height: 100%;
    width: auto;
}

.winner-item__name {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFA6;
}

.winner-item__group {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0 15px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #664935;
    border-radius: 20px;
    background-color: #FBCD3C;
}

.winner-item__topic {
    color: #fff;
    line-height: 1.4;
}

.winner-item:hover .winner-item__topic,
.winner-item:hover .winner-item__name {
    color: #fff6c6;
}

/* ------------------------------
        團隊
   ------------------------------ */
.sec_team {
    padding: 3rem 1rem;
}

.winner-title {
    max-width: 500px;
    margin: 0 auto;
}

.list-card {
    background-color: #ffffff;
    padding: 1.8rem 2.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    outline: 2px solid #ffcc14;
    box-shadow: inset 0 0 10px 0 #cfcfcf, 0px 3px 0px 0px #b3b3b3, 0px 4px 10px #073996;
}

.list-card-left {
    margin-top: -50px;
    padding-right: 40px;
}

.list-card-right .team-intro {
    margin-bottom: 2.5rem;
}

.team-name {
    font-size: 1.8rem;
    line-height: 2;
    color: #094067;
}

.list-photo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0 5px 0px #2680ff, 0px 2px 8px #d6d6d6;
}

.list-photo-image {
    width: 100%;
    display: block;
}


.team-member {
    border: 1px solid #23a3f0;
    padding: 10px;
    margin: 15px 0;
    border-radius: 10px;
}

.member-tag {
    display: inline-block;
    padding: 0 10px;
    position: absolute;
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    background-color: #23a3f0;
    border-radius: 10px;
}

.tm-img {
    max-width: 50px;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgb(209, 213, 219) 0px 0px 0px 1px inset;
    display: inline-block !important;
    vertical-align: middle !important;
}

.member-name {
    display: inline-block;
    padding: 5px;
}

.t-icon {
    width: 30px;
}

.t-title {
    font-size: 18px;
    line-height: 1.5;
}



.title-bg {
    background-color: #d8eefe;
    border-radius: 10px;
    padding: 8px 15px;
}

.icon-tag {
    font-size: 15px;
    color: #666666;

}

@media (max-width: 767px) {
    .tm-img-box {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .list-card {
        margin: 10px 15px;
    }
}


/* ------------------------------
              評審
   ------------------------------ */
.sec_adj {
    padding: 4rem 2rem;
}

.acard {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 3px;
    background-color: #fff;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0px 3px 0px 0px #b3b3b3, 0px 4px 10px #6898cf;
}

.acard .bg {
    width: 100%;
    height: 120px;
    border-radius: 12px 12px 0px 0px;
    background: url(../img/acard-img.jpg)no-repeat center;
    z-index: 1;
}

.acard .photo {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    overflow: hidden;
    z-index: 1;
    position: absolute;
    top: 25px;
    border: 4px solid #FFFFFF;
    transition: all 0.4s ease;
    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(111, 112, 115, 0.3);
}

.acard .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acard .text {
    display: block;
    text-align: center;
    padding: 3.5rem 1.3rem 1rem;
    background-color: #ffffff;
    border-radius: 0px 0px 12px 12px;
}

.acard .text .name {
    font-size: 26px;
    font-weight: 600;
    margin-top: 20px;
    color: #094067;
}


.acard .text .desc {
    text-align: left;
}



/* ribbon-banner */
.ribbon-banner {
    position: relative;
    display: flex;
    width: fit-content;
    text-align: center;
    flex-wrap: wrap;
    font-weight: 800;
    color: #fff;
    font-size: 2.25rem;
    background-color: #345ee9;
    line-height: 1.6;
    padding: 10px 80px;
}

.ribbon-banner:before,
.ribbon-banner:after {
    content: "";
    position: absolute;
    display: block;
    bottom: -0.35em;
    border-width: 1em;
    border-style: solid;
    border-color: #5ca2ff;
    z-index: -1;
}

.ribbon-banner:before {
    left: -1em;
}

.ribbon-banner:after {
    right: -1em;
}


@media (max-width:767px) {
    .ribbon-banner {
        padding: 10px 20px;
    }
}

@media (max-width:540px) {
    .ribbon-banner {
        font-size: 1.5rem;
    }
}


/* ------------------------------
                 goTop
   ------------------------------ */

#gotopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    right: 30px;
    /* Place the button 30px from the right */
    z-index: 99;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 10px 16px;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.2s;
    z-index: 10000; /* 確保在最上層 */
}

#gotopBtn:hover {
    color: #333;
    background-color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------
                logowall
   ------------------------------ */

section {
    margin: 0;
    position: relative;
}

.section-partners {
    padding: 5% 0 8%;
    background: #fff;
}


h5 {
    font-size: 24px;
    font-weight: 600;
}

.subtitle-partners {
    margin: 20px 0;
}


.subtitle-partners::before {
    content: '';
    background-color: #2286C2;
    width: 10px;
    height: 10px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.partners-box {
    background-color: #fff;
    padding: 10px 20px;
}


.partners-box img {
    width: 100%;
}

/* 右下角得獎頁面 */
.top-up {
    position: fixed; /* 固定位置 */
    bottom: 20px; /* 距離下方 20px */
    right: 20px; /* 距離右側 20px */
    z-index: 9999; /* 確保在下方元素的下一層 次最上層*/
}

.top-up img {
    margin-bottom: 100px; /* 與下方元素保持距離 */
    max-width: 200px; /* 設定圖片最大寬度（可依需求調整） */
    cursor: pointer; /* 滑鼠移過時顯示為點擊狀態 */
}