@charset "utf-8";
/* CSS Document */
/* ----- 投票 預設樣式無圖板，s1、s2寫在下段 ----- */
.voting-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0px 4px 2px rgb(60 60 60 / 20%);
    max-width: 940px;
    margin: 0 auto;
    margin-bottom: 12px;
}

.voting-container .ltn-votetitle{
    width: 140px;
    font-size: 18px;
    letter-spacing: 1px;
    padding-top: 8px;
    padding-bottom: 5px;
    margin: 8px 0;
    text-align: center;
    background: #de4d4d;
    color: #ffffff;
}

.voting-container h3.vote-title {
    margin-bottom: 12px;
    font-size: 28px;
    text-align:left;
    display: inline-block;
}

.voting-container span.vote-type{
    font-size: 14px;
    background-color: #9f864e;
    padding: 2px 10px;
    border-radius: 30px;
    color: #fff;
    margin: 0;
    display: inline-block;
    line-height: inherit;
}

.voting-container .option {
    max-width: calc(100% - 100px);
    margin: 0 auto;
    padding: 10px 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.voting-container .option input[type="radio"],
.voting-container .option input[type="checkbox"] {
    display: none;
}

.voting-container .option label {
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
    width: calc(100% - 160px);
    max-width: 640px;
}

.voting-container .option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all .2s linear;
}

.voting-container .option label::after {
    transition: all .2s linear;
}

.voting-container .option input[type="radio"]:checked + label::before {
    border-color: #38b7f1;
}

.voting-container .option input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 11.4px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 15px;
    background-color: #38b7f1;
    border-radius: 50%;
    display: block;
}

.voting-container .option input[type="checkbox"] + label::before {
    border-radius: 1px; /* 方形外框 */
}

.voting-container .option input[type="checkbox"]:checked + label::before {
    border-color: #e8ad2b;
}

.voting-container .option input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 14px;
    background-color: #e8ad2b;
    display: block;
}

/* 數字%數與票數 */
.whitecon .text span.vote-count{
    align-self: flex-end;
    font-size: 14px;
    line-height: 1.2;
    text-align: right;
    width: 100%;
    max-width: 160px;
    margin-bottom:0;
}

.whitecon .text span.vote-percent{
    font-size: 26px;
    margin: 0 4px;
    color:#c80202;
    letter-spacing: 0px;
    line-height: 0;
    text-align: right;
}

.whitecon .text span.vote-quantity{
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    letter-spacing: 0px;
}

/* 進度條 */
.whitecon .text span.vote-bar {
    background: #f8b219;
    bottom: 8px;
    height: 12px;
    position: absolute;
    transition: width .3s linear;
    z-index: 1;
    margin-bottom: 0;
}

.voting-container .option::after {
    content: "";
    position: absolute;
    background: #dddddd;
    bottom: 8px;
    height: 12px;
    width: 100%;
    z-index: 0;
}
.voting-container .optionafter::after {
    display:none;
}

.voting-container .vote-bt {
    display: block;
    margin: 0 auto;
    margin-top: 20px;
    padding: 10px 40px;
    border: none;
    background-color: #e8ad2b;
    color: #282828;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 4px;
    transition: all .2s linear;
}

.voting-container .vote-bt:hover {
    background: #bf8914;
}

.vote-rules {
    display: block;
    padding-top: 18px;
}

