@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #2549AF;
    /* 深藍 */
    --secondary: #1ABBA8;
    /* 青綠色 */
    --accent: #1ABBA8;
    /* 輔助色 */
    --accent-rgb: 26, 187, 168;
    --teal: #1ABBA8;
    /* 螢光綠 - 福利與保障 */
    --dark: #213347;
    /* 標題與重點文字 */
    --dark-light: #213347;
    /* 主要內容文字 */
    --muted: #64748b;
    /* 說明文字 */
    --light: #ffffff;
    /* 全站底色 - 白色 */
    --light-blue: rgba(37, 73, 175, 0.03);
    /* 淺藍背景 */
    --border: rgba(33, 51, 71, 0.08);
    /* 極細微光邊框 */
    --border-active: rgba(26, 187, 168, 0.35);
    /* 青色發光邊框 */
    --white: #ffffff;
    /* 卡片底層色 */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(33, 51, 71, 0.08);
    --shadow-lg: 0 10px 30px -5px rgba(33, 51, 71, 0.12);
    --shadow-accent: 0 0 25px rgba(26, 187, 168, 0.25);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* 全域設定 */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark-light);
    background-color: var(--light);
    line-height: 1.8;
    /* 高質感細網格線 background */
    background-image:
        linear-gradient(rgba(37, 73, 175, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 73, 175, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.08rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* 科技小標題 */
.section-kicker {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-kicker::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* 按鈕美化 */
.btn-custom {
    font-weight: 600;
    font-size: 1rem;
    padding: 11px 26px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-custom:hover {
    transform: translateY(-2px);
}

.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-accent);
}

.btn-custom-primary:hover {
    filter: brightness(1.08);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(26, 187, 168, 0.45);
}

.btn-custom-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-custom-outline:hover {
    background: rgba(26, 187, 168, 0.05);
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(26, 187, 168, 0.2);
}

.btn-custom-white {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-custom-white:hover {
    background: var(--light-blue);
    color: var(--secondary);
}

/* ──────────────── HEADER & NAVIGATION ──────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1060;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(33, 51, 71, 0.08);
    height: 80px;
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    max-width: 75%;
}

.brand-logo img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-logo-text strong {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
}

.brand-logo-text small {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* 電腦版選單 */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item-link {
    color: var(--dark-light);
    /* font-size: 14.5px; */
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-item-link:hover {
    background-color: var(--light-blue);
    color: var(--secondary);
}

.nav-item-dropdown {
    position: relative;
}

/* 手機版自訂動畫漢堡選單 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 手機版側邊選單 */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    padding: 100px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-nav-panel.open {
    right: 0;
}

.mobile-nav-item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.mobile-nav-item>a {
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    padding-left: 15px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-submenu a {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .site-header {
        height: 70px;
    }

    .brand-logo img {
        height: 32px;
    }

    .footer-brand-logo img {
        height: 38px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }
}

/* ──────────────── OWL CAROUSEL HERO BANNER ──────────────── */
.hero-carousel-section {
    position: relative;
    width: 100%;
    background-color: var(--primary);
    overflow: hidden;
}

.hero-carousel-item {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-carousel-item picture img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 680px;
    padding: 0 20px;
}

.hero-content-wrapper p:first-child {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.hero-content-wrapper p:first-child::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 2px;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.hero-content-wrapper h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.hero-content-wrapper p:last-of-type {
    /* font-size: 15.5px; */
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.hero-btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-group .btn-custom-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-btn-group .btn-custom-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

/* 自訂 Owl Carousel 控制點 */
.hero-carousel-section .owl-dots {
    position: absolute;
    bottom: 24px;
    right: 40px;
    z-index: 20;
}

.hero-carousel-section .owl-dot span {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
    margin: 5px 6px !important;
}

.hero-carousel-section .owl-dot.active span {
    width: 24px !important;
    background: var(--accent) !important;
    border-radius: 4px !important;
}

/* 自訂 Owl Carousel 左右導航箭頭 */
.hero-carousel-section .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-55%);
    /* 微微向上偏避開最底下的點點 */
    width: 100%;
    left: 0;
    pointer-events: none;
    z-index: 25;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.hero-carousel-section .owl-nav button.owl-prev,
.hero-carousel-section .owl-nav button.owl-next {
    width: 54px;
    height: 54px;
    background: rgba(15, 23, 42, 0.45) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-carousel-section .owl-nav button.owl-prev:hover,
.hero-carousel-section .owl-nav button.owl-next:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5) !important;
    transform: scale(1.08);
}

@media (max-width: 767.98px) {

    .hero-content-wrapper h2 {
        font-size: 1.8rem;
    }

    .hero-btn-group {
        gap: 10px;
    }

    .hero-btn-group .btn-custom {
        width: 100%;
    }

    .hero-carousel-section .owl-dots {
        right: 50%;
        transform: translateX(50%);
    }

    .hero-carousel-section .owl-nav {
        padding: 0 15px;
    }

    .hero-carousel-section .owl-nav button.owl-prev,
    .hero-carousel-section .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem !important;
    }
}

/* ──────────────── SECTION 1: 最新消息 ──────────────── */
.news-filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.news-filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--dark-light);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
}

.news-filter-btn:hover,
.news-filter-btn.active {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.news-card-wrapper {
    transition: var(--transition);
}

.news-card-wrapper.filtered-out {
    display: none;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 187, 168, 0.4);
    box-shadow: 0 0 25px rgba(26, 187, 168, 0.2);
    color: inherit;
    /* 確保卡片內部非標題文字不套用全域 a:hover 的半透明色彩 */
}

.news-card:hover .news-title {
    color: var(--secondary);
}

.news-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.news-badge {
    font-size: 0.71875rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-announce {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--secondary);
}

.badge-event {
    background-color: rgba(20, 184, 166, 0.08);
    color: var(--teal);
}

.badge-policy {
    background-color: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

.badge-welfare {
    background-color: rgba(6, 182, 212, 0.08);
    color: var(--accent);
}

.news-date {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 最新消息卡片內部的圖片與內容橫向排版 */
.news-img-col {
    padding-right: 20px;
}

@media (max-width: 767.98px) {
    .news-img-col {
        padding-right: 0;
        margin-bottom: 16px;
    }
}

.news-image-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    /* 限制寬高比例 */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Hover 卡片時圖片微微放大與明暗度變化，提供未來科技感 */
.news-card:hover .news-card-img {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.news-content-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* ──────────────── SECTION 2: 職場痛點與解法 ──────────────── */
.painpoints-section {
    background-color: #f8fafc;
    /* 淺灰色底 */
    color: #1e293b;
    /* 精細的淺色網格背景 */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
}

#painpoints-heading {
    color: #0f172a;
    /* 深 Slate-900 標題 */
}

/* 痛點卡片 */
.painpoint-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.05);
}

.painpoint-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 30px -10px rgba(124, 58, 237, 0.12);
}

/* 插圖容器 */
.painpoint-ill {
    width: 100%;
    max-width: 180px;
    height: 180px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #f8fafc;
}

.painpoint-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.painpoint-card:hover .painpoint-img {
    transform: scale(1.08) rotate(-2deg);
}

.painpoint-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.painpoint-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 解決方案 banner */
.solution-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: #ffffff;
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

/* 背景裝飾發光圈 */
.solution-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(0, 242, 254, 0.15);
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

.solution-text {
    font-weight: 700;
    line-height: 1.6;
    color: #ffffff;
    letter-spacing: 0.05em;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
}

#btn-pain-join {
    background: #ffffff;
    color: var(--secondary) !important;
    border: none;
    font-weight: 700;
}

