/* 共用 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet"');

html, body {
    margin: 0;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Noto Sans TC", "Noto Sans", "Microsoft JhengHei", sans-serif;
    font-weight: 400;
    font-size: 20px;
    position: relative;
}

body {
    margin: 0;
    background-color: #f2f2f2; /* 灰色網站底 */
    font-family: sans-serif;
    position: relative;
    z-index: 0;
}

.green-bg {
    position: fixed;
    bottom: 0;
    left: 16px;
    width: 100%;
    height: 88vh;
    background: linear-gradient(to bottom, #009444 60%, rgba(0, 148, 68, 0) 100%);
    border-top-left-radius: 180px;
    z-index: -1; /* 壓在所有內容後面 */
    pointer-events: none; /* 不要擋住互動 */
}

.site-content {
    position: relative;
    z-index: 1;
    padding: 60px;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    /* background-color: #CEECF4; */
}

.content-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1600px;
    height: 100vh;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    border-radius: 0px 0px 60px 60px;
    padding: 7px 0px;
}

.menu {
    display: flex;
    align-items: center;
}

.logo {
    width: 35px;
    margin-right: 45px;
}

.logo img {
    width: 100%;
}

.menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    padding: 0 25px;
}

.menu-list:hover {
    color: #009944;
}

.menu-list.active {
    color: #009944;
}

.menu-icon {
    width: 24px;
    margin-right: 5px;
}

.menu-divider {
    height: 35px;
    border-left: 1px solid #E663A5;
    margin: 0 10px;
}

/* 首頁 */
.home-left {
    flex: 1;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-people {
    width: 100%;
    max-width: 570px;
    min-width: 280px;
    padding: 0;
}

.home-people img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
}

.home-right {
    flex: 1;
    max-width: 62%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow: hidden;
}

.event-container {
    width: 40%;
    min-width: 300px;
    margin-top: 25px;
}

.event-container img {
    width: 100%;
}

.event-info {
    max-width: 85%;
    width: 700px;
    height: 70vh;
    min-height: unset;
    background-color: #ffffff;
    border: 3px solid #D12A46;
    padding: 20px;
    border-radius: 45px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.event-info h2 {
    font-size: 24px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 0 10px;
}

.event-text {
    max-height: none;
    padding: 0 20px;
    overflow: auto;
    font-size: 14px;
}

.event-text-p {
    font-size: 14px;
}
.event-text p {
    margin: 0;
}

.prize-title img{
    width: 120px;
    padding: 10px 0;
}

.prize-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0px;
}

.prize-container img {
    max-width: 100%;
    width: 18%;
    height: auto;
    object-fit: contain;
}

.prize-second {
    padding: 20px 10px;
}

.prize-second img {
    max-width: 180px;
    /* width: 110px; */
    height: auto;
    object-fit: contain;
}

.small-text {
    font-size: 14px;
    margin-top: 0px;
    text-align: center;
}

.footer {
    width: 90%;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: -15px;
}

.post-logo {
    width: 56px;
    margin: 10px 10px 20px 10px;
}

.post-logo img {
    width: 100%;
}

.footer-bottom {
    width: 100%;
}

.post-logo-text {
    height: 38px;
    background-color: #269352;
    display: flex;
    align-items: center;
}

.post-logo-text img {
    height: 60%;
    margin-left: 5px;
}

.footer-text {
    font-size: 12px;
    display: flex;
}

.footer-text p {
    margin-right: 10px;
    margin-top: 0px;
}

.post-logo-color {
    width: 75px;
    position: absolute;
    right: 0px;
    bottom: 15px;
}

.post-logo-color img {
    width: 100%;
}

