/* css/about.css - 完整最終版 */

/* --- 頁面標題區 (藍底白字) --- */
.page-header {
    background: 
    linear-gradient(rgba(10,20,40,0.85), rgba(10,20,40,0.85)),
    url("../assets/images/ai-bg.jpg") center/cover no-repeat;
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.page-header h1 {
    font-size: 50px;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.page-header p {
    width: 400px;
    height: 4px;
    background: #ff5c5c;
    margin: 0 auto;
}

/* --- 1. 基礎容器設定 (改成左右兩欄排版) --- */
.about-container {
    max-width: 1300px;       /* 加寬一點，因為多了一個側邊欄 */
    width: 90%;
    margin: 60px auto;       /* 上下留白 */
    padding: 0 20px;
    
    /* 啟動 Flexbox 左右排版 */
    display: flex;
    align-items: flex-start; /* 讓側邊欄對齊頂部 */
    gap: 60px;               /* 左欄跟右欄的距離 */
}

/* --- 2. 左側懸浮選單 (Sidebar) --- */
.sidebar {
    width: 200px;            /* 固定寬度 */
    flex-shrink: 0;          /* 防止被壓縮 */
    position: sticky;        /* !!! 關鍵：懸浮效果 !!! */
    top: 100px;              /* 滑動時，距離視窗頂部 100px 就停住 */
    
    /* 簡單美化 */
    border-right: 1px solid #eee; /* 右邊加一條細線分隔 */
    padding-right: 20px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;        /* 移除預設圓點 */
    padding: 0;
}

.sidebar li {
    margin-bottom: 18px;
}

/* 選單連結樣式 */
.sidebar a {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent; /* 預留底線位置 */
}

/* 連結前面的小方塊裝飾 */
.sidebar a::before {
    content: "■";
    font-size: 0.6rem;       /* 小一點比較精緻 */
    color: #aaa;
    margin-right: 10px;
    transition: color 0.3s;
}

/* 滑鼠移過去的效果 */
.sidebar a:hover {
    color: #0000FF;          /* 變藍色 */
    padding-left: 5px;       /* 稍微往右移 */
}
.sidebar a:hover::before {
    color: #0000FF;
}

/* --- 3. 右側主要內容區 --- */
.main-content {
    flex: 1;                 /* 佔滿剩餘空間 */
    min-width: 0;            /* 防止內容把容器撐爆 */
}

/* =========================================
   圖文排版區 (大合照 & 核心價值)
   這兩區塊使用一模一樣的參數，保證對齊
   ========================================= */

/* 外框：圖左文右 */
.intro-wrapper, .values-wrapper {
    display: flex;
    align-items: center;     /* 垂直置中 */
    justify-content: space-between;
    gap: 50px;               /* 統一間距 */
    margin-bottom: 80px;
    width: 100%;
}

/* 左邊圖片區塊 (設定 flex: 1.2) */
.group-photo-section, .values-image {
    flex: 1.2;               /* 寬度佔比 55% */
    width: 100%;
}

/* 圖片本體設定 */
.photo-wrapper img, .values-image img {
    width: 100%;             /* 強制填滿欄位 */
    height: auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* 陰影 */
    border-radius: 6px;      /* 圓角 */
}

/* 右邊文字區塊 (設定 flex: 1) */
.mission-section, .values-text {
    flex: 1;                 /* 寬度佔比 45% */
    text-align: left;
}

/* =========================================
   文字樣式設定
   ========================================= */

/* 中文大標題 */
.tiai-title, .core-title {
    font-size: 2rem;
    color: #000;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}
.core-title { color: #0000FF; } /* 核心價值標題維持藍色 */

/* 英文副標題 */
.tiai-subtitle {
    font-size: 0.9rem;
    color: #555;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: sans-serif;
}

/* 一般內文 */
.mission-text, .value-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;     /* 左右對齊 */
}

/* 核心價值的小標題 */
.value-item { margin-bottom: 25px; }
.value-item h4 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 8px;
}

/* =========================================
   中間區塊：宗旨與願景 (置中文字)
   ========================================= */
.goals-section {
    text-align: center;
    margin: 80px 0;
}

.goal-item { margin-bottom: 40px; }

.goal-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.goal-item p {
    font-size: 1.3rem;
    color: #333;
    letter-spacing: 1px;
}

/* 分隔線 */
.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 60px 0;
}

/* =========================================
   RWD 手機版適應
   ========================================= */
@media (max-width: 900px) {
    /* 大容器變直排 */
    .about-container {
        flex-direction: column;
    }
    
    /* 手機上，把側邊欄移到最上面，變成橫條，或隱藏 */
    .sidebar {
        width: 100%;
        position: static;    /* 取消懸浮 */
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    /* 讓側邊選單橫向排列 (選用) */
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .sidebar li {
        margin-bottom: 0;
    }

    /* 內容區塊變直排 */
    .intro-wrapper, .values-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .tiai-title {
        font-size: 1.8rem;
    }
}