﻿
@import url('https://fonts.googleapis.com/css2?family=Chiron+GoRound+TC:wght@200..900&family=Noto+Sans+TC:wght@100..900&display=swap');

body {
    font-family: "Noto Sans TC", sans-serif !important;
    font-optical-sizing: auto;
}


.chiron-goround-tc {
    font-family: "Chiron GoRound TC", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.topic_wrap {
    width: 1240px;
    margin: 0 auto;
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
    position: relative;
}


.topic_title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
    margin: 0;
}


.topic_banner {
    width: 100%;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
}


:root {
    --color-purple: #31277E;
    --color-red: #750000;
    --color-gold: #C79F62;
    --text-dark: #333333;
    --text-gray: #666666;
}


.main-banner {
    width: 100%;
    min-height: 200px;
    background: #E5E5E4;
    border: none;
    padding: 0 20px 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}


.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}


    .main-wrapper::before {
        content: "";
        position: absolute;
        top: 35px;
        left: 20px; 
        right: 20px;
        bottom: -40px;
        border: 3px solid var(--color-gold);
        z-index: 0;
        pointer-events: none;
    }


.banner-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

    .banner-container img {
        width: 100%;
        display: block;
    }


.course-section {
    background: #fff;
    padding: 50px 0px;
    overflow-x: auto;
    position: relative;
    z-index: 1;
  margin: -45px 89px 0 89px; 
}


.main-title {
    text-align: center;
    color: var(--color-purple);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 15px;
}


.title-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    margin: 0 auto 20px auto;
    width: 80%;
    opacity: 0.8;
}


.sub-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.sub-title-marker {
    width: 6px;
    height: 24px;
    background-color: var(--color-red);
}

.sub-title-main {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.sub-title-desc {
    font-size: 22px;
    color: var(--text-gray);
    font-weight: normal;
}

.course-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    min-width: 900px;
}


.course-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}


.icon-box {
    background-color: var(--color-gold);
    width: 90px;
    height: 90px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .icon-box img {
        width: 65px;
        height: 65px;
    }


.content-box {
    border-left: 4px solid var(--color-red);
    padding-left: 12px;
}

    .content-box h3 {
        margin: 0 0 5px 0;
        font-size: 17px;
        color: var(--text-dark);
        font-weight: bold;
    }

    .content-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .content-box li {
        font-size: 15px;
        color: var(--text-dark);
        line-height: 1.3;
        font-weight: 500;
        white-space: nowrap;
    }


@media (max-width: 768px) {
    .sub-title-container {
        flex-direction: column;
        text-align: center;
    }

    .sub-title-marker {
        display: none;
    }
}



/*-----------------------------------------------------------------------------------*/
/* 課程列表 */
.topic_list {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    background: #fff;
    padding: 32px;
    box-sizing: border-box;
    border-radius: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.topic_loading_inner {
    width: 100%;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
}

.course_card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.course_img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.course_body {
    display: flex;
    gap: 16px;
    padding: 18px 16px;
    flex: 1;
    background-color: #f7f7f7e3;
}

.course_date {
    width: 52px;
    min-width: 52px;
    height: 88px;
    background: #31277E;
    color: #fff;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

    .course_date strong {
        font-size: 28px;
        font-weight: 700;
    }

.course_info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.course_info h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    color: #333;
    margin: 4px 0 12px;
}

.course_location {
    color: #31277E;
    font-weight: 700;
    font-size: 15px;
}

.course_time {
    align-self: flex-start;
    display: inline-block;
    background: #d0ccee;
    color: #31277E;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 14px;
}

.course_info p {
    color: #494848;
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; 
    overflow: hidden;
}

.course_btn {
    display: block;
    background: #31277E;
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .course_btn:hover {
        color: #31277E;
        background: #d0ccee;
        text-decoration: none;
    }

.course_price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price_old {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.price_now {
    color: #d9262b;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.topic_loading_inner {
    width: 100%;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
}

/* loading 主體 */
.loading-indicator {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #31277E;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* spinner */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: topicSpin 1s linear infinite;
}

    /* 文字呼吸 */
    .spinner + span {
        animation: topicPulse 1.5s ease-in-out infinite;
    }

@keyframes topicSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes topicPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/*keyword*/
.topic_tools {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto -10px;
    background: #fff;
    padding: 24px 32px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topic_search {
    flex: 1;
    display: flex;
    gap: 10px;
}

    .topic_search input {
        width: 100%;
        max-width: 460px;
        height: 46px;
        border: 1px solid #ddd;
        border-radius: 999px;
        padding: 0 20px;
        font-size: 15px;
        box-sizing: border-box;
    }

        .topic_search input:focus {
            outline: none;
            border-color: var(--color-gold);
            box-shadow: 0 0 0 4px rgba(199,159,98,.18);
        }

    .topic_search button {
        border: none;
        background: #31277E;
        color: #fff;
        border-radius: 999px;
        padding: 0 18px;
        cursor: pointer;
    }

.topic_select {
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 15px;
    background: #fff;
    color: #666;
}
.topic_count {
    color: #666;
    font-size: 15px;
    white-space: nowrap;
}

.topic_empty {
    grid-column: 1 / -1;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    background: #f7f7f7;
    border-radius: 18px;
}

.topic_month_title {
    grid-column: 1 / -1;
    font-size: 26px;
    font-weight: 900;
    color: #31277E;
    padding-left: 14px;
    border-left: 6px solid #C79F62;
    margin: 12px 0 0;
}

.footer_div {
    width: 1240px;
}
