﻿/* variables */
:root {
    --default: #dd3272;
    --default_lighter: #e56696;
    --default_darker: #d50050;

    --title_lighter: #1b7ace;
    --title_darker: #041846;   

    --app_darker: #041846;
    --app_lighter: #1b7ace; 
    
    --a5a: #5a5a5a;
}

#news-view .title,
.news-view .title {
    margin: 10px 0 8px;
    font-size: 1.4em;
    line-height: 1.4em;
    font-weight: bold;
    letter-spacing: 1px;    
    color: black;
}

/* default*/
.edit-wrap {
    padding-top: 0px;
    cursor: default;
    font-family: 'Noto Sans TC', sans-serif;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    color: black;
    letter-spacing: 2px;
    line-height: 28px;
}

.edit-wrap a,
.edit-wrap button {
    text-decoration: none !important;
}

.edit-wrap hr {
    margin: 10px 0px;
    border: none;
    border-bottom: 1px dashed var(--a5a);
}

.edit-wrap p {
    margin: 0px;
}

::-webkit-scrollbar {
    display: none !important;
}

/* 提示字串 */
.edit-wrap .switch_info {
    color: var(--a5a);
    animation: flash 2s;
    text-align: center;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 3px;
    padding: 0px 0px 0px 3px;
    margin: 15px auto 5px;
}

@media screen and (max-width: 767px){
    .edit-wrap .switch_info {
        margin-top: 0px;
    }
}

/* tabBtn */
.edit-wrap #tabBtn {
    width: 100%;
    display: flex;    
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, white, rgba(255,255,255,0.8));
    backdrop-filter: blur(8px);
    padding: 10px 0px;
    position: sticky;
    top: 0px;
    z-index: 1;
    box-shadow: 0 0 0.5em white;
}

@media screen and (max-width: 1023px){
    .edit-wrap #tabBtn {
        top: 50px;
    }
}

/* switchBtn */
.edit-wrap .switchBtn {
    text-align: center;
    font-size: 14px;    
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    letter-spacing: 2px;
    padding: 0px 0px 0px 2px;
    line-height: 36px;
    background: white;
    box-shadow: 0 0 0.3em var(--a5a);
    color: var(--a5a);
    animation: fadeInDown 500ms;
    transition: all .2s;
}

.edit-wrap .switchBtn:nth-child(2) {
    animation: fadeInDown 1000ms;
}

.edit-wrap .switchBtn:nth-child(3) {
    animation: fadeInDown 1500ms;
}

.edit-wrap .switchBtn.active {
    background: linear-gradient(150deg, var(--default), var(--default_darker));
    box-shadow: 0 0 0.3em var(--default_darker);
    color: white;
    font-weight: bold;
    letter-spacing: 3px;
    padding-left: 3px;
}

/* 內文 */
.edit-wrap .text_section {
    animation: fadeIn 600ms;
    display: none;
}

.edit-wrap .text_section.active {
    display: block;
}

/* first_text */
.edit-wrap .text_section .first_text {
    margin: 5px 0px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    line-height: 24px;
    color: #2D519B;
}

.edit-wrap .text_section .first_text img {
    height: 28px !important;
    margin: 0px !important;
}

.edit-wrap .text_section .first_text span {
    background: linear-gradient(150deg, var(--default), var(--default_darker), var(--default_lighter));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--default);
    position: relative;
    margin: 0;
    padding: 0px 5px;
}

/* first_desc */
.edit-wrap .text_section .first_desc {
    font-weight: bold;
    color: black;
}

.edit-wrap .text_section .first_desc img {
    height: 28px !important;
    margin: 0px !important;
}

.edit-wrap .text_section .first_desc span {
    padding: 0px;
}

/* text_title */
.edit-wrap .text_section .text_title {
    margin: 15px 0px 10px 0px;
    width: fit-content;
    background: linear-gradient(150deg, var(--default_lighter), var(--default_darker));
    color: white;
    box-shadow: 0 0 0.3em lightgray;
    border-radius: 5px;
    letter-spacing: 3px;
    font-weight: bold;
    line-height: 28px;
    height: 28px;
    padding: 0px 10px 0px 13px;
}