#btn-pain-join:hover {
    background: var(--accent);
    color: var(--light) !important;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

/* ──────────────── SECTION 2.5: 為什麼選擇我們 ──────────────── */
.strengths-section {
    background: linear-gradient(180deg, #09152b 0%, #060e1d 100%);
    /* 活力深藍色漸層 */
    position: relative;
    overflow: hidden;
}

/* 活潑的霓虹裝飾微粒 */
.strengths-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: rgba(0, 242, 254, 0.08);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.strengths-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: rgba(124, 58, 237, 0.08);
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

/* 首創標籤 */
.badge-tech {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 0.1em;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    display: inline-block;
}

.highlight-text {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* 實力卡片 */
.strength-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 活潑的彈性轉場 */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.strength-ill {
    width: 100%;
    max-width: 180px;
    height: 180px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.strength-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strength-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.strength-sub {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.strength-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    /* 亮灰，易讀性高 */
    line-height: 1.7;
    margin-bottom: 0;
}

/* 卡片 Hover 特效與各自的彩色霓虹陰影 */
.strength-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
}

.strength-card:hover .strength-img {
    transform: scale(1.08) rotate(2deg);
    /* 活潑的插圖轉動與放大 - 縮小旋轉角度與放大比例 */
}

/* 藍色卡片（科技） */
.strength-card-blue:hover {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 15px 35px -5px rgba(0, 242, 254, 0.2);
}

/* 紫色卡片（課程） */
.strength-card-purple:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 15px 35px -5px rgba(124, 58, 237, 0.2);
}

/* 綠色卡片（保障） */
.strength-card-emerald:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.2);
}

