@charset "utf-8";

/****************** 基本 ******************/
* {
    font-family: 'Noto Sans TC', sans-serif;

}


/* ════════════════════════════════════════
   1. 全域設定 & CSS 變數
════════════════════════════════════════ */
:root {
    /* ── 主題色盤：聯邦品牌深藍／天藍／白／淡灰 ── */
    --primary: #04496c;
    /* 深海軍藍（主色） */
    --primary-dk: #033558;
    /* 極深藍（hover） */
    --primary-lt: #EAF5FB;
    /* 淡藍底（badge） */
    --gold: #50B0D5;
    /* 天空藍（強調色） */
    --gold-dk: #2D8FAF;
    /* 深天藍（hover） */
    --gold-lt: #EAF5FB;
    /* 淡藍背景 */
    --gold-bd: #A8D8EC;
    /* 淡藍邊框 */
    --cream: #FFFFFF;
    /* 純白背景 */
    --cream-dk: #F4F8FA;
    /* 極淡藍灰背景 */
    --line: #7FA8BA;
    /* 淡藍灰線 */
    --gray-bg: #F0F6F9;
    /* 淡藍灰區塊背景 */
    --gray-lt: #C0D8E4;
    /* 藍灰邊框 */
    --white: #FFFFFF;
    --text: #0D2B3E;
    /* 深藍黑文字 */
    --mid: #3A5F72;
    /* 中藍灰文字 */
    --soft: #7FA8BA;
    /* 柔和藍（備註） */
    --blue: #04496c;
    /* 同主色 */
    /* ── 強調色 ── */
    --accent: #50B0D5;
    /* 天空藍強調 */


    /* 同 primary */
    --bs-font-sans-serif: 'Noto Sans TC', sans-serif;
    --bs-body-font-family: 'Noto Sans TC', sans-serif;

    --red: #C8102E;
    --red-lt: #FFF0F2;

}

.bg-white {
    background-color: #FFFFFF !important;
}

/* ════════════════════════════════════════
   2. 工具類（顏色、背景）
════════════════════════════════════════ */
.text {
    color: var(--text) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.text-mid {
    color: var(--mid) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

.bg-gold-lt {
    background-color: var(--gold-lt) !important;
}

.border-line {
    border-color: var(--line) !important;
}



body {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #777777;
    color: #323232;
    background-color: #fff;
    height: 100%;
    position: relative;
}

@media screen and (max-width: 1400px) {
    body {
        padding-top: 60px;
    }
}

hr {
    border-top: 1px solid #afafaf;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000;
    font-weight: 400;
}


p {
    margin-bottom: 1.5em;
}

a {
    color: var(--mid);
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    text-decoration: none;
}

a:hover,
a:active,
a:focus,
a:visited {
    color: var(--gold);
    outline: none;
    text-decoration: none;
}

img,
object,
embed,
video {
    max-width: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #000;
    opacity: .2;
}


/*
--- 切換裝置顯示項目 ---*/
#line {
    display: block;
}

#line_m {
    display: none;
}

@media screen and (max-width: 576px) {
    #line {
        display: none;
    }

    #line_m {
        display: block;
    }
}



/****************** 導覽列 navbar ******************/
.navbar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
}

/*
--- 聯邦LOGO navbar-brand ---*/
.navbar-brand {
    padding-right: 0;
}

.navbar .navbar-brand {
    margin-right: 50px;
    margin-left: 20px;
    width: 250px;
    height: 70px;
    background: url(../../../../include/images/UBLogo.png) no-repeat 0 50%;
    background-size: contain;
}

.navbar-header .navbar-brand img {
    width: 90%;
}

.navbar-light .navbar-toggler {
    border: none;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(80, 176, 213, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-light .navbar-toggle .icon-bar {
    background-color: var(--gold);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--primary);
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--gold) !important;
    transform: translateY(-2px);
}


.navbar-light .navbar-toggle:hover,
.navbar-light .navbar-toggle:focus {
    background-color: #f8f8f8;
}

.navbar-nav>li>a {
    margin-left: 15px;
    margin-top: 10px;
    display: block;
}

.navbar-light .navbar-nav>li>a:hover,
.navbar-light .navbar-nav>li>a:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--gold);
    background-color: transparent;
}

.navbar-light .navbar-nav>.active>a,
.navbar-light .navbar-nav>.active>a:hover,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav>.active>a:focus,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--gold) !important;
}
.navbar-toggle {
    margin-top: 13px;
    margin-bottom: 15px;
    border: 0px;
    border-radius: 0px;
}

