

/*2025/12*/

/* 品牌標準色定義 */
:root {
    --wzu-green: #357535;
    --wzu-yellow: #FABE00;
    --wzu-dark: #191919;
    --wzu-white: #FFFFFF;
    --primary: #21448f;
    --secondary: #c19371;
}

html {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

a {
    text-decoration: none;
    transition: .3s ease-in-out;
}
a:hover {
    color: var(--wzu-green);
}

img {
    width: 100%;
    height: auto;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #F8F6F1;
}

/** {*/
/*    border: 1px solid #000000;*/
/*}*/

.bg-primary {
    background: var(--primary);
}
.bg-secondary {
    background-color: var(--secondary);
}
.bg-light-gray {
    background-color: #d8d6d2;
    position: relative;
}
.bg-spe-gray::after {
    display: block;
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 30%;
    background-color: #F8F6F1;
    z-index: 1;
    clip-path: polygon(0 100%, 0% 60%, 100% 0%, 0% 0%);
}
.btn-primary  {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.btn-secondary  {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background-color: #edae2e;
    border-color: #edae2e;
}

/*------------------------------------------------------header*/

.header-title {
    font-size: 20px;
    margin-bottom: 0;
}
.header-logo {
    height: 70px;
}
.navbar-nav a.nav-link {
    color: #3c3c3c !important;
    font-size: 18px;
    font-weight: 500;
}
.navbar-nav a.nav-link:hover {
    color: var(--primary) !important;
}
.navbar-nav-sm {
    background-color: #dfdfdf;
}
.navbar-nav-sm a, .navbar-nav-sm .nav-link  {
    padding: .5rem 1rem;
    font-size: 16px;
}
@media (max-width: 768px) {
    .header-title {
        font-size: 18px;
    }
    .header-logo {
        height: 40px;
    }
    .navbar-nav a.nav-link {
        font-size: 16px;
    }
}

.nav-menu {
    background-color: var(--wzu-yellow);
    border-bottom: 4px solid #9f7159;
}

.page-navbar .nav-menu {
    border-bottom: 0px;
}
.page-navbar .navbar-brand {
    border-bottom: 4px solid #b1b1b1;
}

.title-style-1 {
    font-size: 28px;
    font-weight: 500;
    color: var(--wzu-green);
    margin: .5rem 0;
}
.title-style-1 span{
    opacity: .5;
}
.title-style-2 {
    font-size: 28px;
    font-weight: 500;
    color: white;
    margin: .5rem 0;
}
.title-style-2 span{
    opacity: .5;
}

.one-line {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    /* 必須設定寬度 */
    width: 100%;
}


/*---------------------------------------------------home*/

/* Hero 視覺區：採用圖片中的幾何圓形與斜角設計 */
.hero-banner-index {
    background-color: var(--primary);
    margin-top: -1rem;
    position: relative;
    height: 400px;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-yellow-accent {
    position: absolute;
    bottom: -3rem; left: 0; width: 100%; height: 30%;
    background-color: #F8F6F1;
    z-index: 1;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 60%);
}
.hero-circle-img {
    position: absolute;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    z-index: 2;
}

.home-title {
    font-size: 36px;
    font-weight: normal;
    color: #ffffff;
    padding: .5rem 1rem ;
}

.home-title span {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    opacity: .6;
}


a.more-style {
    color: #333333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}
a.more-style:hover {
    color: #959595;
}
a.more-style i {
    color: var(--secondary);
    font-size: 16px;
}

a.more-style-gray {
    color: white;
}

.news-item {
    background-color: #fff;
    border: 2px solid rgba(96, 96, 96, 0.52);
    padding: .5rem 1rem;
    margin-bottom: 1rem;
    font-size: 16px;
    color: #4B4B4B;
    display: block;
    border-radius: 5px;
}
.news-item .small {
    font-size: 14px;
    color: var(--secondary);
}
.news-item:hover {
    border: 2px solid rgba(81, 133, 30, 0.47);
}

.events-wrap-index {
    padding: .5rem 1rem;
    margin: .5rem;
    background-color: var(--primary);
    border-radius: 15px;
}


.events-image-wrap-index {
    height: 350px;
}

.little-text {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-top: 3rem;
    margin-bottom: 3rem;
    opacity: .7;
    text-align: center;
}
.little-text::before, .little-text::after {
    content: "";
    display: block;
    width: 25vw;
    height: 1px;
    margin: 1rem;
    background-color: var(--secondary);
    opacity: .7;
}
/*-------------------------------foooooooooter*/
.footer {
    background-color: #383838;
    border-top: 23px solid var(--wzu-green);
    color: rgba(255, 255, 255, 0.66);
    position: relative;
    padding: 1rem .5rem;
}

.footer a {
    color: #ffffff;
}
.footer a:hover {
    color: #EBBA57;
}
.toTop-btn {
    /* 確保按鈕在畫面固定位置 */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    /* 讓按鈕預設隱藏，只在滾動時顯示 */
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    
    border: 0;
    width: 50px;
    height: 50px;
    font-size: 30px;
    background-color: #EBBA57;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
}

/* 顯示時的樣式 */
.toTop-btn.show {
    opacity: 1;
    visibility: visible;
}

.footer small {
    font-size: 12px;
    margin-top: 1rem;

}
/*    ------------------page*/

.hero-banner {
    color: #3c3c3c;
    padding: 2rem 1rem;
    margin-top: -1rem;
    position: relative; /* 為了讓偽元素絕對定位 */
    z-index: 1; /* 確保內容在背景之上 */
    overflow: hidden; /* 防止模糊或縮放溢出 */
    background-position: center;
    background-size: cover;
}
.hero-banner h4 {
    opacity: .5;
}
/* 消息列表項目 */
.news-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    color: #333;
}

.news-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #ffc107; /* 碰觸時變黃色 */
}

.news-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.news-date {
    color: #8bb14c; /* 圖片中的綠色日期 */
    font-size: 0.85rem;
}

/* 分頁按鈕樣式 */

.custom-pagination .page-link {
    border: none;
    color: #666;
    margin: 0 5px;
    border-radius: 50% !important; /* 圓形 */
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-pagination .page-item.active .page-link {
    background-color: #f6c244; /* 圖片中的黃色 */
    color: white;
}


/* Tab 導覽列美化 */
.custom-tabs {
    gap: 15px;
}

.custom-tabs .nav-link {
    background-color: #e9ecef; /* 未選中時的灰色 */
    color: #495057;
    border-radius: 50px; /* 膠囊形 */
    padding: 10px 30px;
    font-weight: 500;
    transition: 0.3s;
    border: none;
}

/* 選中時的樣式 (黃色) */
.custom-tabs .nav-link.active {
    background-color: #f6c244 !important;
    color: #333 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 滑鼠經過時的樣式 */
.custom-tabs .nav-link:hover:not(.active) {
    background-color: #dee2e6;
}

/* 內容區進場動畫 */
.tab-pane.fade {
    transition: opacity 0.2s linear;
}

/* 組織圖卡片基礎 */
.org-card {
    background: #fff;
    border: 2px solid #f6c244; /* 黃色邊框 */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.org-card:hover {
    transform: translateY(-5px);
}

/* 主任卡片特別樣式 */
.top-level {
    border-width: 3px;
    border-color: #8bb14c; /* 綠色邊框區分 */
}

.card-header-tag {
    background: #8bb14c;
    color: white;
    padding: 2px 15px;
    font-size: 0.8rem;
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 10px;
}

/* 圖片大小 */
.member-img-small { width: 80px; height: 80px; object-fit: cover; }
.member-img-staff { width: 60px; height: 60px; object-fit: cover; }

/* 職掌清單字體 */
.x-small { font-size: 0.75rem; }
.job-preview ul { list-style-type: decimal; }

/* 連接線 (視覺上連接上下層) */
.org-line-connector {
    width: 2px;
    height: 40px;
    background: #dee2e6;
    margin: -3rem auto 2rem;
}

/* 卡片主體 */
.org-card.staff-level {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.org-card.staff-level:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--wzu-green);
}

/* 文字與標籤 */
.wzu-text-green { color: var(--wzu-green); }

.dept-badge {
    font-size: 0.75rem;
    background-color: #f8f9fa;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
    margin-left: 5px;
}

.registration-note {
    font-size: 0.85rem;
    color: #dc3545; /* 採用與圖片一致的紅色警告字體 */
    margin-top: 5px;
}

.x-small { font-size: 0.75rem; }

/* 按鈕樣式 */
.btn-fb {
    background-color: #f0f2f5;
    color: #1877f2;
    border: 1px solid #1877f2;
    border-radius: 20px;
}
.btn-fb:hover { background-color: #1877f2; color: white; }

.btn-email {
    background-color: #f0f2f5;
    color: var(--wzu-green);
    border: 1px solid var(--wzu-green);
    border-radius: 20px;
}
.btn-email:hover { background-color: var(--wzu-green); color: white; }

/* Tab 切換按鈕樣式 */
.alumni-tabs .nav-link {
    color: var(--wzu-green);
    border: 1px solid var(--wzu-green);
    margin-right: 10px;
    border-radius: 25px;
    padding: 8px 25px;
    font-weight: bold;
    transition: all 0.3s;
}

.alumni-tabs .nav-link.active {
    background-color: var(--wzu-green) !important;
    color: #fff !important;
    border-color: var(--wzu-green);
}

/* 年份標籤 */
.bg-yellow-soft {
    background-color: #FFF9E6;
    color: #D4A017;
    font-size: 0.7rem;
    font-weight: normal;
    border: 1px solid var(--wzu-yellow);
}

/* 優秀校友卡片圖片尺寸 */
.member-img-staff {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* 查看詳情按鈕 */
.btn-detail {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}
.btn-detail:hover {
    color: var(--wzu-green);
    text-decoration: underline;
}

/* 卡片懸浮效果 */
.alumni-hover-card {
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.alumni-hover-card:hover {
    border-color: var(--wzu-yellow);
    box-shadow: 0 5px 15px rgba(250, 190, 0, 0.15);
}

.accordion-button:not(.collapsed) {
    color: var(--wzu-green) !important;
    background-color: #fcffe7 !important;
}