.welfare-section {
    background-color: #f8fafc;
    /* 與職場痛點相同的淺灰色底 */
    color: #1e293b;
    position: relative;
    overflow: hidden;
    /* 精細的淺色網格背景 */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 確保內容在背景裝飾之上 */
.welfare-section .container {
    position: relative;
    z-index: 2;
}

.welfare-section::before,
.welfare-section::after {
    display: none;
    /* 移除多餘背景裝飾 */
}

#welfare-heading {
    color: #0f172a;
}

/* 8 大福利新卡片 */
.welfare-card-new {
    background-color: #ffffff;
    /* 改為純白卡片，以便在淺灰網格背景上凸顯出來 */
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px 24px;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.welfare-card-new:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 12px 20px -8px rgba(124, 58, 237, 0.15);
}

.welfare-ill {
    width: 100%;
    max-width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.02);
}

.welfare-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.welfare-card-new:hover .welfare-img {
    transform: scale(1.1) rotate(3deg);
}

.welfare-card-new h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.welfare-sub {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

.welfare-card-new p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 淺色背景下的 More 按鈕 */
#welfare-section .btn-custom-outline {
    color: #334155;
    border-color: rgba(15, 23, 42, 0.15);
}

#welfare-section .btn-custom-outline:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ──────────────── FOOTER ──────────────── */
.site-footer {
    background-color: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-brand-logo img {
    height: 66px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-brand-logo strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
}

.footer-desc {
    line-height: 1.75;
    margin-bottom: 24px;
}

.footer-line-btn {
    background-color: rgba(6, 199, 85, 0.1);
    border: 1.5px solid #06c755;
    color: #06c755 !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-line-btn:hover {
    background-color: #06c755;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.2);
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    transition: var(--transition);
}

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

.footer-info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-info-list li {
    display: flex;
    gap: 12px;
    line-height: 1.6;
}

.footer-info-list i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* ──────────────── 回到最上方按鈕 ──────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: var(--shadow-accent);
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
    filter: brightness(1.1);
    box-shadow: 0 12px 28px -4px rgba(6, 182, 212, 0.45);
}

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.5rem;
    }
}

.coursesTitle {
    height: 6px;
    background: linear-gradient(90deg, #7c3aed 0%, var(--accent) 100%);
}

.coursesBtn {
    background: linear-gradient(135deg, #7c3aed 0%, var(--accent) 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 8px 24px -4px rgba(0, 242, 254, 0.4);
    transition: var(--transition);
}

.coursesBtn:hover {
    filter: brightness(1.1);
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(26, 187, 168, 0.5);
    transform: translateY(-2px);
}

/* ──────────────── LIGHT MODE CUSTOM OVERRIDES ──────────────── */

/* 1. 下拉選單樣式修正 */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg) !important;
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1002;
}

.nav-item-dropdown:hover .dropdown-menu-custom {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-menu-custom a {
    display: block;
    padding: 8px 16px;
    color: var(--dark-light) !important;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.dropdown-menu-custom a:hover {
    background-color: var(--light-blue) !important;
    color: var(--secondary) !important;
}

/* 2. 登入按鈕樣式修正 */
.nav-cta-btn {
    background: var(--secondary) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26, 187, 168, 0.2) !important;
}

.nav-cta-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(37, 73, 175, 0.3) !important;
}

/* 3. 手機版側邊選單修正 */
.mobile-nav-panel {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: -10px 0 40px rgba(33, 51, 71, 0.08) !important;
}

