﻿[v-cloak] {
    display: none;
}

.fc_loading {
    width: 100%;
    min-height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: min-height .2s ease;
}
.fr_loading {
    width: 100%;
    min-height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: min-height .2s ease;
}

.loading_text {
    margin-top: 10px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* spinner */
.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #0075a8;
    border-radius: 50%;
    /*animation: spin 0.8s linear infinite;*/
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.featured_courses {
    padding: 20px 0;
    margin-top: 30px;
}

.featured_wrap {
    width: 1240px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.featured_left {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
}

.featured_right {
    width: 460px;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
}

    /*沒有再一位的資料時*/
    .featured_right.hide {
        display: none !important;
    }

.featured_right,
.featured_left {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,.07)
}

/*精選課程標題*/
.fc_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.fc_title_main {
    font-size: 24px;
    font-weight: bold;
    color: #2480d4; /* 藍色 */
}

.fc_refresh {
    border: 0;
    background: #e5e5e5;
    color: #666;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 
        background-color .25s ease, 
        color .25s ease;
}


.fc_refresh:hover {
    background: #eaf2fb;
    color: #2a6db0;
}
.fc_refresh:hover i {
    animation: fcSpin 1.2s linear infinite;
}
@keyframes fcSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*精選課程項目*/
.fc_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.fc_card {
    flex: 0 0 calc((100% - 20px) / 2);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    height: 255px;
    overflow: hidden;
    /*逐張淡入動畫*/
    opacity: 0;
    transform: translateY(12px);
    animation: fcFadeUp .45s ease forwards;
    /*hover 浮起*/
    transition: box-shadow .25s ease;
}

@keyframes fcFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc_card a {
    text-decoration: none;
}

.fc_card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}


/* 沒右邊再一位報名 wrap no_right → 3 張 */
.featured_wrap.no_right .fc_card {
    flex: 0 0 calc((100% - 40px) / 3);
}

.fc_link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    /*hover 位移*/
    transition: transform .25s ease;
}

.fc_card:hover .fc_link {
    transform: translateY(-4px);
}

.fc_img {
    width: 100%;
    height: 122px;
    overflow: hidden;
}

    .fc_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        /*圖片 hover zoom*/
        transition: transform .45s ease;
    }

.fc_card:hover .fc_img img {
    transform: scale(1.05);
}

.fc_info {
    padding: 10px 10px 10px 15px;
    word-break: break-all;
    height: 110px;
    overflow: hidden;
}

.fc_title {
    font-size: 20px;
    font-weight: 600;
    color: #29303b;
    line-height: 26px;
}

.fc_desc {
    margin-left: 6px;
    font-size: 16px;
    color: #9a9a9a;
    line-height: 26px;
}

/*價錢顯示*/
.fc_price {
    padding: 10px 14px 12px;
    text-align: right;
    margin-top: auto;
}

.fc_original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.fc_sale {
    color: #c1272d;
    font-weight: 700;
}

    .fc_sale .currency {
        font-size: 18px;
        margin-right: 2px;
        opacity: 0.8;
    }

    .fc_sale .amount {
        font-size: 25px;
    }

    .fc_sale .unit {
        font-size: 18px;
        margin-left: 2px;
        opacity: 0.8;
    }

.fc_free {
    color: #c1272d;
    font-size: 25px;
    font-weight: 700;
}

/*右側在一位開班*/
.fr_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.fr_title {
    font-size: 24px;
    font-weight: bold;
    color: #2480d4;
}

.fr_refresh {
    border: 0;
    background: #e5e5e5;
    color: #666;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 
        background-color .25s ease, 
        color .25s ease;
}
.fr_refresh i {
    transition: color .25s ease;
}

.fr_refresh:hover {
    background: #eaf2fb;
    color: #2a6db0;
}
.fr_refresh:hover i {
    color: #2a6db0;
    animation: frSpin 1.2s linear infinite;
}
@keyframes frSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fr_tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fr_pool_status {
    min-width: 82px;
    padding: 6px 8px;
    border-radius: 999px;
    /*background: #f2f7fb;*/
    color: #168bd3;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

    .fr_pool_status span {
        display: block;
        margin-bottom: 5px;
        white-space: nowrap;
    }

.fr_pool_bar {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #d8ecfa;
}

    .fr_pool_bar i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: #168bd3;
        transition: width .25s ease;
    }



/*再一位開班 item*/

.fr_list {
    display: flex;
    flex-direction: column;
}

/* animation container */
.fr_item {
    opacity: 0;
    transform: translateY(12px);
    animation: frFadeUp .45s ease forwards;
}

/* clickable */
.fr_link,
.fr_link:hover {
    text-decoration: none;
    color: inherit;
}

.fr_link {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

    .fr_link:hover {
        transform: translateY(-3px);
        background: rgba(255,255,255,.85);
        box-shadow: 0 6px 18px rgba(0,0,0,.10);
    }

/* fade in */
@keyframes frFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fr_date {
    margin-left: 5px;
    width: 56px;
    height: 90px;
    border-radius: 14px;
    background: #0099de;
    color: #fff;
    text-align: center;
    flex: 0 0 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fr_date span {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.fr_date strong {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 4px;
}

.fr_info {
    flex: 1;
    min-width: 0;
}
.fr_place {
    color: #0C89DC;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.fr_name {
    font-size: 20px;
    font-weight: bold;
    color: #29303b;
    letter-spacing: -0px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*min-height: calc(20px * 1.3 * 2);*/
}

.fr_desc {
    min-height: 21px;
    font-size: 14px;
    color: #333;
    letter-spacing: -0.2px;
    line-height: 1.5;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fr_bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
}

.fr_time {
    width: 130px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: #82ccf7;
    color: #046ca7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.1px;
    border-radius: 999px;
    padding: 4px 6px;
    flex-shrink: 0;
}

.fr_price {
    margin-right: 5px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.fr_free {
    color: #c1272d;
    font-size: 18px;
    font-weight: 700;
}

.fr_original {
    color: #999;
    font-size: 12px;
    margin-right: 6px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: #bbb;
    white-space: nowrap;
}

.fr_sale {
    color: #c1272d;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
}

    .fr_sale .currency {
        font-size: 14px;
        margin-right: 1px;
    }

    .fr_sale .amount {
        font-size: 18px;
        line-height: 1;
    }

    .fr_sale .unit {
        font-size: 14px;
        margin-left: 1px;
    }
