@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

body {
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.main_content * {
    box-sizing: content-box;
}

header img {
    width: 100%;
}

.header_img_m,
.slogan_img_m {
    display: none;
}

.slogan {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

h1 {
    display: block;
    position: relative;
    width: 20%;
    aspect-ratio: 45/11;
    background: url(../../images/idol_vote/title_bg.png)center center no-repeat;
    background-size: 100%;
    margin: 0 auto -1em auto !important;
    z-index: 10;
}

h1 span {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 12%;
    width: 100%;
    font-size: 2rem;
    letter-spacing: 0.6rem;
    aspect-ratio: 45/11;
    color: #fff;
    font-weight: 600;
}

.slogan_img_pc {
    width: 50%;
}

.slogan_img_m {
    width: 96%;
}

.vote_block {
    width: 100%;
    background: url(../../images/idol_vote/bg.png) repeat;
    background-size: 6px;
    position: relative;
    padding: 4rem 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.vote-list {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
}

.vote-card {
    cursor: pointer;
}

.vote-card img {
    width: 100%;
}

.vote-card input {
    display: none;
}

.card-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5% 1.5%;
    margin: 0 3%;
    border-radius: 24px;
    border: 4px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #58c7ff 0%, #7aa9ff 45%, #ff6adf 100%) border-box;
    box-shadow: 6px 6px rgba(0, 0, 0, 0.2);
    transition: .25s;
}

/* 圖片 */
.card-inner img {
    width: 90%;
}

/* 選擇 */
.select {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 600;
}

.radio {
    width: 1.2rem;
    height: 1.2rem;
    border: 3px solid #333;
    border-radius: 50%;
    position: relative;
}

/* 小黑點 */
.radio::after {
    content: "";
    width: 1rem;
    height: 1rem;
    background: #333;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: .2s;
}

/* ===== 被選到 ===== */
.vote-card input:checked+.card-inner {
    background: linear-gradient(180deg, #67c7ff, #d96cff);
    border-color: #fff;
    color: #fff;
}

.vote-card input:checked+.card-inner .radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn_vote,
.btn_index {
    display: block;
    width: 70%;
    margin: 0 auto;
    max-width: 500px;
    transition: .25s ease;
    cursor: pointer;
    padding-bottom: 5%;
}

.btn_result {
    display: block;
    width: 40%;
    float: right;
    margin-right: 5%;
    margin-bottom: 5%;
    max-width: 300px;
    transition: .25s ease;
    cursor: pointer;
}

.btn_vote:hover,
.btn_result:hover,
.btn_index:hover {
    transform: translateY(-8px);
    /* 往上移 */
    filter: brightness(1.08);
    /* 變亮 */
}

.btn_vote img,
.btn_result img,
.btn_index img {
    width: 100%;
}

.done_img {
    display: block;
    margin: 5% auto;
    width: 70%;
    max-width: 312px;
}

.result_slogan {
    display: block;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #616161;
    font-weight: 600;
    font-size: 1rem;
    padding: 1% 0;
}

.result_slogan p {
    padding: 1% 0;
}

.line {
    display: block;
    width: 100%;
}

.vote_block ul {
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #616161;
    font-weight: 600;
    font-size: 1rem;
}

.vote_block li {
    width: 30%;
    padding: 1.5%;
    text-align: center;
}

.vote_block ul li img {
    width: 90%;
    padding: 0 0 1%;
}

@media(max-width: 1024px) {
    .header_img_m,
    .slogan_img_m {
        display: block;
    }

    .header_img_pc,
    .slogan_img_pc {
        display: none;
    }

    h1 {
        width: 60%;
        max-width: 250px;
        margin: 0 auto -2.5em auto;
    }

    .vote-list {
        width: 90%;
    }

    .select {
        font-size: 1rem;
    }

    .vote_block {
        padding: 3rem 0 3rem;
        margin-bottom: 2rem;
    }

    h1 span {
        padding-top: 8%;
    }

    .radio {
        width: 0.8rem;
        height: 0.8rem;
    }

    .radio::after {
        content: "";
        width: 0.7rem;
        height: 0.7rem;
        background: #333;
        border-radius: 50%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: .2s;
    }

    .card-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5% 1.5%;
        margin: 0 3%;
        border-radius: 12px;
        border: 2px solid transparent;
        box-shadow: 3px 3px rgba(0, 0, 0, 0.2);
        transition: .25s;
    }

    .result_slogan {
        padding: 2% 0;
    }

    .result_slogan p {
        padding: 2% 0;
    }

    .vote_block ul {
        width: 96%;
    }

    .vote_block li {
        width: 32%;
        padding: 0.5%;
    }

    .vote_block ul li img {
        width: 96%;
    }
}