.mobile-nav-panel-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border) !important;
}

.mobile-nav-item>a {
    color: var(--dark) !important;
}

.mobile-submenu a {
    color: var(--muted) !important;
}

/* 4. Strengths Section (為什麼選擇我們) 改為白底樣式 */
.strengths-section {
    background: var(--light) !important;
    /* 白色底 */
    background-image:
        linear-gradient(rgba(37, 73, 175, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 73, 175, 0.02) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
}

.strengths-section::before,
.strengths-section::after {
    display: none !important;
    /* 移除發光圈 */
}

#strengths-heading {
    color: var(--dark) !important;
}

.strength-card {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 25px -10px rgba(33, 51, 71, 0.05) !important;
}

.strength-card:hover {
    background: #ffffff !important;
}

.strength-ill {
    background-color: rgba(37, 73, 175, 0.02) !important;
}

.strength-title {
    color: var(--dark) !important;
}

.strength-desc {
    color: var(--muted) !important;
}

/* 5. 其他需要配合新色系的元件 */
.highlight-text {
    background: linear-gradient(90deg, #1ABBA8 0%, #2549AF 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.back-to-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(26, 187, 168, 0.25) !important;
}

.back-to-top:hover {
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(26, 187, 168, 0.4) !important;
}

.coursesTitle {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.coursesBtn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    box-shadow: 0 8px 24px -4px rgba(26, 187, 168, 0.3) !important;
}

.coursesBtn:hover {
    box-shadow: 0 0 25px rgba(26, 187, 168, 0.5) !important;
}

/* 6. 最新消息淺色底 & Footer 白色底 */
#news-section {
    background-color: rgba(37, 73, 175, 0.025) !important;
    /* 配合皇家藍的主色系淡藍色底 */
}

.site-footer {
    background-color: #ffffff !important;
    border-top: 1px solid var(--border) !important;
    color: var(--dark-light) !important;
}

.footer-brand-logo strong {
    color: var(--dark) !important;
}

.footer-desc {
    color: var(--muted) !important;
}

.footer-title {
    color: var(--dark) !important;
}

.footer-links a {
    color: var(--muted) !important;
}

.footer-links a:hover {
    color: var(--primary) !important;
}

.footer-info-list span {
    color: var(--dark-light) !important;
}

.footer-info-list strong {
    color: var(--dark) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border) !important;
    color: var(--muted) !important;
}

.footer-bottom p {
    color: var(--muted) !important;
}

/* ──────────────── ABOUT PAGE STYLES ──────────────── */
.about-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.6) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/about_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .about-hero-section {
        height: 280px;
    }
}

.about-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

/* 麵包屑移出橫幅後的白底樣式 */
.breadcrumb-wrapper {
    background: transparent;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-wrapper .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-wrapper .breadcrumb-item {
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb-wrapper .breadcrumb-item+.breadcrumb-item::before {
    color: var(--muted);
}

.breadcrumb-wrapper .breadcrumb-item a {
    color: var(--muted);
}

.breadcrumb-wrapper .breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-wrapper .breadcrumb-item.active {
    color: var(--secondary);
}

/* 宗旨區塊樣式 */
.purpose-visual-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

.purpose-visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(37, 73, 175, 0.15);
}

.purpose-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.visual-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 73, 175, 0.1) 0%, rgba(26, 187, 168, 0.1) 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2.5rem;
    transition: var(--transition);
}

.purpose-visual-card:hover .visual-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(26, 187, 168, 0.15) 0%, rgba(37, 73, 175, 0.15) 100%);
}

.visual-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.visual-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 30px;
}