.whitecon .text .vote-rules span.vote-time,
.whitecon .text .vote-rules span.vote-total {
    width: 100%;
    display: inline-block;
    padding: 2px 0 0;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

@media screen and (max-width:600px) {
    .voting-container .ltn-votetitle{
    width: 100px;
    font-size: 14px;
    letter-spacing: 0px;
    padding-top: 6px;
    padding-bottom: 4px;
}
    .voting-container h3.vote-title{
    font-size: 16px;
}
    .voting-container span.vote-type{
    font-size: 12px;
    padding: 3px 8px 1px;
    }
    .voting-container .option{
    max-width: calc(100% - 20px);
}
    .voting-container .option label{
    width: calc(100% - 130px);
    font-size: 16px;
}
    .whitecon .text span.vote-count{
    max-width: 130px;
}
    .whitecon .text span.vote-percent{
    font-size: 20px;
}
    .whitecon .text span.vote-quantity{
    font-size: 10px;
}
}

@media screen and (max-width:360px) {
    .voting-container  {
    padding: 20px 10px 20px 10px;
}
    .voting-container h3.vote-title{
    font-size: 16px;
}
    .voting-container .option{
    max-width: calc(100% - 0px);
}
    .voting-container .option label {
    width: calc(100% - 90px);
    font-size: 14px;
}
    .whitecon .text span.vote-count{
    max-width: 90px;
}
    .whitecon .text span.vote-percent{
    font-size: 14px;
    margin: 0;
}
    .whitecon .text span.vote-quantity{
    font-size: 8px;
    letter-spacing: 0;
}
}

/* 樣式一 s1大圖片版900x600 */
.vote-s1 .votes-box{
    display: inline-block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.vote-s1 .votes-box .votes-pic {
    float: left;
    width: 38%;
    height: 0;
    overflow: hidden;
    padding: 0 0 25.4%;
    display: inline-block;
}

.vote-s1 .votes-box .votes-picaaaa:before { content:""; position:absolute; bottom:0; left:0; height:100px; width:100%;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100%);
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100%);
    background: linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100%);
}

.vote-s1 .votes-box .votes-word {
    float: right;
    width: 60%;
    padding: 20px 20px 0 20px;
    }
@media screen and (max-width:1100px) {
    .vote-s1 .votes-box .votes-word {
    padding: 14px 20px 0 20px;
    }
    .vote-s1 .votes-box .votes-word h3.vote-title {
    font-size: 22px;
    }

}
@media screen and (max-width:600px) {
    .vote-s1 .votes-box .votes-word {
    padding: 10px 20px 0 20px;
    }
    .vote-s1 .votes-box .votes-word h3.vote-title {
    font-size: 16px;
    }
    .vote-s1 .votes-box .votes-pic {
    width: 100%;
    padding: 0px 0 66.6%;
}
    .vote-s1 .votes-box .votes-word{
    width: 100%;
    padding: 0 12px 4px;
    background-image: linear-gradient(180deg, transparent 0, hsla(0, 0%, 100%, .8) 50%, #fff);
    bottom: 0px;
    position: absolute;
}
    .vote-s1 .votes-box .votes-word h3.vote-title{
    margin-bottom: 0px;
}
}

/* 樣式一 s2小圖片版600x300 */
.vote-s2 .votes-box{
    display: inline-block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.vote-s2 .votes-box .votes-pic {
    float: left;
    width: 18%;
    height: 0;
    overflow: hidden;
    padding: 0 0 12%;
    display: inline-block;
}

.vote-s2 .votes-box .votes-picaaaa:before { content:""; position:absolute; bottom:0; left:0; height:100px; width:100%;
    background: rgb(255,255,255);
    background: -moz-linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100%);
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100%);
    background: linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0) 100%);
}

.vote-s2 .votes-box .votes-word {
    float: right;
    width: 80%;
    padding: 0px 10px ;
    }
.vote-s2 .votes-box .votes-word h3.vote-title {
    font-size: 22px;
}
.vote-s2 .votes-box .votes-word .ltn-votetitle{
    margin: 0 0 8px 0;
}

@media screen and (max-width:1100px) {
    .vote-s2 .votes-box .votes-word h3.vote-title {
    font-size: 16px;
    }
}
@media screen and (max-width:600px) {
    .vote-s2 .votes-box .votes-pic {
    min-width: 90px;
    min-height:60px;
    }
    .vote-s2 .votes-box .votes-word {
    width: calc(100% - 96px);
    }
}