.btn-nav-cta {
    background: var(--gold);
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 4px;
    border: none;
    font-family: inherit;
    transition: background .2s;
}

.btn-nav-cta:hover {
    background: var(--gold-dk) !important;
    color: #fff !important;
}


@media screen and (max-width: 1200px) {
    .navbar .navbar-brand {
        margin-right: 0px;
        margin-left: 20px;
        width: 180px;
        height: 60px;
    }
}

@media screen and (max-width: 576px) {
    .navbar .navbar-brand {
        margin-right: 15px;
        margin-left: 15px;
    }
}
/****************** 輪播 carousel  ******************/
.carousel-indicators li {
    width: 10px;
    height: 10px;
    opacity: .8;
    border-radius: 50px;
    border: 1px solid #dedede;
    background-color: #bbbbbb;
}

.carousel-indicators .active {
    background-color: #009999;
}

/*
--- 主視覺 ---*/
.topimg1 {
    background-image: url(../images/top.jpg) !important;
}

.topimg2 {
    background-image: url(../images/top_2.jpg) !important;
}


@media screen and (max-width: 576px) {
    .topimg1 {
        background-image: url(../images/top_m.jpg) !important;
    }

    .topimg2 {
        background-image: url(../images/top_2m.jpg) !important;
    }

}

/****************** 版面 Container ******************/
.gridContainer {
    width: 100%;
    clear: none;
    float: none;
    margin-left: auto;
    margin-right: auto;
    background-size: cover;
}

@media only screen and (max-width: 768px) {
    .gridContainer {
        width: 100%;
        margin: auto;
        clear: none;
        float: none;
        margin-left: auto;
        background-size: cover;
    }
}



#pay-once,
#installment,
#early-bird,
#credit-limit,
#qa {
    scroll-margin-top: 70px;
    padding: 20px;
}

/* ════════════════════════════════════════
   7. 各區塊共用容器
════════════════════════════════════════ */
.sec-inner-xl {
    max-width: 1200px;
}

.sec-inner-md {
    max-width: 900px;
}

.sec-inner-sm {
    max-width: 760px;
}

.sec-bg-cream {
    background: var(--cream-dk);
}

/* ════════════════════════════════════════
   8. 區塊標題組
════════════════════════════════════════ */
.gold-bar {
    width: 44px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    animation: goldBarGrow .8s .5s ease both;
}

.gold-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s 1s ease infinite;
}

.sec-h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 900;
    text-align: center;
    padding-bottom: 20px;
    color: var(--primary);
}

.sec-h2 em {
    font-style: normal;
    color: var(--gold);
    font-family: 'Noto Sans TC', sans-serif;
}

.sec-desc {
    font-size: 17px;
    color: var(--mid);
    line-height: 1.8;
    text-align: center;
}

.sec-h3 {
    font-size: clamp(20px, 1vw, 26px);
    line-height: 1.5;
    text-align: center;
    padding-bottom: 20px;
    color: var(--mid);
}

/* ════════════════════════════════════════
   9. 一次付清區塊
════════════════════════════════════════ */
.pay-once-card {
    border: 1.5px solid var(--line) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

/* 左欄：消費回饋 */
.pay-once-left {
    border-right: 1.5px solid var(--line);
}

/* ── 消費回饋徽章：光暈脈衝 + 光澤掃射 ── */


@keyframes badgeShimmer {
    0% {
        background-position: -220px 0;
    }

    60% {
        background-position: 220px 0;
    }

    100% {
        background-position: 220px 0;
    }
}



.pay-label-badge-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--red-lt);
    color: var(--red);
    position: relative;
    overflow: hidden;

}

/* 光澤掃射層 */
.pay-label-badge-red::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, .55) 50%,
            transparent 70%);
    background-size: 220px 100%;
    animation: badgeShimmer 2s 1s ease infinite;
    pointer-events: none;
}


.pay-label-dot-red {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;

}

.pay-limit-note {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.9;
    border-top: 1px dashed var(--line);
    padding-top: 14px;
}

.pay-big-num {
    font-size: clamp(56px, 8vw, 88px);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.pay-pct {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

/* 中間 + 號徽章（絕對定位） */
.pay-plus-badge {
    position: absolute;
    left: calc(33.333% - 14px);
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: var(--primary);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

/* 右欄：繳稅回饋 */
.pay-tax-col {
    background: var(--primary-lt);
}

.pay-label-badge-gold {
    position: relative;
    overflow: hidden;
    /* 掃射光超出邊界會被裁切 */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--cream);
    color: var(--primary);
}

/* 光澤掃射層 —— 與 .pay-label-badge-red::after 完全相同邏輯 */
.pay-label-badge-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, .50) 50%,
            /* 白色光帶 */
            transparent 70%);
    background-size: 220px 100%;
    animation: badgeShimmer 2s 1.2s ease infinite;
    /* 延遲 1.2s，與 red 錯開 */
    pointer-events: none;
}