.visual-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badge-outline-tech {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(37, 73, 175, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.purpose-visual-card:hover .badge-outline-tech {
    border-color: rgba(26, 187, 168, 0.4);
    color: var(--secondary);
}

.purpose-text p.lead {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--dark-light);
}

.purpose-text p {
    font-size: 1rem;
    line-height: 1.8;
}

/* 核心任務卡片 */
.task-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    height: 100%;
    display: flex;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.task-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

.task-card-icon {
    font-size: 2.25rem;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.task-card-body {
    flex-grow: 1;
    position: relative;
}

.task-num {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(33, 51, 71, 0.04);
    line-height: 1;
    transition: var(--transition);
}

.task-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    transition: var(--transition);
}

.task-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* 任務卡片 Hover 效果與配色 */
.task-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

.task-card:hover .task-num {
    color: rgba(26, 187, 168, 0.08);
    transform: scale(1.1);
}

.task-card:hover .task-card-icon {
    transform: rotate(8deg) scale(1.05);
}

/* 藍色主題：權益保障 */
.task-card-blue .task-card-icon {
    background: rgba(37, 73, 175, 0.08);
    color: #2549AF;
}

.task-card-blue:hover {
    border-color: rgba(37, 73, 175, 0.25);
}

.task-card-blue:hover::after {
    background: #2549AF;
}

/* 紫色主題：智財權 */
.task-card-purple .task-card-icon {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

.task-card-purple:hover {
    border-color: rgba(124, 58, 237, 0.25);
}

.task-card-purple:hover::after {
    background: #7c3aed;
}

/* 綠色主題：職能培訓 */
.task-card-emerald .task-card-icon {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.task-card-emerald:hover {
    border-color: rgba(16, 185, 129, 0.25);
}

.task-card-emerald:hover::after {
    background: #10b981;
}

/* 青色主題：產業交流 */
.task-card-teal .task-card-icon {
    background: rgba(26, 187, 168, 0.08);
    color: var(--secondary);
}

.task-card-teal:hover {
    border-color: rgba(26, 187, 168, 0.25);
}

.task-card-teal:hover::after {
    background: var(--secondary);
}

/* CTA 區塊 */
.about-cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.about-cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ──────────────── TERMS PAGE STYLES ──────────────── */
.terms-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/terms_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.terms-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .terms-hero-section {
        height: 280px;
    }
}

/* 條款警示框 (重要提醒) */
.terms-warning-box {
    background: rgba(37, 73, 175, 0.03);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.terms-warning-box::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 73, 175, 0.05) 0%, transparent 75%);
    pointer-events: none;
}

.terms-warning-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.terms-warning-desc {
    font-size: 0.98rem;
    color: var(--dark-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* 條款項目小卡 (10項辦理業務) */
.terms-item-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.terms-item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(26, 187, 168, 0.3);
    box-shadow: var(--shadow-md);
}

.terms-item-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(26, 187, 168, 0.08);
    color: var(--secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.terms-item-card:hover .terms-item-icon-box {
    background: var(--secondary);
    color: #ffffff;
    transform: rotate(5deg) scale(1.05);
}

.terms-item-content {
    flex-grow: 1;
}

.terms-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.terms-item-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ──────────────── NOTICE PAGE STYLES ──────────────── */
.notice-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/notice_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.notice-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .notice-hero-section {
        height: 280px;
    }
}

/* 職業分類卡片與內嵌 Badge 調整 */
.notice-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.notice-badge-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    background-color: rgba(37, 73, 175, 0.05);
    border: 1px solid rgba(37, 73, 175, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.notice-badge-item:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* 六步入會流程時間軸 (Timeline) */
.notice-timeline {
    position: relative;
    padding-left: 32px;
}

.notice-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.notice-timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.notice-timeline-item:last-child {
    margin-bottom: 0;
}

.notice-timeline-marker {
    position: absolute;
    top: 6px;
    left: -32px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.notice-timeline-item:hover .notice-timeline-marker {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(26, 187, 168, 0.4);
}

.notice-timeline-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.notice-timeline-content:hover {
    transform: translateX(4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-md);
}

.notice-timeline-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-timeline-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* 費用小卡 */
.notice-fee-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.notice-fee-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.notice-fee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.notice-fee-card-primary:hover::after {
    background: var(--primary);
}

.notice-fee-card-secondary:hover::after {
    background: var(--secondary);
}

.notice-fee-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.notice-fee-card-secondary .notice-fee-icon {
    color: var(--secondary);
}

.notice-fee-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.notice-fee-amount {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.notice-fee-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}

.notice-fee-desc {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Accordion 微調 */
.notice-accordion .accordion-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.notice-accordion .accordion-item:hover {
    border-color: rgba(26, 187, 168, 0.3);
    box-shadow: var(--shadow-md);
}

.notice-accordion .accordion-button {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    background-color: var(--white);
    padding: 20px 24px;
    transition: var(--transition);
}

.notice-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(37, 73, 175, 0.02);
    box-shadow: none;
}

.notice-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 73, 175, 0.1);
}

.notice-accordion .accordion-body {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* 手機版版面微調：防止溢出與版面優化 */
@media (max-width: 767.98px) {
    .purpose-visual-card {
        padding: 35px 20px !important;
    }

    .task-card {
        flex-direction: column !important;
        padding: 30px 20px !important;
        gap: 16px !important;
    }

    .task-card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.75rem !important;
    }

    .task-num {
        top: -5px !important;
        font-size: 2rem !important;
    }
}

/* ──────────────── WELFARE PAGE STYLES ──────────────── */
.welfare-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/welfare_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.welfare-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .welfare-hero-section {
        height: 280px;
    }
}