.edit-wrap .text_section .text_title.extra {
    background: linear-gradient(150deg, #fe8c00, #f83600);
    text-shadow: 0 0 0.1em #f83600;
}

.edit-wrap .text_section .text_title i {
    padding: 0px 5px 0px 0px;
}

/* top_img */
.edit-wrap .text_section img {
    margin: 0px auto 10px;
    border-radius: 5px;
}

.edit-wrap .text_section .top_img {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* text_desc */
.edit-wrap .text_section .text_desc {
    color: var(--a5a);
    margin: 0px 0px 5px;
}

.edit-wrap .text_section .text_desc span {
    color: black;
    font-weight: bold;
    padding: 0px 5px;
}

/* 內文 小標題 */
.edit-wrap .text_section .text_category {
    color: var(--default_darker);
    font-weight: bold;
    margin-bottom: 5px;
    width: fit-content;
    padding: 5px 0px 5px 2px;
    border: 1px solid var(--default_darker);
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    background: white;
}

/* text_category small text */
.edit-wrap .text_section .text_category span {
    font-size: 10px;
    letter-spacing: 0px;
    padding-left: 5px;
}

/* price_section */
.edit-wrap .text_section .price_section {
    padding-left: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 32px;
}

/* ultimate */
#news-view .text_section span.ultimate,
.news-view .text_section span.ultimate {
    font-size: 12px;
    letter-spacing: 2px;
    padding: 0px 0px;
    color: black;
}

/* text_section.cates - text_category & price_section */
.edit-wrap .text_section.cates .text_category div {
    padding: 0px 10px;
    border-right: 1px solid rgba(0,0,0,0.3);
    line-height: 18px;
    margin: 5px 0px;
    font-size: 15px;
}

.edit-wrap .text_section.cates .text_category div:last-child {
    border-right: 0px;
}

.edit-wrap .text_section.cates .price_section {
    padding-left: 12px;
}

/* 特殊區域 */
.edit-wrap .text_section.cates .price_section .areas {
    padding: 5px 15px;
    border: 1px dashed var(--app_darker);
    width: fit-content;
    border-radius: 10px;
}

.edit-wrap .text_section.cates .price_section .areas .area {
    color: var(--app_darker);
}

/* 幣值 */
.edit-wrap .text_section .price_section span:not(.ultimate),
.edit-wrap .text_section .ec_coupon span:not(.ultimate),
.edit-wrap .e6000 .event_box .box .e_content span.nt {
    font-size: 10px;
    letter-spacing: 0px;
    padding: 0px 5px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
}

/* 邀請區塊 */
.edit-wrap .text_section .invite_section {
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
}

.edit-wrap .text_section .invite_section div {
    color: black;
    font-weight: bold;
    letter-spacing: 2px;
    padding-left: 2px;
    margin-bottom: 5px;
}

.edit-wrap .text_section .invite_section a {    
    color: white;
    border-radius: 5px;
    background: linear-gradient(150deg, var(--default_lighter), var(--default_darker));
    box-shadow: 0 0 0.3em var(--default_darker);
    width: 100%;
    text-align: center;
    line-height: 40px;
    margin-bottom: 5px;
}

.edit-wrap .text_section .invite_section.app_btn a {
    background: linear-gradient(150deg, var(--app_lighter), var(--app_darker));
    box-shadow: 0 0 0.3em var(--app_darker);
}

/* 注意事項 */
.edit-wrap .text_section .warning_section {
    background: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 28px;
}

.edit-wrap .text_section .warning_section span {
    font-weight: bold;
    font-size: 12px;
    background: white;
    padding: 2px 10px 2px 12px;
    border-radius: 5px;
    box-shadow: 0 0 0.3em lightgray;
}

.edit-wrap .text_section .warning_section ol {
    margin-top: 5px;
    margin-bottom: 0px;
    padding-left: 25px;
    max-height: 40vh;
    overflow-y: scroll;
}

.edit-wrap .text_section .warning_section ol li {
    font-size: 12px;
    line-height: 24px;
    font-weight: bold;
    padding-right: 5px;
}

.edit-wrap .text_section .warning_section ol::-webkit-scrollbar {
    display: block !important;
    width: 5px;
    background: transparent;
}

.edit-wrap .text_section .warning_section ol::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 5px;
}

/* 酒駕 */
.edit-wrap .text_section .no_drunk_driving {
    text-align: center;
    padding-left: 5px;
    letter-spacing: 5px;
}

/* EC */
.edit-wrap .text_section .ec_coupon {
    font-weight: bold;
    line-height: 35px;
    margin: 0px 0px 15px 10px;
}

.edit-wrap .text_section .ec_coupon div.coupon_code {
    margin: 15px 0px 10px;
}

.edit-wrap .text_section .ec_coupon div.coupon_code span {
    font-weight: bold;
    color: black;
    background: linear-gradient(150deg, #ffec00, #ffc200);
    border-radius: 5px;
    font-size: 16px;
    letter-spacing: 2px;
    font-family: 'Roboto Mono', monospace;
    padding: 0px 10px 0px 12px;
    display: inline-flex;    
    justify-content: center;
    align-items: center;
    margin-left: 10px;
}

.edit-wrap .text_section .ec_coupon div.coupon_code span i {
    padding-right: 5px;
    font-size: 12px;
}

/* .text_section.e6000 */
.edit-wrap .e6000 .e6000_btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 50px;
    background: linear-gradient(to bottom, white, rgba(255,255,255,0.8));
    backdrop-filter: blur(8px);
    padding: 10px 0px;
    z-index: 0;
    margin-bottom: 5px;
    box-shadow: 0 0 0.5em white;
}

@media screen and (max-width: 1023px){
    .edit-wrap .e6000 .e6000_btns {
        top: 100px;
    }
}

.edit-wrap .e6000 .e6000_btns button {
    border-radius: 5px;
    background: white;
    color: gray;
    border: 0px;
    box-shadow: 0 0 0.3em gray;
    line-height: 36px;
    padding: 0px 0px 0px 2px;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 14px;
}

.edit-wrap .e6000 .e6000_btns button.active {
    background: linear-gradient(150deg, var(--default), var(--default_darker));
    box-shadow: none;
    color: white;    
}

/* event_box */
.edit-wrap .e6000 .event_box {
    animation: fadeIn 1s;
    display: none;
}

.edit-wrap .e6000 .event_box.active {
    display: block;
}

.edit-wrap .e6000 .event_box .box img {
    border-radius: 5px;
    margin-bottom: 0px auto 10px;
    width: 100%;
}

/* long */
.edit-wrap .e6000 .event_box .box .image_slider {
    max-width: none;
    letter-spacing: 0px;
}

.edit-wrap .e6000 .event_box .box .image_slider img {    
    width: 100%;
    margin-bottom: 0px;
}

.edit-wrap .e6000 .event_box .box.long {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.edit-wrap .e6000 .event_box .box.long .half_img {
    text-align: center;
    width: 50%;
    padding-right: 5px;
}

.edit-wrap .e6000 .event_box .box.long .half_img img {
    width: 100%;
    max-width: 500px;
}

.edit-wrap .e6000 .event_box .box.long .half {
    width: 50%;
    padding-left: 5px;
}

@media (max-width: 1024px) {
    .edit-wrap .e6000 .event_box .box.long {
        flex-direction: column;
        align-items: center;
    }

    .edit-wrap .e6000 .event_box .box.long .half_img {
        width: 100%;
        padding: 0px;
    }

    .edit-wrap .e6000 .event_box .box.long .half {
        width: 100%;
        padding: 0px;
    }
}

.edit-wrap .e6000 .event_box .box.long .half .text_desc {
    color: black;
    font-weight: bold;
    margin-bottom: 10px;
}

.edit-wrap .e6000 .event_box .box.long .half .text_desc span {
    color: orangered;
    padding: 0px 5px;
}

.edit-wrap .e6000 .event_box .box.long .half .text_desc p {
    background: #FF2741;
    color: white;
    padding: 2px 5px 2px 7px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: 5px;
    box-shadow: 0 0 0.3em lightgray;
    width: fit-content;
    display: inline-block;
    margin-top: 5px;
}

.edit-wrap .e6000 .event_box .box.long .half .cube {
    background: linear-gradient(150deg, #fff3dc, #fff, #fff3dc);
    width: fit-content;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 0.3em gray;
    line-height: 35px;
    margin: 10px 0px;
    color: orangered;
    font-weight: bold;
}

.edit-wrap .e6000 .event_box .box.long .half .cube p {
    display: inline;
    padding: 0px 10px;
    color: black;    
}

.edit-wrap .e6000 .event_box .box.long .half .cube p:first-child {
    font-size: 12px;
    letter-spacing: 0px;
}

.edit-wrap .e6000 .event_box .box .small_title {
    font-weight: bold;
    padding: 0px 5px;
}

.edit-wrap .e6000 .event_box .box .small_desc {
    color: #5a5a5a;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 0px 5px;
}

.edit-wrap .e6000 .event_box .box .text_category {
    color: white;
    background: linear-gradient(150deg, var(--default_lighter), var(--default_darker));
    border: 0px;
    line-height: 26px;
    padding: 0px 8px 0px 10px;
    margin: 10px 0px 5px;
}

.edit-wrap .e6000 .event_box .box .e_content {
    padding-left: 10px;
    margin-bottom: 10px;
    line-height: 26px;
    margin-top: 10px;
    font-weight: normal;
}

.edit-wrap .e6000 .event_box .box .e_content span:not(.nt) {
    font-weight: bold;
}

.edit-wrap .e6000 .event_box .box .warning_section ol {
    /* max-height: unset;  */
}

.edit-wrap .e6000 .event_box .box .warning_section ol li {
    font-size: 12px;
    line-height: 24px;
    font-weight: bold;
    padding-right: 5px;
}

/* tns */
.edit-wrap .tns-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0px 10px;
}

.edit-wrap .tns-nav button {
    width: calc(100% / 5 - 5px);
    height: 10px;
    background: lightgray;
    border-radius: 3px;
    border: 0px;
    transition: all .2s;
}

@media (min-width: 768px) {
    .edit-wrap .tns-nav button {
        width: calc(100% / 3 - 5px);
    }
}

.edit-wrap .tns-nav button.tns-nav-active {
    background: black;
}