﻿
@charset "utf-8";
/* CSS Document */


/* 三民搶購按鈕 */
.btn-3people {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 13px;

    background: linear-gradient(
        180deg,
        #5cdbff 0%,
        #13a9e6 55%,
        #0798d5 100%
    );

    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    border: 1px solid #0798d5;
    border-radius: 9px;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.5),
                0 2px 4px rgba(0,0,0,.12);

    transition: all .2s ease;
}

.btn-3people:hover,
.btn-3people:focus {
    background: linear-gradient(
        180deg,
        #35caff 0%,
        #008fcb 100%
    );
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(0,153,220,.25);
}

.btn-3people .fa {
    font-size: 14px;
}



/* 蝦皮搶購按鈕 */
.btn-shopee {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 13px;

    background: linear-gradient(
        180deg,
        #ff925b 0%,
        #fa6429 50%,
        #ee4d2d 100%
    );

    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;

    border: 1px solid #ed4a20;
    border-radius: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        0 2px 4px rgba(0,0,0,.12);

    transition: all .2s ease;
}

.btn-shopee:hover,
.btn-shopee:focus {
    background: linear-gradient(
        180deg,
        #ff7844 0%,
        #e8431b 100%
    );

    color: #fff !important;
    box-shadow: 0 3px 8px rgba(238,77,45,.25);
}

.btn-shopee .fa {
    font-size: 14px;
}



/* 雲端愛上課按鈕 */
.btn-3study {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 13px;

    background: linear-gradient(
        180deg,
        #83cf80 0%,
        #5fba60 50%,
        #4caf50 100%
    );

    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;

    border: 1px solid #45a64a;
    border-radius: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        0 2px 4px rgba(0,0,0,.12);

    transition: all .2s ease;
}

.btn-3study:hover,
.btn-3study:focus {
    background: linear-gradient(
        180deg,
        #69c76b 0%,
        #399d43 100%
    );

    color: #fff !important;
    box-shadow: 0 3px 8px rgba(76,175,80,.25);
}

.btn-3study .fa {
    font-size: 14px;
}



/* 博客來購買按鈕 */
.btn-books {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 13px;

    background: linear-gradient(
        180deg,
        #b5ed4c 0%,
        #94d51e 50%,
        #80c914 100%
    );

    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;

    border: 1px solid #7ab915;
    border-radius: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        0 2px 4px rgba(0,0,0,.12);

    transition: all .2s ease;
}

.btn-books:hover,
.btn-books:focus {
    background: linear-gradient(
        180deg,
        #a7e638 0%,
        #6dac0b 100%
    );

    color: #fff !important;
    box-shadow: 0 3px 8px rgba(128,201,20,.25);
}

.btn-books .fa {
    font-size: 14px;
}



/* ===================================
   金融證照 - 頂部購買按鈕區
=================================== */

.purchase-section {
    padding: 18px 15px 22px;
    text-align: center;
}

.purchase-section h3 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

/* 按鈕排列 */
.purchase-section .purchase-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

/* 修正 Bootstrap btn-group */
.purchase-section .btn-group {
    float: none;
    margin: 0;
}

/* 共用按鈕 */
.purchase-section .purchase-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 130px;
    min-height: 42px;
    padding: 9px 10px;

    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none !important;

    border: 1px solid transparent;
    border-radius: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        0 2px 5px rgba(0,0,0,.12);

    transition: all .2s ease;
}

/* ICON */
.purchase-section .purchase-link .fa {
    font-size: 15px;
}

/* 三民：藍色 */
.purchase-section .btn-3people {
    background: linear-gradient(
        180deg, #5cdbff, #0798d5
    );
    border-color: #0798d5;
}

/* 蝦皮：橘色 */
.purchase-section .btn-shopee {
    background: linear-gradient(
        180deg, #ff925b, #ee4d2d
    );
    border-color: #ed4a20;
}

/* 博客來：亮綠 */
.purchase-section .btn-books {
    background: linear-gradient(
        180deg, #b5ed4c, #80c914
    );
    border-color: #7ab915;
}

/* 雲端愛上課：草綠 */
.purchase-section .btn-3study {
    background: linear-gradient(
        180deg, #83cf80, #4caf50
    );
    border-color: #45a64a;
}

/* Hover */
.purchase-section .purchase-link:hover {
    color: #fff !important;
    filter: brightness(.94);
    transform: translateY(-2px);

    box-shadow:
        0 4px 10px rgba(0,0,0,.18);
}

/* 手機版 */
@media (max-width: 767px) {

    .purchase-section {
        padding: 14px 12px 20px;
    }

    .purchase-section h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .purchase-section .purchase-links {
        gap: 8px;
    }

    .purchase-section .btn-group {
        width: calc(50% - 4px);
    }

    .purchase-section .purchase-link {
        width: 100%;
        min-height: 42px;
        font-size: 13px;
        padding: 9px 6px;
    }
}




/* =========================================
   金融證照課程卡片 - 精簡優化版
   不影響頂部購買按鈕
========================================= */

/* 卡片本體 */
.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;

    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 9px;
}

/* 按鈕排列區 */
.course-card .course-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    margin-top: auto;
    align-content: start;
}

/* Bootstrap btn-group 修正 */
.course-card .course-actions .btn-group {
    display: block;
    float: none;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

/* 按鈕尺寸統一 */
.course-card .course-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 30px;

    margin: 0;
    padding: 5px 4px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;

    color: #fff !important;
    border-radius: 6px;

    white-space: normal;
    overflow-wrap: anywhere;

    transition: filter .2s ease;
}

/* ICON */
.course-card .course-actions a .fa {
    flex: 0 0 auto;
    font-size: 11px;
}

/* 保留四款品牌漸層配色 */
.course-card .btn-3people {
    background: linear-gradient(
        180deg, #5cdbff, #0798d5
    );
}

.course-card .btn-shopee {
    background: linear-gradient(
        180deg, #ff925b, #ee4d2d
    );
}

.course-card .btn-books {
    background: linear-gradient(
        180deg, #b5ed4c, #80c914
    );
}

.course-card .btn-3study {
    background: linear-gradient(
        180deg, #83cf80, #4caf50
    );
}

/* Hover */
.course-card .course-actions a:hover {
    color: #fff !important;
    filter: brightness(.92);
}

/* 只有一顆按鈕 */
.course-card .course-actions .btn-group:only-child {
    grid-column: 1 / -1;
}

/* 指定跨兩欄 */
.course-card .course-actions .full-width {
    grid-column: 1 / -1;
}

/* 卡片所在的 Bootstrap row 若已加 course-grid */
.course-grid {
    display: flex;
    flex-wrap: wrap;
    row-gap: 18px;
}

/* RWD */
@media (max-width: 767px) {

    .course-card .course-actions {
        gap: 5px;
        padding: 7px;
    }

    .course-card .course-actions a {
        min-height: 32px;
        padding: 6px 4px;
        font-size: 11px;
    }

    .course-grid {
        row-gap: 14px;
    }
}

/* 特別窄的卡片，才改為單欄
   可在該卡片上手動加 compact-card */
.course-card.compact-card .course-actions {
    grid-template-columns: 1fr;
}