.welfare-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

/* 提示框優化 */
.alert-custom-info {
    background-color: rgba(37, 73, 175, 0.03) !important;
    border: 1px solid rgba(37, 73, 175, 0.12) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 20px !important;
}

.text-muted-dark {
    color: #334155 !important;
    line-height: 1.7;
}

/* 8大福利小卡樣式 */
.welfare-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.welfare-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.welfare-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 187, 168, 0.25);
    background: rgba(255, 255, 255, 0.99);
}

.welfare-card:hover::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.welfare-card-icon {
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.welfare-card:hover .welfare-card-icon {
    transform: scale(1.1) rotate(6deg);
}

.welfare-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
    transition: var(--transition);
}

.welfare-card:hover .welfare-card-title {
    color: var(--primary);
}

.welfare-card-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* 顏色變體定義 */
.bg-blue-light {
    background-color: rgba(37, 73, 175, 0.08) !important;
}

.bg-purple-light {
    background-color: rgba(124, 58, 237, 0.08) !important;
}

.bg-emerald-light {
    background-color: rgba(16, 185, 129, 0.08) !important;
}

.bg-rose-light {
    background-color: rgba(244, 63, 94, 0.08) !important;
}

.bg-gold-light {
    background-color: rgba(234, 179, 8, 0.08) !important;
}

.bg-cyan-light {
    background-color: rgba(6, 182, 212, 0.08) !important;
}

.bg-orange-light {
    background-color: rgba(249, 115, 22, 0.08) !important;
}

.bg-red-light {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.text-blue {
    color: #2549AF !important;
}

.text-purple {
    color: #7c3aed !important;
}

.text-emerald {
    color: #10b981 !important;
}

.text-rose {
    color: #f43f5e !important;
}

.text-gold {
    color: #eab308 !important;
}

.text-cyan {
    color: #06b6d4 !important;
}

.text-orange {
    color: #f97316 !important;
}

.text-red {
    color: #ef4444 !important;
}

@media (max-width: 991.98px) {
    .welfare-card {
        padding: 30px 20px;
    }
}

/* ──────────────── NEWS PAGE STYLES ──────────────── */
.news-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/news_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.news-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .news-hero-section {
        height: 280px;
    }
}

.news-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

/* 分頁器美化 */
.news-pagination-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.news-pagination-container .pagination {
    gap: 8px;
}

.news-pagination-container .page-item .page-link {
    color: var(--dark-light);
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.news-pagination-container .page-item .page-link:hover {
    color: var(--secondary);
    background-color: var(--light-blue);
    border-color: var(--secondary);
}

.news-pagination-container .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26, 187, 168, 0.2);
}

.news-pagination-container .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: var(--border);
}

.news-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

/* ──────────────── COURSES PAGE STYLES ──────────────── */
.courses-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/courses_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.courses-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .courses-hero-section {
        height: 280px;
    }
}

.courses-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

/* 課程卡片樣式 */
.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 187, 168, 0.25);
}

.course-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: rgba(33, 51, 71, 0.03);
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.course-card:hover .course-card-img {
    transform: scale(1.06);
}

.course-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 73, 175, 0.25);
    z-index: 10;
}

.course-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 16px;
    transition: var(--transition);
}

.course-card:hover .course-title {
    color: var(--primary);
}

.course-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 0.925rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.course-meta-item i {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.course-meta-label {
    font-weight: 700;
    color: var(--dark-light);
    flex-shrink: 0;
}

.course-meta-value {
    word-break: break-all;
}

.course-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ef4444;
}

