/*
    Update History:
    V1.0.0: 從 groups-1.2.1 繼承並轉型為 About Us 頁面，初始版本。
    V1.0.1: 修正雙欄架構對齊 groups.html，置入內容美化並新增淡入動畫效果。
    V1.0.2: 修正行動版漢堡選單文字消失問題，並落實首頁僅顯示英文、其餘項目中英並列的設計。
    V1.0.3: 修正行動版漢堡選單中，Home 項目在 Hover 時的文字變色效果，其餘項目維持僅中文變色。
    V1.0.4: 新增內容區塊間的灰色細線分隔，並優化段落垂直間距。
    V1.0.5: 加入文字顏色class。
    V1.0.6: 調整字高、footer padding。
*/

:root {
    --panel-main-text-size: clamp(1rem, 1.2vw, 1.5rem);
    --panel-main-line-height: 1.8;
    --accent-color: #FFB11B;
    --divider-color: var(--accent-color); /* 定義分隔細線顏色 */
}

html { font-size: 16px; scroll-behavior: smooth; } 
@media (max-width: 1920px) { html { font-size: 14.222px; } }
@media (max-width: 1440px) { html { font-size: 13px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }

.resize-transition-stopper * {
    transition: none !important;
}

body { 
    font-family: "Microsoft JhengHei", sans-serif; 
    font-size: 0.75rem; 
    color: #333; 
    background-color: #FFFFFF; 
    overflow-x: hidden; 
    overflow-y: auto; 
}

/* --- Navbar --- */
.navbar { 
    position: fixed; top: 0; width: 100%; height: 6.25rem; 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 2.5rem; 
    background: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(10px);          
    -webkit-backdrop-filter: blur(10px);   
    z-index: 10000; white-space: nowrap; 
}
.nav-side { display: flex; align-items: center; }
.nav-left { justify-content: flex-start; gap: 3rem; }
.logo-area { cursor: pointer; flex-shrink: 0; }
.logo-area img { height: 3.125rem; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 1.875rem; align-items: center; }
.nav-item, .nav-item-special { height: 1.6rem; line-height: 1.6rem; cursor: pointer; position: relative; overflow: hidden; }

.nav-item.active, 
.nav-item.active .nav-external, 
.nav-item.active .flip-text,
.nav-item-special.active,
.nav-item-special.active .nav-external,
.nav-item-special.active .flip-text { 
    cursor: default !important; 
    pointer-events: none !important; 
}

.nav-external { text-decoration: none !important; color: #000000 !important; display: block; width: 100%; height: 100%; }

.flip-text { display: flex; flex-direction: column; transition: transform 0.5s cubic-bezier(0.45, 0, 0.55, 1); height: 3.2rem; }
.flip-text span { display: block; height: 1.6rem; line-height: 1.6rem; text-align: center; color: #000000; transition: opacity 0.4s, color 0.4s; font-size: 1.125rem; font-weight: 500; }
.flip-text .ch { opacity: 0; }
.flip-text .en { opacity: 1; }

.nav-item:hover .flip-text, .nav-item.active .flip-text, .nav-item-special:hover .flip-text, .nav-item-special.active .flip-text { transform: translateY(-1.6rem); }
.nav-item:hover .en, .nav-item.active .en, .nav-item-special:hover .en, .nav-item-special.active .en { opacity: 0; }
.nav-item:hover .ch, .nav-item.active .ch, .nav-item-special:hover .ch, .nav-item-special.active .ch { opacity: 1; }

.nav-item:has(span:only-child) .flip-text { height: 1.6rem; }
.nav-item:has(span:only-child):hover .flip-text { transform: none; }
.nav-item:has(span:only-child):hover .en { opacity: 1; color: var(--accent-color); }

.nav-item:not(.active):hover .flip-text span.ch, .nav-item-special:not(.active):hover .flip-text span.ch { color: var(--accent-color) !important; }

.nav-item.active, .nav-item-special.active { border-bottom: 2px solid #000; }

.icon-area { display: flex; gap: 1.25rem; align-items: center; }
.mobile-only-icons { display: none; } 
.icon-item { position: relative; width: 1.5625rem; height: 1.5625rem; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.icon-item img { height: 1.5625rem !important; width: 1.5625rem !important; position: absolute; transition: 0.2s; }
.icon-hover { opacity: 0; }
.icon-item:hover .icon-orig { opacity: 0; }
.icon-item:hover .icon-hover { opacity: 1; }

.icon-label { 
    position: absolute; bottom: 1.5rem; left: 100%; transform: translateX(-50%); 
    font-size: 0.75rem; white-space: nowrap; opacity: 0; transition: 0.4s; 
    pointer-events: none; text-align: center; background: rgba(0, 0, 0, 0.7); 
    color: white; padding: 0 0.5rem; border-radius: 4px; 
}
.icon-item:hover .icon-label { opacity: 1; }

.hamburger { display: none; width: 30px; height: 20px; flex-direction: column; justify-content: space-between; cursor: pointer; z-index: 10001; }
.hamburger span { display: block; width: 100%; height: 3px; background-color: #000000; border-radius: 3px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* --- About Content Layout --- */
#about-content { margin-top: 6.25rem; min-height: calc(100vh - 6.25rem - 250px); width: 100%; display: flex; flex-direction: column; }
.about-top-header { width: 100%; padding: 6rem 0 2rem; display: flex; flex-direction: column; }
.en-title-row { width: 100%; padding-right: 150px; text-align: right; }
.header-title-en { font-size: 6em; font-weight: 800; color: #333; letter-spacing: 2px; line-height: 1; margin: 0; }
.banner-row { width: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 100px; position: relative; margin-top: 0.5rem; }
.sidebar-title { position: absolute; left: 100px; font-size: 1.5em; font-weight: 700; color: #333; margin: 0; white-space: nowrap; }

.header-banner-icon { 
    width: 60vw; 
    height: auto; 
    aspect-ratio: 1152 / 100; 
    object-fit: cover; 
}

.about-body-container { width: 100%; display: flex; flex-direction: row; align-items: stretch; padding: 2rem 0 5rem; }
.about-sidebar { width: 25%; flex-shrink: 0; }
.about-divider { width: 0.5px; background-color: rgba(0, 0, 0, 0.1); flex-shrink: 0; }
.about-main-panel { width: 75%; padding: 0 15vw 0 3rem; flex-grow: 1; }

.text-accent {color: var(--accent-color) !important;}


/* [V1.0.4 新增] 內容區塊分隔線樣式 */
.content-divider {
    border-bottom: 1.5px solid var(--divider-color);
    padding-bottom: 5rem;
    margin-bottom: 5rem;
}

/* --- 動態與美化樣式 --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
    animation: fadeInUp 1s ease-out forwards;
}

.about-article {
    max-width: 1400px;
}

.section-main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #111;
    text-align: center;
}

.about-article p {
    font-size: var(--panel-main-text-size);
    line-height: var(--panel-main-line-height);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.sub-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 5rem 0 1.5rem; /* V1.0.4 調整 margin 以適應分隔線 */
    color: #444;
    text-align: center;
}

.intro-section, .intro-section p, .creed-section, .creed-section p, .vision-section, .vision-section p {
    text-align: center;
    font-size: 2rem;
    color: #888;
}

.intro-section p {text-align: left;}


/* 宣教區塊 */
.mission-section { width:60%; margin: 3rem auto; background: #f9f9f9; padding: 2rem; border-radius: 8px; }
.mission-item { margin-bottom: 1rem; display: flex; align-items:flex-start ; gap: 0.5rem; }
.mission-label {font-weight: 700; white-space: nowrap; font-size: 1.1rem; }
.mission-summary { font-weight: 700; margin-top: 1rem !important; border-top: 1px solid #ddd; padding-top: 1rem; }

/* 認信區塊 */
.creed-content {
    padding: 2rem;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-radius: 4px;
}
.creed-content p { margin-bottom: 0.5rem; text-align: center; }
.creed-amen { font-weight: 700; font-size: 1.3rem; margin-top: 1.5rem !important; }

/* 異象區塊 */
.vision-card {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}
.vision-card p { color: #fff; margin-bottom: 1rem; font-weight: 500; }

/* --- Footer --- */
.footer-section { height: 250px; background-color: black; display: flex; justify-content: center; align-items: center; color: white; }
.footer-container { width: 90%; max-width: 1200px; display: flex; justify-content: center; align-items: flex-start; gap: clamp(2rem, 12.2vw, 15.625rem); }
.footer-left { display: flex; flex-direction: column; gap: 0.5rem; color: #bbb; font-size: 0.9rem; min-width: 300px; }
.footer-right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: #888; min-width: 250px; height: 100%; }
.work-time { display: flex; align-items: flex-start; margin-top: 0.5rem; }
.back-btn { cursor: pointer; margin-top: 1rem; width: 40px; height: 15px; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.arrow-up { width: 10px; height: 10px; border-top: 3px solid rgba(255, 255, 255, 0.7); border-left: 3px solid rgba(255, 255, 255, 0.7); transform: rotate(45deg); }

/* --- RWD --- */
@media (max-width: 1024px) {
    .navbar { padding: 1.5rem 2.5rem; }
    .nav-links { 
        position: fixed; top:0; right: 0; width: 250px; height: 100vh; 
        background: rgba(0, 0, 0, 0.9); flex-direction: column; 
        align-items: flex-start !important;
        padding: 70px 30px; gap: 2.2rem; 
        z-index: 10000; border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.4s ease; transform: translateX(100%);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    .nav-links.active { transform: translateX(0); }
    
    .nav-links .nav-item, .nav-links .nav-item-special { height: auto !important; overflow: visible !important; }
    .nav-links .flip-text { height: auto !important; transform: none !important; display: flex !important; flex-direction: column !important; }
    
    .nav-links .flip-text .en { opacity: 0.7 !important; color: #FFFFFF !important; font-size: 1.5rem !important; text-align: left; transition: color 0.3s; }
    .nav-links .flip-text .ch { opacity: 1 !important; color: #FFFFFF !important; font-size: 1rem !important; margin-top: 5px !important; text-align: left; transition: color 0.3s; }
    
    .nav-links .nav-item:has(span:only-child):hover .en { color: var(--accent-color) !important; opacity: 1 !important; }

    .nav-links .nav-item:not(:has(span:only-child)):hover .ch,
    .nav-links .nav-item-special:not(:has(span:only-child)):hover .ch { color: var(--accent-color) !important; }

    .nav-links .nav-item:has(span:only-child) .en { opacity: 1 !important; }

    .nav-links .nav-item.active, .nav-links .nav-item-special.active { border-bottom: 2px solid #ffffff !important; padding-right: 0 !important; width: 100%; }
    
    .hamburger { display: flex; }
    .hamburger.active span { background-color: #FFF; } 
    .mobile-only-icons { display: flex; justify-content: flex-start; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .desktop-icons { display: none; }
    
    .about-sidebar, .about-divider { display: none; }
    .about-main-panel { width: 100%; padding: 0 5%; }
    .header-title-en { font-size: 4em; }
    .sidebar-title { left: 50px; }

    /* 行動版分隔線間距微調 */
    .content-divider { padding-bottom: 3rem; margin-bottom: 3rem; }
}

@media (max-width: 768px) {
    .about-top-header { padding-top: 3rem; align-items: center; }
    .en-title-row, .header-banner-icon { display: none !important; }
    .banner-row { justify-content: center; padding-right: 0; }
    .sidebar-title { position: static; font-size: 1.8em; text-align: center; }
    .footer-container { flex-direction: column; align-items: center; gap: 2.5rem; text-align: center; }
    .footer-left { align-items: flex-start; text-align: left; min-width: unset; width: fit-content; max-width: 240px; margin: 0px auto; }
    .footer-right { align-items: center; width: 100%; }
    .vision-card { padding: 1.5rem; }
    .section-main-title { font-size: 3.6rem; }
    .sub-title { font-size: 3.6rem; }
    .intro-section p { text-align: left; }
}