﻿@charset "UTF-8";
/* ==========================================================================
   科技大觀園 (MOST.SciTechVista) - 學生專區專屬主題與改版樣式
   涵蓋：雙色彩主題（草木綠預設 vs 經典原版）、首頁五大區塊視覺重構、全寬電子報
   100% 獨立隔離於 /SiteStudent/css/ 目錄，不污染主站樣式
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────
   一、 雙色彩主題變數 (CSS Custom Properties)
   ───────────────────────────────────────────────────────────── */
:root, [data-student-theme="green"] {
    --student-accent: #7BA854;              /* 草木綠強調色 */
    --student-accent-hover: #658B43;
    --student-bg-hero: linear-gradient(180deg, #ffffff 0%, #edf5e3 35%, #dfedc8 100%); /* 內容區漸層底色 */
    --student-bg-alt: #EEF4EA;              /* 影音、充電站、學科學習網等交替區塊淡草綠底 */
    --student-bg-white: #ffffff;            /* 純白底色 */
    --student-btn-bg: #7BA854;              /* 膠囊按鈕草綠底 */
    --student-btn-hover: #658B43;
    --student-btn-color: #ffffff;
    --student-tag-color: #52734D;           /* 分類標籤深灰綠 */
    --student-tag-bg: #7BA854;              /* 分類標籤草綠底 */
    --student-tab-active-border: #7BA854;   /* Tab 選中綠底線 */
    --student-in-title-bracket: #7BA854;    /* 標題左上角裝飾折線 */
    --student-in-title-en: #52734D;         /* 英文標題文字 */
    --student-text-primary: #292929;
    --student-text-muted: #5C5C5C;
    --student-card-border: rgba(0, 0, 0, 0.08);
}

[data-student-theme="cream"] {
    --student-accent: #A98B2D;              /* 金棕色強調色 */
    --student-accent-hover: #8A701F;
    --student-bg-hero: linear-gradient(180deg, #ffffff 0%, #fbf8f0 35%, #F3ECD6 100%); /* 暖米黃漸層底色 */
    --student-bg-alt: #F3ECD6;              /* 暖米黃色底 */
    --student-bg-white: #ffffff;
    --student-btn-bg: #F2C54D;              /* 鮮黃/暖金按鈕 */
    --student-btn-hover: #D8AA36;
    --student-btn-color: #3A2F00;
    --student-tag-color: #8A701F;           /* 暖棕色標籤 */
    --student-tag-bg: #F2C54D;
    --student-tab-active-border: #F2C54D;   /* 暖金 Tab 底線 */
    --student-in-title-bracket: #F2C54D;    /* 暖金折線 */
    --student-in-title-en: #A98B2D;         /* 金棕色英文字 */
    --student-text-primary: #2B2B2B;
    --student-text-muted: #6b6b6b;
    --student-card-border: rgba(0, 0, 0, 0.08);
}

[data-student-theme="original"] {
    --student-accent: #FFBC00;              /* 原版亮黃色 */
    --student-accent-hover: #E0A600;
    --student-bg-hero: #F5F5F5;             /* 原版淡灰底色 */
    --student-bg-alt: #F5F5F5;              /* 原版淡灰底色 */
    --student-bg-white: #ffffff;
    --student-btn-bg: #FFBC00;              /* 原版黃色按鈕 */
    --student-btn-hover: #E0A600;
    --student-btn-color: #292929;
    --student-tag-color: #0D65D9;           /* 原版科技藍標籤 */
    --student-tag-bg: #0D65D9;
    --student-tab-active-border: #FFBC00;   /* 原版黃色底線 */
    --student-in-title-bracket: #FFBC00;    /* 原版黃色折線 */
    --student-in-title-en: #0D65D9;         /* 原版科技藍英文字 */
    --student-text-primary: #292929;
    --student-text-muted: #5C5C5C;
    --student-card-border: rgba(255, 255, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   二、 全域與通用元件 (按鈕、標籤、標題折線)
   ───────────────────────────────────────────────────────────── */
/* 標題裝飾折線 */
.in_title .in-tit-h3 {
    color: var(--student-in-title-en) !important;
    transition: color 0.3s ease;
}
.in_title .in-tit-h3:before {
    border-top: 5px solid var(--student-in-title-bracket) !important;
    border-left: 5px solid var(--student-in-title-bracket) !important;
    transition: border-color 0.3s ease;
}
.in_title .in-tit-h3:after {
    border-left: 5px solid var(--student-in-title-bracket) !important;
    transition: border-color 0.3s ease;
}

/* 按鈕膠囊化 (草木綠主題下) */
:root .btn-more,
:root .btn-secondary,
[data-student-theme="green"] .btn-more,
[data-student-theme="green"] .btn-secondary {
    background-color: var(--student-btn-bg) !important;
    color: var(--student-btn-color) !important;
    border-color: var(--student-btn-bg) !important;
    border-radius: 999px !important;
    font-weight: 600;
    transition: all 0.25s ease;
}
:root .btn-more:hover,
:root .btn-secondary:hover,
[data-student-theme="green"] .btn-more:hover,
[data-student-theme="green"] .btn-secondary:hover {
    background-color: var(--student-btn-hover) !important;
    border-color: var(--student-btn-hover) !important;
    box-shadow: 0 4px 12px rgba(123, 168, 84, 0.35);
}

/* 經典原版主題按鈕 */
[data-student-theme="original"] .btn-more,
[data-student-theme="original"] .btn-secondary {
    background-color: #FFBC00 !important;
    color: #292929 !important;
    border-color: #FFBC00 !important;
    border-radius: 0.25rem !important;
    font-weight: 700;
}
[data-student-theme="original"] .btn-more:hover,
[data-student-theme="original"] .btn-secondary:hover {
    background-color: #E0A600 !important;
    border-color: #E0A600 !important;
}

/* 米黃色主題按鈕 */
[data-student-theme="cream"] .btn-more,
[data-student-theme="cream"] .btn-secondary {
    background-color: var(--student-btn-bg) !important;
    color: var(--student-btn-color) !important;
    border-color: var(--student-btn-bg) !important;
    border-radius: 999px !important;
    font-weight: 700;
    transition: all 0.25s ease;
}
[data-student-theme="cream"] .btn-more:hover,
[data-student-theme="cream"] .btn-secondary:hover {
    background-color: var(--student-btn-hover) !important;
    border-color: var(--student-btn-hover) !important;
    box-shadow: 0 4px 12px rgba(242, 197, 77, 0.35);
}

/* 分類標籤 (Badge) 樣式 */
:root .BadgeGroup .badge-primary,
:root .BadgeGroup .badge-sage,
[data-student-theme="green"] .BadgeGroup .badge-primary,
[data-student-theme="green"] .BadgeGroup .badge-sage {
    background-color: var(--student-tag-bg) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.25s ease;
}
[data-student-theme="cream"] .BadgeGroup .badge-primary,
[data-student-theme="cream"] .BadgeGroup .badge-sage {
    background-color: var(--student-tag-bg) !important;
    color: #3A2F00 !important;
    border-radius: 999px !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.25s ease;
}
[data-student-theme="original"] .BadgeGroup .badge-primary,
[data-student-theme="original"] .BadgeGroup .badge-sage {
    background-color: #0D65D9 !important;
    color: #ffffff !important;
    border-radius: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* ─────────────────────────────────────────────────────────────
   三、 首頁第一區塊：影音專區 (.video-wrap)
   ───────────────────────────────────────────────────────────── */
/* 草木綠主題（預設）：淡草綠底、深色字體、卡片微陰影 */
:root .video-wrap,
[data-student-theme="green"] .video-wrap {
    background: var(--student-bg-alt) !important;
    background-image: none !important;
    transition: background 0.3s ease;
}
:root .video-wrap .in-tit-h2,
[data-student-theme="green"] .video-wrap .in-tit-h2 {
    color: #292929 !important;
}
:root .video-wrap .in-tit-h3,
[data-student-theme="green"] .video-wrap .in-tit-h3 {
    color: var(--student-in-title-en) !important;
}
:root .video-wrap .card-list .card-item,
[data-student-theme="green"] .video-wrap .card-list .card-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
    padding: 0 !important;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}
:root .video-wrap .card-list .card-item:hover,
[data-student-theme="green"] .video-wrap .card-list .card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
:root .video-wrap .card-list .card-body,
[data-student-theme="green"] .video-wrap .card-list .card-body {
    color: #292929 !important;
    padding: 1.25rem !important;
}
:root .video-wrap .card-list .card-body-tit,
[data-student-theme="green"] .video-wrap .card-list .card-body-tit {
    color: #292929 !important;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.45;
    transition: color 0.2s ease;
}
:root .video-wrap .card-list .card-item:hover .card-body-tit,
[data-student-theme="green"] .video-wrap .card-list .card-item:hover .card-body-tit {
    color: var(--student-accent) !important;
}

/* 經典原版主題：還原黑底、白字 */
[data-student-theme="original"] .video-wrap {
    background: #000 url(../images/join_bg.jpg) no-repeat bottom center !important;
}
[data-student-theme="original"] .video-wrap .in-tit-h2 {
    color: #ffffff !important;
}
[data-student-theme="original"] .video-wrap .in-tit-h3 {
    color: #0D65D9 !important;
}
[data-student-theme="original"] .video-wrap .card-list .card-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 0 !important;
    margin-bottom: 0;
}
[data-student-theme="original"] .video-wrap .card-list .card-body {
    color: #ffffff !important;
    padding: 0 0 0 1rem !important;
}
[data-student-theme="original"] .video-wrap .card-list .card-body-tit {
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────
   四、 首頁第二區塊：編輯精選 (.Editor-wrap)
   ───────────────────────────────────────────────────────────── */
.Editor-wrap {
    background-color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────
   五、 首頁第三區塊：課外充電站 (.charging-station-wrap)
   ───────────────────────────────────────────────────────────── */
.charging-station-wrap {
    background-color: var(--student-bg-alt);
    transition: background-color 0.3s ease;
}
:root .charging-station-wrap .in-TabBtn a.active,
:root .charging-station-wrap .in-TabBtn a:hover,
:root .charging-station-wrap .in-TabBtn a:focus,
[data-student-theme="green"] .charging-station-wrap .in-TabBtn a.active,
[data-student-theme="green"] .charging-station-wrap .in-TabBtn a:hover,
[data-student-theme="green"] .charging-station-wrap .in-TabBtn a:focus {
    color: #292929 !important;
    border-bottom: 3px solid var(--student-tab-active-border) !important;
}
[data-student-theme="original"] .charging-station-wrap {
    background-color: #ffffff !important;
}
[data-student-theme="original"] .charging-station-wrap .in-TabBtn a.active,
[data-student-theme="original"] .charging-station-wrap .in-TabBtn a:hover,
[data-student-theme="original"] .charging-station-wrap .in-TabBtn a:focus {
    color: #292929 !important;
    border-bottom: 3px solid #FFBC00 !important;
}

/* ─────────────────────────────────────────────────────────────
   六、 首頁第四區塊：科學職人 (.ScientificStaff-wrap)
   ───────────────────────────────────────────────────────────── */
/* 草木綠主題（預設）：純白底、深色字體、綠色強調 */
:root .ScientificStaff-wrap,
[data-student-theme="green"] .ScientificStaff-wrap {
    background-color: #ffffff !important;
    transition: background-color 0.3s ease;
}
:root .ScientificStaff-wrap .in-tit-h2,
[data-student-theme="green"] .ScientificStaff-wrap .in-tit-h2 {
    color: #292929 !important;
}
:root .ScientificStaff-wrap .in-tit-h3,
[data-student-theme="green"] .ScientificStaff-wrap .in-tit-h3 {
    color: var(--student-in-title-en) !important;
}
:root .ScientificStaff-wrap .in-TabBtn a,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabBtn a {
    color: #757575 !important;
}
:root .ScientificStaff-wrap .in-TabBtn a.active,
:root .ScientificStaff-wrap .in-TabBtn a:hover,
:root .ScientificStaff-wrap .in-TabBtn a:focus,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabBtn a.active,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabBtn a:hover,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabBtn a:focus {
    color: #292929 !important;
    border-bottom: 3px solid var(--student-tab-active-border) !important;
}
:root .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-bookmark,
:root .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-date,
:root .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-title,
:root .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-txt,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-bookmark,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-date,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-title,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-txt {
    color: #292929 !important;
}
:root .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .Article-AuthorRow,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .Article-AuthorRow {
    color: #5C5C5C !important;
}
:root .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-item:hover .kf-title,
:root .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-item:focus .kf-title,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-item:hover .kf-title,
[data-student-theme="green"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-item:focus .kf-title {
    color: var(--student-accent) !important;
}

/* 經典原版主題：黑底、白字、黃色底線 */
[data-student-theme="original"] .ScientificStaff-wrap {
    background-color: #000000 !important;
}
[data-student-theme="original"] .ScientificStaff-wrap .in-tit-h2 {
    color: #ffffff !important;
}
[data-student-theme="original"] .ScientificStaff-wrap .in-tit-h3 {
    color: #0D65D9 !important;
}
[data-student-theme="original"] .ScientificStaff-wrap .in-TabBtn a {
    color: rgba(255, 255, 255, 0.7) !important;
}
[data-student-theme="original"] .ScientificStaff-wrap .in-TabBtn a.active,
[data-student-theme="original"] .ScientificStaff-wrap .in-TabBtn a:hover,
[data-student-theme="original"] .ScientificStaff-wrap .in-TabBtn a:focus {
    color: #ffffff !important;
    border-bottom: 3px solid #FFBC00 !important;
}
[data-student-theme="original"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-bookmark,
[data-student-theme="original"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-date,
[data-student-theme="original"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-title,
[data-student-theme="original"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-txt {
    color: #ffffff !important;
}
[data-student-theme="original"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .Article-AuthorRow {
    color: rgba(255, 255, 255, 0.7) !important;
}
[data-student-theme="original"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-item:hover .kf-title,
[data-student-theme="original"] .ScientificStaff-wrap .in-TabContent .kf-diagramtext-col .kf-item:focus .kf-title {
    color: #FFBC00 !important;
}

/* ─────────────────────────────────────────────────────────────
   七、 首頁第五區塊：學科學習網 (.network-wrap)
   ───────────────────────────────────────────────────────────── */
.network-wrap {
    background: var(--student-bg-alt) !important;
    transition: background 0.3s ease;
}
[data-student-theme="original"] .network-wrap {
    background: #F5F5F5 !important;
}
.network-wrap .network-right-col .bg-white {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────────────────────
   八、 全寬訂閱電子報模組 (.newsletter-wrap - 全站頁尾方案 A 標準)
   ───────────────────────────────────────────────────────────── */
.newsletter-wrap {
    background: #282829;
    padding: 60px 0;
    color: #ffffff;
}
.newsletter {
    background-color: #F3E3C1 !important;
    background-image: none !important;
    border-radius: 16px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}
.newsletter-body {
    flex: 1 1 auto;
    min-width: 0;
}
.newsletter-tit {
    font-size: 24px;
    font-weight: 800;
    color: #292929;
    margin-bottom: 0;
}
.newsletter-desc {
    color: #6b6b6b;
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 15px;
}
.newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 6px 6px 6px 16px;
}
.newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 15px;
    outline: none;
    color: #292929;
}
.newsletter-form .btn {
    flex: 0 0 auto;
    background: #F2C54D !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    color: #3A2F00 !important;
    font-weight: 700 !important;
    transition: background 0.2s ease;
}
.newsletter-form .btn:hover {
    background: #D98F1F !important;
    color: #3A2F00 !important;
}
.newsletter-mascot {
    flex: 0 0 190px;
    align-self: flex-end;
}
.newsletter-mascot img {
    display: block;
    max-width: 100%;
}

.newsletter-wrap .links-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}
.newsletter-wrap .links-list li {
    flex: 1 1 50%;
    display: flex;
}
.newsletter-wrap .links-list li + li {
    margin-top: 0;
}
.newsletter-wrap .links-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 18px 24px;
    color: #292929;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.newsletter-wrap .links-list li:first-child .links-item {
    border-radius: 16px 16px 0 0;
}
.newsletter-wrap .links-list li:last-child .links-item {
    border-radius: 0 0 16px 16px;
}
.newsletter-wrap .links-item-01 {
    background: #E7EDF5;
}
.newsletter-wrap .links-item-02 {
    background: #F2E8D0;
}
.newsletter-wrap .links-item-01:hover {
    background: #DAE4F0;
    color: #292929;
}
.newsletter-wrap .links-item-02:hover {
    background: #EBDDBB;
    color: #292929;
}
.newsletter-wrap .links-item img {
    width: 44px;
    height: 44px;
}
.newsletter-wrap .links-item-tit {
    font-size: 17px;
    font-weight: 700;
    color: #292929;
}
.newsletter-wrap .links-item-desc {
    font-size: 13px;
    color: #6b6b6b;
    margin-top: 4px;
}

@media (max-width: 991.98px) {
    .newsletter {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 22px;
    }
    .newsletter-mascot {
        align-self: center;
        flex: 0 0 auto;
        max-width: 150px;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .newsletter-form input {
        width: 100%;
        padding: 8px 10px;
    }
    .newsletter-form .btn {
        width: 100%;
    }
    .newsletter-wrap .links-list {
        margin-top: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────
   九、 學生專區第二層分類頁與次級頁專屬樣式 (docs/07)
   ───────────────────────────────────────────────────────────── */
/* 次級頁內容區背景漸層 (連動學生專區三色彩主題) */
.contents_wrap {
    background: var(--student-bg-hero) !important;
}
.main_body {
    background: transparent !important;
}

/* 1. 依設計稿移除右上角字級大小與列印工具列 */
.contents_wrap .contents_function {
    display: none !important;
}

/* 2. 麵包屑導航間距優化 */
.contents_wrap .breadcrumbs {
    margin-bottom: 0.5rem;
}

/* 3. 確保文章列表卡片不帶下底線，hover 時標題變換主題強調色 */
.main_body .kf-item,
.main_body a.kf-item {
    text-decoration: none !important;
}
.main_body .kf-item:hover,
.main_body a.kf-item:hover {
    text-decoration: none !important;
}
.main_body .kf-item:hover .kf-title,
.main_body a.kf-item:hover .kf-title {
    color: var(--student-accent) !important;
    text-decoration: none !important;
}

/* 3-1. 編輯精選卡片 (.ThemesGroup-list) hover 效果與主題連動 */
.ThemesGroup-list .item a {
    text-decoration: none !important;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ThemesGroup-list .item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    text-decoration: none !important;
}
.ThemesGroup-list .item a .kf-img img {
    transition: transform 0.35s ease;
}
.ThemesGroup-list .item a:hover .kf-img img {
    transform: scale(1.04);
}
.ThemesGroup-list .item a:hover .kf-title {
    color: var(--student-accent) !important;
    text-decoration: none !important;
}
.ThemesGroup-list .item .kf-text-content .kf-title {
    transition: color 0.2s ease;
}

/* 4. 右側邊欄：極簡導航小卡片 (三色切換支援) */
.side-nav-card {
    background: var(--student-bg-alt) !important;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.side-nav-card .side-card-tit {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--student-text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}
.side-nav-card .side-card-line {
    display: block;
    width: 36px;
    height: 2px;
    background: var(--student-accent) !important;
    margin: 0 auto 1.25rem;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}
.side-nav-card .btn-side-more {
    display: inline-block;
    background-color: var(--student-btn-bg) !important;
    color: var(--student-btn-color) !important;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.side-nav-card .btn-side-more:hover,
.side-nav-card .btn-side-more:focus {
    background-color: var(--student-btn-hover) !important;
    color: var(--student-btn-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

/* 5. 分頁元件 (Pagination) 三色主題支援 */
.pagination .page-item .page-link {
    color: #555555;
    border-radius: 6px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}
.pagination .page-item .page-link:hover {
    color: var(--student-accent);
    border-color: var(--student-accent);
    background-color: var(--student-bg-alt);
}
.pagination .page-item.active .page-link {
    z-index: 3;
    color: var(--student-btn-color) !important;
    background-color: var(--student-accent) !important;
    border-color: var(--student-accent) !important;
    border-radius: 6px !important;
    font-weight: 700;
}
[data-student-theme="original"] .pagination .page-item.active .page-link {
    color: #292929 !important;
    background-color: #FFBC00 !important;
    border-color: #FFBC00 !important;
}
[data-student-theme="cream"] .pagination .page-item.active .page-link {
    color: #3A2F00 !important;
    background-color: #F2C54D !important;
    border-color: #F2C54D !important;
}

/* ─────────────────────────────────────────────────────────────
   十、 學生專區「學習夥伴」專屬樣式 (docs/09)
   ───────────────────────────────────────────────────────────── */
/* 1. 關鍵字搜尋按鈕組：送出搜尋與清空搜尋 */
#SearchButton.kf-search-btn {
    background-color: var(--student-btn-bg) !important;
    border-color: var(--student-btn-bg) !important;
    color: var(--student-btn-color) !important;
    border-radius: 6px !important;
    padding: 0.5rem 1.35rem !important;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
#SearchButton.kf-search-btn:hover,
#SearchButton.kf-search-btn:focus {
    background-color: var(--student-btn-hover) !important;
    border-color: var(--student-btn-hover) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.kf-search-row .btn-secondary.kf-search-btn {
    background-color: var(--student-bg-alt) !important;
    border: 1px solid var(--student-accent) !important;
    color: var(--student-tag-color) !important;
    border-radius: 6px !important;
    padding: 0.5rem 1.35rem !important;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
    box-shadow: none !important;
}
.kf-search-row .btn-secondary.kf-search-btn:hover,
.kf-search-row .btn-secondary.kf-search-btn:focus {
    background-color: var(--student-accent) !important;
    color: var(--student-btn-color) !important;
    border-color: var(--student-accent) !important;
    transform: translateY(-1px);
}

/* 經典原版主題：送出搜尋科技藍、清空搜尋黃色方塊 */
[data-student-theme="original"] #SearchButton.kf-search-btn {
    background-color: #0D65D9 !important;
    border-color: #0D65D9 !important;
    color: #ffffff !important;
    border-radius: 0.25rem !important;
    box-shadow: none;
}
[data-student-theme="original"] #SearchButton.kf-search-btn:hover {
    background-color: #0b56b8 !important;
    border-color: #0b56b8 !important;
}
[data-student-theme="original"] .kf-search-row .btn-secondary.kf-search-btn {
    background-color: #FFBC00 !important;
    border-color: #FFBC00 !important;
    color: #292929 !important;
    border-radius: 0.25rem !important;
    box-shadow: none;
}
[data-student-theme="original"] .kf-search-row .btn-secondary.kf-search-btn:hover {
    background-color: #E0A600 !important;
    border-color: #E0A600 !important;
    color: #292929 !important;
}

/* 2. 機構分類展開更多「資料」按鈕 */
.accordion .btn-black.collapse-more,
.accordion .collapse-more {
    background-color: var(--student-btn-bg) !important;
    border-color: var(--student-btn-bg) !important;
    color: var(--student-btn-color) !important;
    border-radius: 6px !important;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.45rem 1.5rem !important;
    border: none !important;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.accordion .btn-black.collapse-more:hover,
.accordion .btn-black.collapse-more:focus,
.accordion .collapse-more:hover,
.accordion .collapse-more:focus {
    background-color: var(--student-btn-hover) !important;
    color: var(--student-btn-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

[data-student-theme="original"] .accordion .btn-black.collapse-more,
[data-student-theme="original"] .accordion .collapse-more {
    background-color: #292929 !important;
    border-color: #292929 !important;
    color: #ffffff !important;
    border-radius: 0.25rem !important;
    box-shadow: none;
}
[data-student-theme="original"] .accordion .btn-black.collapse-more:hover,
[data-student-theme="original"] .accordion .collapse-more:hover {
    background-color: #000000 !important;
}

/* 3. 學習夥伴卡片微動態與視覺強化 */
.accordion .kf-diagramtext-card .kf-item {
    text-decoration: none !important;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.accordion .kf-diagramtext-card .kf-item:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}
.accordion .kf-diagramtext-card .kf-item .kf-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}
.accordion .kf-diagramtext-card .kf-item:hover .kf-img {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.accordion .kf-diagramtext-card .kf-item .kf-img img {
    transition: transform 0.35s ease;
}
.accordion .kf-diagramtext-card .kf-item:hover .kf-img img {
    transform: scale(1.04);
}
.accordion .kf-diagramtext-card .kf-item .kf-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 0.75rem;
    color: #292929;
    transition: color 0.2s ease;
}
.accordion .kf-diagramtext-card .kf-item:hover .kf-title {
    color: var(--student-accent) !important;
}

/* ─────────────────────────────────────────────────────────────
   十一、 頂部導覽「學生專區」標籤與「臺灣科普環島列車」Banner
/* 學生專區頂部橫幅：後台無發布活動橫幅時，完全維持正式站原版 Banner-wrap / main-banner-wrap 樣式 */

/* 學生專區頂部導覽標籤（無底色純文字版, 18px） */
.student-zone-badge {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a !important;
    background: transparent !important;
    padding: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
    user-select: none;
}

/* 首頁頂部 Banner + 影音專區融合漸層區塊 */
.student-hero-wrap {
    width: 100%;
    padding-top: calc(60px + 48px);
    background: var(--student-bg-hero);
    transition: padding-top 0.5s ease-in-out;
}
@media (min-width: 992px) {
    .student-hero-wrap {
        padding-top: calc(60px + 60px);
    }
}
.student-hero-wrap .video-wrap {
    background: transparent !important;
    background-image: none !important;
    padding-top: 1.5rem;
}
@media (min-width: 992px) {
    .student-hero-wrap .video-wrap {
        padding-top: 2rem;
    }
}

/* 原版配色主題之首頁頂部區塊保持原版黑底風格 */
[data-student-theme="original"] .student-hero-wrap {
    background: #000;
}
[data-student-theme="original"] .student-hero-wrap .video-wrap {
    background: #000 url(../images/join_bg.jpg) no-repeat bottom center !important;
}

/* 學生專區頂部活動橫幅 Banner 容器與響應式配置（首頁與次級列表頁共用） */
.student-event-banner-wrap,
.student-train-banner-wrap {
    width: 100%;
    margin-top: calc(60px + 48px);
    padding-top: 16px;
    padding-bottom: 12px;
}
@media (min-width: 992px) {
    .student-event-banner-wrap,
    .student-train-banner-wrap {
        margin-top: calc(60px + 60px);
        padding-top: 24px;
        padding-bottom: 16px;
    }
}
.contents_wrap .student-event-banner-wrap,
.contents_wrap .student-train-banner-wrap {
    margin-top: 0 !important;
}

/* 當首頁頂部有原版橫幅或活動大橫幅時，下方影音專區 padding-top 調整為正常間距 */
.Banner-wrap + .student-hero-wrap,
.student-event-banner-wrap + .student-hero-wrap {
    padding-top: 1.5rem !important;
}
@media (min-width: 992px) {
    .Banner-wrap + .student-hero-wrap,
    .student-event-banner-wrap + .student-hero-wrap {
        padding-top: 2rem !important;
    }
}
.student-event-banner-link,
.student-train-banner-link {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.student-event-banner-link:hover,
.student-event-banner-link:focus,
.student-train-banner-link:hover,
.student-train-banner-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    outline: none;
}
.student-event-banner-link:focus-visible,
.student-train-banner-link:focus-visible {
    outline: 3px solid #7BA854;
    outline-offset: 2px;
}
.student-event-banner-img,
.student-train-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
}