.course-price small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-right: 4px;
}

.coursedetailbox img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

/* ──────────────── FAQ PAGE STYLES ──────────────── */
.faq-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/faq_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .faq-hero-section {
        height: 280px;
    }
}

.faq-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

/* Accordion 精美客製化 */
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 16px;
    overflow: hidden;
    background-color: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-item:hover {
    border-color: rgba(26, 187, 168, 0.25);
    box-shadow: var(--shadow-md);
}

.faq-accordion .accordion-button {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    padding: 20px 24px;
    background-color: var(--white);
    box-shadow: none;
    transition: var(--transition);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.faq-accordion .accordion-button::after {
    background-size: 1.25rem;
    transition: var(--transition);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(26, 187, 168, 0.25);
}

.faq-accordion .accordion-body {
    padding: 24px;
    font-size: 1rem;
    color: var(--dark-light);
    line-height: 1.8;
    background-color: var(--white);
}

.faq-q-num {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.15rem;
    margin-right: 12px;
    font-family: 'Outfit', sans-serif;
}

/* ──────────────── CONTACT PAGE STYLES ──────────────── */
.contact-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/contact_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .contact-hero-section {
        height: 280px;
    }
}

.contact-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 187, 168, 0.25);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 46px;
    height: 46px;
    background-color: var(--light-blue);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-card:hover .contact-info-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-info-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.contact-info-content p {
    margin-bottom: 0;
    color: var(--dark-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-line-card-btn {
    display: inline-flex;
    align-items: center;
    background-color: #06C755;
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 8px;
    border: none;
}

.contact-line-card-btn:hover {
    background-color: #05b04b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.map-container {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    /* transition: var(--transition); */
}

.map-container iframe {
    width: 100%;
    height: 320px;
}

.map-container:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 187, 168, 0.25);
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

@media (max-width: 575.98px) {
    .contact-form-wrapper {
        padding: 24px;
    }
}

.contact-form .form-label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    color: var(--dark);
    background-color: var(--bg-light);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--secondary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 187, 168, 0.15);
    outline: none;
}

/* ──────────────── MEMBER REGISTRATION PAGE STYLES ──────────────── */
.register-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/register_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.register-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .register-hero-section {
        height: 280px;
    }
}

.register-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

/* 多步驟表單進度條 */
.register-steps-wrapper {
    margin-bottom: 40px;
    position: relative;
}

.step-progressbar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 auto 30px auto;
    padding: 0;
    list-style: none;
    z-index: 1;
    max-width: 900px;
}

.step-progressbar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: var(--border);
    z-index: -1;
}

.step-progress-line {
    position: absolute;
    top: 25px;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-progressbar-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-progressbar-item .step-number {
    width: 50px;
    height: 50px;
    line-height: 46px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: block;
    margin: 0 auto 10px auto;
    background-color: var(--white);
    font-weight: 700;
    color: var(--muted);
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.step-progressbar-item.active .step-number {
    border-color: var(--secondary);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 15px rgba(26, 187, 168, 0.4);
}

.step-progressbar-item.completed .step-number {
    border-color: var(--secondary);
    color: var(--white);
    background: var(--secondary);
    box-shadow: 0 0 10px rgba(26, 187, 168, 0.2);
}

.step-progressbar-item .step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    transition: var(--transition);
}

.step-progressbar-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-progressbar-item.completed .step-label {
    color: var(--secondary);
}

@media (max-width: 767.98px) {
    .step-progressbar-item .step-label {
        display: none;
    }

    .step-progressbar-item .step-number {
        width: 40px;
        height: 40px;
        line-height: 36px;
        font-size: 0.95rem;
    }

    .step-progressbar::before,
    .step-progress-line {
        top: 20px;
    }
}

/* 步驟面板 */
.form-step-panel {
    display: none;
}

.form-step-panel.active {
    display: block;
    animation: fadeInSlide 0.4s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* 職業認證 Radio Card */
.qualification-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--shadow-sm);
}

.qualification-card:hover {
    border-color: rgba(26, 187, 168, 0.4);
    box-shadow: var(--shadow-md);
}

.qualification-card-input {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.qualification-card.selected {
    border-color: var(--secondary);
    background-color: rgba(26, 187, 168, 0.04);
    box-shadow: 0 0 0 3px rgba(26, 187, 168, 0.15);
}

.qualification-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    padding-right: 25px;
}