.pay-label-dot-gold {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.pay-rate-grid {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.pay-rate-col {
    padding: 22px 10px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}


.pay-rate-col-gold {
    background: linear-gradient(150deg, #EAF5FB 0%, #C8E8F5 100%);
}

.pay-rate-col-border {
    border-right: 1px solid var(--line);
}

.pay-rate-num {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.pay-rate-pct {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red);
}

/* 數字+百分比那一行禁止換行 */
.pay-rate-col .d-flex {
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* 或只針對 pay-rate-pct 不換行 */
.pay-rate-pct {
    white-space: nowrap;
    font-size: 1rem;
    /* 可稍微縮小 */
}


.pay-tax-note {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.9;
}

/* ════════════════════════════════════════
   10. 分期區塊
════════════════════════════════════════ */

.inst-row {
    background: #fff;
    border: 1px solid #E0DADA !important;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}


.inst-row h2 {
    color: var(--text);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 900;
    text-align: center;
    line-height: 2.5;
    margin-top: 30px;
    margin-bottom: 30px;

}

.inst-row h2 em {
    font-style: normal;
    color: var(--red);
}

@media only screen and (max-width: 768px) {
    .inst-row h2 {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

/* ════════════════════════════════════════
   11. 早鳥禮區塊
════════════════════════════════════════ */


/* ════════════════════════════════════════
   12. 調額申請區塊
════════════════════════════════════════ */
.credit-tile {
    background: #fff;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}


.credit-icon {
    font-size: 36px;
}

.btn-red-wide {
    padding: 14px 48px;
}

/* ════════════════════════════════════════
   13. 共用 remark 備註
════════════════════════════════════════ */
.remark {
    font-size: 14px;
    color: var(--soft);
    line-height: 2;
}

.remark strong {
    color: var(--mid);
}



/* ════════════════════════════════════════
   14. 按鈕
════════════════════════════════════════ */
.btn {
    background: var(--primary);
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 4px;
    font-family: inherit;
    transition: transform .2s ease, background .2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn:focus,
.btn:focus-visible,
.btn:active:focus {
    outline: none !important;
    box-shadow: none !important;
    background: var(--primary);
    color: #fff !important;
}

.btn:hover {
    background: var(--primary-dk);
    color: #fff;
    transform: scale(1.03) translateY(-2px);
}

.btn-gold {
    color: #fff !important;
    ;
    background: var(--gold);
    font-size: 18px;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 4px;
    border: none;
    font-family: inherit;
    animation: pulse 3s 2s infinite;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.btn-gold:hover {
    background: var(--gold-dk);
    color: #fff;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 2px 6px #2e18002d;
    animation: none;
}

@media only screen and (max-width: 576px) {
    .btn {
        padding: 14px 25px;
    }

    .btn-gold {
        padding: 14px 25px;
    }
}

/* ════════════════════════════════════════
   15. Q&A Accordion 覆蓋
════════════════════════════════════════ */

.qa {
    background: var(--cream-dk);
}

.accordion-button {
    font-size: 17px;
    font-weight: 700;
    color: var(--mid);
    background: #fff;
}

.qa a {
    color: var(--primary);
}


.qa a:hover {
    color: var(--accent);
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--cream-dk);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(100%) invert(17%) sepia(28%) saturate(2967%) hue-rotate(179deg) brightness(91%) contrast(103%);
}

.accordion-body {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.8;
    background: var(--cream);
}

.accordion-item {
    border-color: #E0DADA;
}

/* ════════════════════════════════════════
   16. CTA BAR
════════════════════════════════════════ */
.cta-bar {
    background: var(--cream-dk);
}

.cta-bar img {
    width: 70%;
}

.cta-bar h3 {
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 600;
    color: var(--primary);
}

.cta-bar p {
    font-size: clamp(15px, 1vw, 18px);
    color: var(--mid);
}


/* 圖片：smooth 放大動畫 */
.cta-bar .col-12 a img {
    transition: transform .45s cubic-bezier(.25, .46, .45, .94);
}

.cta-bar .col-12 a:hover img {
    transform: scale(1.05);
    /* 放大 8% */
    box-shadow: 0 4px 20px rgba(26, 107, 181, .18);
    /* 藍色陰影 */
}

/* ════════════════════════════════════════
   12. 浮動快捷選單（桌機右側 / 手機底部）
════════════════════════════════════════ */

/* ── 桌機版：右側垂直浮動 ── */
.float-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0;

}

.float-menu a {
    color: #fff;
}

.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 45px;
    padding: 14px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    transition: background .2s ease, transform .15s ease;
    letter-spacing: .5px;
}

/* .float-btn:first-child {
    border-radius: 8px 0 0 0;
} */

.float-btn:last-child {
    /* border-radius: 0 0 0 8px; */
    border-radius: 8px 0 0 8px;
    border-bottom: none;
}

.float-btn:hover {
    background: var(--primary-dk);
    color: var(--white);
    transform: translateX(-4px);
}

.float-btn.gold-btn {
    background: var(--gold);
}

.float-btn.gold-btn:hover {
    background: var(--gold-dk);
}

.float-icon {
    font-size: 20px;
    line-height: 1;
}

/* ── 手機版：底部固定橫條 ── */
.float-menu-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    flex-direction: row;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
}

.float-btn-mobile {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    line-height: 2.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    border-right: 1px solid rgba(255, 255, 255, .15);
    transition: background .2s;
    letter-spacing: .5px;
}

.float-btn-mobile:last-child {
    border-right: none;
}

.float-btn-mobile:hover {
    background: var(--primary-dk);
    color: var(--white);
}

.float-btn-mobile.gold-btn {
    background: var(--gold);
    color: var(--white);
}

.float-btn-mobile.gold-btn:hover {
    background: var(--gold-dk);
}

.float-icon-mobile {
    font-size: 18px;
    line-height: 1;
}

/* ── 手機版 body 底部留白，避免內容被遮擋 ── */
@media (max-width: 991px) {
    .float-menu {
        display: none;
    }

    .float-menu-mobile {
        display: flex;
    }

    body {
        padding-bottom: 64px;
    }
}



/*
--- 注意事項表格 exTable ---*/
.modal-header {
    background: var(--gold);
    color: #fff;
}

.modal-header h3 {
    color: #fff;
}

.red {
    color: var(--red);
}

#exTable table th,
#exTable table td {
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    vertical-align: inherit;
}

#exTable table th {
    VERTICAL-ALIGN: middle;
    color: #fff;
    background-color: var(--gold);
}

#exTable .wordLeft {
    text-align: left;
}


/*
--- 版權宣告footer ---*/
#footer {
    background-color: #eeeeee;

}

.copyright {}

.copyright a {
    color: #7f7f7f;
    outline: none;
    text-decoration: none;
}

.copyright h4,
.copyright h5 {
    margin-top: 15px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Arial, Geneva, sans-serif;
}

.copyright h4 {
    font-size: 26px;
    text-align: right;
}

.copyright h5 {
    font-size: 12px;
    text-align: left;
    color: #777;
    margin-left: 70px;
}

.copyright p {
    font-size: 16px;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Arial, Geneva, sans-serif;
}

.copyright .list-inline {
    margin-bottom: 0;
}

@media screen and (max-width: 992px) {
    .copyright h4 {
        font-size: 20px;
        text-align: center;
    }

    .copyright h5 {
        font-size: 12px;
        margin-left: auto;
    }

    .copyright p {
        font-size: 12px;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    #footer {
        padding: 10px 0;
        color: #7f7f7f;
        background-color: #eeeeee;
    }

    #footer .copyright {
        margin-bottom: 0px;
        padding-bottom: 0;
    }

    .copyright h5 {
        text-align: center;
    }

    .copyright a {
        color: #7f7f7f;
        outline: none;
        text-decoration: none;
    }
}

#footerStyle {
    width: 100%;
    background-color: #f4f4f4 !important;
}

.saleBox .marginCenter img {
    display: block;
    margin: auto;
}

/* ---- index 浮動按鈕 ---------------*/
#CusSer {
    display: block;
    position: fixed;
    right: 0;
    width: 55px;
    z-index: 20;
    top: 30%;
}

@media screen and (max-width: 768px) {
    #CusSer {
        display: none;
    }
}

.giftModalBox {
    max-width: 730px;
}

.loveBox {
    align-items: center;
}

.loveCtn {
    margin: 15px;
    width: 100%;
    max-width: 400px;
}

.loveCtn h4 {
    line-height: 2;
}

/* animate */
.js .to-animate,
.js .to-animate-2,
.js .single-animate .js .animate-single {
    opacity: 0;
}

.js .animate-box {
    opacity: 0;
}


.nav-tabs .nav-link {
    /* background-color: #fff; */
    color: #0f1937;
    /* border: #5f3362 1px; */
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background-color: #0f1937;
    color: #fff;
}