/* 個人資料登錄 */
.draw-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-title {
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

.draw-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.verification-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.code-input {
    width: 50%;
    box-sizing: border-box;
}

.verification-code {
    width: 50%;
    background-color: #009944;
    border: 1px solid #ccc;
    color: #fff;
    text-align: center;
    padding: 10px 10px;
    font-size: 14px;
    text-align: left;
}

.draw-btn {
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
    background-color: #009944;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 50%;
    margin: 20px auto 0 auto;
    display: block;
}

.draw-btn:hover {
    background-color: #D12A46;
}

.link {
    width: 50%;
    margin: 0px auto;
}

.link img {
    width: 100%;
    margin: 5px 0px;
}

.error-message {
    color: #D12A46;
    font-size: 12px;
    margin-bottom: 4px;
}

/* 判斷彈窗 */
.popup {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    border-radius: 30px;
    padding: 30px 24px;
    max-height: 90vh;
    position: relative;
    box-sizing: border-box;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.popup-text {
    font-size: 14px;
    line-height: 1.6;
    height: 50vh;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    background-color: #fafafa;
}

.checkbox-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.checkbox-area input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.checkbox-area input.error {
    outline: 2px solid red;
    border-radius: 2px;
}

.checkbox-area label {
    font-size: 14px;
    line-height: 1.4;
}

.warning-text {
    text-align: center;
    font-size: 13px;
    margin-bottom: 16px;
}

.warning-text.error {
    color: red;
}

.confirm-button {
    background-color: #009944;
    margin: 16px auto 0 auto;
    display: block;
    align-self: center;
    padding: 12px 40px;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.close-btn {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
}

.close-btn img {
    width: 100%;
}

.popup-content2 {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.popup-content2 h2 {
    margin-top: 0;
    font-size: 24px;
}

.popup-content2 p {
    margin-top: 0;
    font-size: 16px;
}

.popup-content2 button {
    background-color: #009944;
    margin: 16px auto 0 auto;
    display: block;
    align-self: center;
    padding: 12px 60px;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

ul.flex-list {
    list-style: none;
    padding: 0;
}

ul.flex-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
}

ul.flex-list li::before {
    content: "•";
    margin-right: 0.5em;
    line-height: 1.5;
}

/* RWD */
@media (max-width: 1024px) {
    .event-info {
        height: 48vh;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .logo {
        margin-right: 10px;
    }

    .menu-list {
        flex-direction: column;
        padding: 0px 10px;
    }

    .green-bg {
        position: fixed;
        bottom: 0;
        left: 12px;
        width: 100%;
        height: 92vh;
        background: linear-gradient(to bottom, #009444 60%, rgba(0, 148, 68, 0) 100%);
        border-top-left-radius: 180px;
        z-index: -1; /* 壓在所有內容後面 */
        pointer-events: none; /* 不要擋住互動 */
    }

    .content-container {
        flex-direction: column;
        align-items: center;
    }

    .home-left {
        flex: none;
        max-width: 85%;
        margin-top: 40px;
    }

    .home-right {
        flex: none;
        width: 90%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .home-people {
        max-width: 100%;
        min-width: 100px;
        padding: 0;
        margin: 0 0 -10px;
    }

    .home-people img {
        content: url('../img/mb/people.png');
        width: 100%;
        min-width: unset;
    }

    .event-container {
        margin: 0px auto;
        min-width: 280px;
    }

    .event-container img {
        width: 100%;
    }

    .event-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px;
        height: 50vh;
        border-radius: 30px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .link {
        width: 50%;
    }

    .footer {
        width: 100%;
        bottom: -8px;
    }

    .footer-text {
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .footer-text p {
        margin: 0px;
        flex: 1 1 45%;
    }
}

@media (min-width: 541px) and (max-width: 767px) {
    .green-bg {
        position: fixed;
        bottom: 0;
        left: 6px;
        width: 100%;
        height: 92vh;
        background: linear-gradient(to bottom, #009444 60%, rgba(0, 148, 68, 0) 100%);
        border-top-left-radius: 180px;
        z-index: -1; /* 壓在所有內容後面 */
        pointer-events: none; /* 不要擋住互動 */
    }
    .header {
        width: 100%;
    }

    .logo {
        margin-right: 5px;
    }

    .menu-list {
        flex-direction: column;
        padding: 0px 4px;
        font-size: 14px;
    }

    .content-container {
        flex-direction: column;
        justify-content: center;
    }

    .home-left {
        flex: none;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 0px;
        margin-top: 10px;
    }

    .home-people {
        width: 70%;
        min-width: 380px;
        padding: 0;
        margin: 0 0 -10px;
    }

    .home-people img {
        content: url('../img/mb/people.png');
        width: 100%;
        min-width: unset;
    }

    .home-right {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .event-container {
        display: none;
    }

    .event-info {
        width: 100%;
        max-width: 80%;
        height: 50vh;
        min-height: unset;
        padding: 20px;
        border-radius: 30px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .event-text {
        padding: 0 10px;
    }

    .event-info h2 {
        font-size: 24px;
        text-align: center;
        padding: 0 10px;
        margin-top: 0px;
        margin-bottom: 10px;
    }

    .footer {
        width: 100%;
        bottom: 0px;
    }

    .post-logo {
        width: 28px;
        margin: -40px 2px 0px 0px;
    }

    .footer-bottom {
        width: 100%;
    }

    .post-logo-text {
        height: 17px;
    }

    .footer-text {
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .footer-text p {
        margin: 0px;
    }

    .footer-text p:nth-child(1),
    .footer-text p:nth-child(2) {
        flex: 1 1 35%;
    }

    .footer-text p:nth-child(3),
    .footer-text p:nth-child(4) {
        flex: 1 1 45%;
    }

    .post-logo-color {
        width: 30px;
        right: 0px;
        bottom: 35px;
    }

    .link {
        width: 75%;
    }
}


@media (max-width: 540px) {
    .green-bg {
        position: fixed;
        bottom: 0;
        left: 7px;
        width: 100%;
        height: 91vh;
        background: linear-gradient(to bottom, #009444 60%, rgba(0, 148, 68, 0) 100%);
        border-top-left-radius: 180px;
        z-index: -1; /* 壓在所有內容後面 */
        pointer-events: none; /* 不要擋住互動 */
    }
    .header {
        width: 100%;
        border-radius: 0px 0px 40px 40px;
    }

    .logo {
        margin-right: 20px;
    }

    .menu-list {
        flex-direction: column;
        padding: 0px 5px;
        font-size: 11px;
    }

    .menu-icon {
        width: 20px;
    }

    .logo {
        width: 25px;
        margin-right: 5px;
    }

    .menu-divider {
        height: 35px;
        margin: 0 4px;
    }

    .content-container {
        flex-direction: column;
        justify-content: center;
    }

    .home-left {
        flex: none;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 0px;
        margin-top: 20px;
    }
    
    .home-people img {
        content: url('../img/mb/people.png');
        width: 100%;
        min-width: unset;
    }

    .home-people {
        width: 70%;
        min-width: 370px;
        padding: 0;
        margin: 0 0 -10px;
    }

    .home-right {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .event-container {
        display: none;
    }

    .event-info {
        width: 100%;
        max-width: 80%;
        height: 50vh;
        margin-bottom: 0;
    }

    .event-text {
        padding: 0 10px;
    }

    .event-info h2 {
        font-size: 20px;
    }

    .event-text p {
        font-size: 14px;
    }

    .flex-list {
        font-size: 14px;
    }

    .prize-container {
        gap: 25px;
    }
    
    .prize-container img {
        width: 45%;
    }

    .draw-btn {
        width: 80%;
    }

    .footer {
        width: 100%;
        bottom: 0px;
    }

    .post-logo {
        width: 28px;
        margin: -20px 2px 0px 0px;
    }

    .footer-bottom {
        width: 100%;
    }

    .post-logo-text {
        height: 17px;
    }

    .footer-text {
        font-size: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 5px;
    }

    .footer-text p {
        margin: 0px;
    }

    .footer-text p:nth-child(1),
    .footer-text p:nth-child(2) {
        flex: 1 1 30%;
    }

    .footer-text p:nth-child(3),
    .footer-text p:nth-child(4) {
        flex: 1 1 45%;
    }

    .post-logo-color {
        width: 30px;
        right: 0px;
        bottom: 10px;
    }

    .close-btn {
        width: 24px;
        height: 24px;
    }

    .link {
        width: 75%;
    }

}

@media (max-width: 430px) {
    .event-info {
        height: 59vh;
    }
    .home-people {
        width: 70%;
        min-width: 380px;
        padding: 10px 0 0 ;
        margin: 0 0 -10px;
    }

    .link {
        width: 75%;
    }
}

@media (max-width: 375px) {
    .green-bg {
        position: fixed;
        bottom: 0;
        left: 7px;
        width: 100%;
        height: 88vh;
        background: linear-gradient(to bottom, #009444 60%, rgba(0, 148, 68, 0) 100%);
        border-top-left-radius: 180px;
    }
    .home-people {
        width: 70%;
        min-width: 350px;
        padding: 10px 0 0 ;
        margin: 0 0 -10px;
    }
    .home-left {
        margin-top: 10px;
    }

    .event-info {
        height: 50vh;
        border-radius: 20px;
    }

    .event-text {
        padding: 0 5px;
    }

    .event-info h2 {
        font-size: 20px;
        padding: 0 3px;
    }

    .link {
        width: 75%;
    }

}

@media (max-width: 360px) {
    .green-bg {
        position: fixed;
        bottom: 0;
        left: 7px;
        width: 100%;
        height: 90vh;
        background: linear-gradient(to bottom, #009444 60%, rgba(0, 148, 68, 0) 100%);
        border-top-left-radius: 180px;
    }

    .link {
        width: 75%;
    }
}

@media (max-width: 344px) {
    .green-bg {
        position: fixed;
        bottom: 0;
        left: 7px;
        width: 100%;
        height: 92vh;
        background: linear-gradient(to bottom, #009444 60%, rgba(0, 148, 68, 0) 100%);
        border-top-left-radius: 180px;
    }

    .home-people {
        min-width: 300px;
        margin: 0 0 -10px;
    }

    .event-info {
        height: 60vh;
    }
}