.qualification-card p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* 組合速查卡片 */
.insurance-quick-table {
    background: rgba(37, 73, 175, 0.02);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px dashed rgba(37, 73, 175, 0.15);
    margin-bottom: 30px;
}

.insurance-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(33, 51, 71, 0.05);
}

.insurance-quick-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.insurance-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 38px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.insurance-desc {
    font-size: 0.92rem;
    color: var(--dark-light);
    line-height: 1.6;
}

.insurance-desc strong {
    color: var(--primary);
}

/* 動態眷屬加保表格 */
.dependent-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.dependent-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.dependent-table th {
    background-color: rgba(37, 73, 175, 0.03);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.dependent-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dependent-table .form-control,
.dependent-table .form-select {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.dependent-delete-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dependent-delete-btn:hover {
    color: #dc2626;
    background-color: rgba(239, 68, 68, 0.08);
}

/* 檔案上傳拖曳區 */
.file-upload-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.file-upload-card:hover {
    box-shadow: var(--shadow-md);
}

.file-upload-label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: block;
}

.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    background-color: rgba(33, 51, 71, 0.005);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.file-upload-zone:hover {
    border-color: var(--secondary);
    background-color: rgba(26, 187, 168, 0.01);
}

.file-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
    transition: var(--transition);
}

.file-upload-zone:hover .file-upload-icon {
    color: var(--secondary);
    transform: translateY(-2px);
}

.file-upload-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
}

.file-upload-hint {
    font-size: 0.76rem;
    color: var(--muted);
    margin-top: 4px;
    display: block;
}

.file-upload-preview {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    display: none;
    word-break: break-all;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 手動收合提示效果 */
.conditional-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.conditional-section.expanded {
    max-height: 2000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

/* ──────────────── MEMBER LOGIN PAGE STYLES ──────────────── */
.login-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/register_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.login-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .login-hero-section {
        height: 280px;
    }
}

.login-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.login-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 187, 168, 0.2);
}

.password-input-group {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.15rem;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
}

.password-toggle-btn:hover {
    color: var(--secondary);
}

.login-card .form-control {
    padding-right: 45px;
}

/* ──────────────── PRIVACY POLICY SECTION ──────────────── */
.privacy-hero-section {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(33, 51, 71, 0.9) 0%, rgba(37, 73, 175, 0.65) 50%, rgba(26, 187, 168, 0.4) 100%), url('../images/news_banner.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.privacy-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 187, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

@media (max-width: 767.98px) {
    .privacy-hero-section {
        height: 280px;
    }
}

.privacy-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(26, 187, 168, 0.6);
}

.privacy-content-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.privacy-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

@media (max-width: 767.98px) {
    .privacy-content-card {
        padding: 1.5rem;
    }
}

.privacy-title-group {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.privacy-section-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-section-title i {
    color: var(--secondary);
}

.privacy-paragraph {
    line-height: 1.85;
    color: var(--dark);
    margin-bottom: 1.25rem;
    text-align: justify;
}

.privacy-list {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}




.privacy-list li {
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: none;
}

.privacy-list li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.textBtn {
    color: #090d16;
}

/* ──────────────── 浮動聯絡按鈕 ──────────────── */
.floating-btn-phone {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    /* 工會主色藍 */
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(37, 73, 175, 0.3);
    transition: all 0.3s ease;
    z-index: 1080;
}

.floating-btn-line {
    position: fixed;
    bottom: 10rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #06C755;
    /* LINE 官方綠 */
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
    transition: all 0.3s ease;
    z-index: 1080;
}

.floating-btn-phone:hover,
.floating-btn-line:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
    box-shadow: 0 8px 24px rgba(33, 51, 71, 0.25);
}

.floating-tooltip {
    position: absolute;
    right: 3.8rem;
    background-color: rgba(33, 51, 71, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn-phone:hover .floating-tooltip,
.floating-btn-line:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

@media (max-width: 767.98px) {
    .floating-btn-phone {
        bottom: 5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }

    .floating-btn-line {
        bottom: 8.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }

    .floating-tooltip {
        display: none !important;
        /* 行動裝置上不顯示 tooltip 避免遮擋 */
    }
}