﻿.presidents-section {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.03) 0%, rgba(142, 68, 173, 0.05) 100%);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(155, 89, 182, 0.1);
    box-shadow: 0 10px 35px rgba(155, 89, 182, 0.1);
    transition: all 0.3s ease;
}
/* 主要配色風格 */
.text-purple {
    color: #9B59B6 !important;
}

.bg-purple {
    background-color: #9B59B6 !important;
}

/* 頁面標題樣式 */
.page-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(142, 68, 173, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9B59B6;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* 會長卡片樣式 - 統一卡片設計 */
.president-card {
    transition: all 0.3s ease;
    border: 2px solid #E8E8E8;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 540px;
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    align-items: stretch;
    justify-content: flex-start;
}

.president-card:hover {
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.15);
    border-color: #9B59B6 !important;
}

    /* 讓圖片框與內容都撐滿卡片寬度 */
    .president-card > .president-image,
    .president-card > .card-body {
        width: 100%;
        box-sizing: border-box;
    }

/* 照片顯示區域 */
/* 照片顯示區域（統一 1:1 框，不裁切）*/
.president-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1 正方形比例 */
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
    border: 4px solid #f8f9fa;
    box-shadow: 0 8px 24px rgba(155, 89, 182, 0.15);
}

    /* 圖片樣式 - 使用原始比例置中顯示 */
    .president-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* 不裁切、維持原比例 */
        object-position: center;
        transition: transform 0.3s ease;
    }

.president-card:hover .president-image img {
    transform: scale(1.04);
}

/* 預設頭像佔位符 */
.placeholder-block {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8E44AD 0%, #9B59B6 100%);
    display: none; /* 預設隱藏 */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* 榮譽徽章 */
.president-crown {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.president-card:hover .president-crown {
    transform: rotate(15deg) scale(1.1);
}

/* 屆別標籤 */
.president-title-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(142, 68, 173, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 2px solid white;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

/* 卡片內容區 */
.card-body {
    padding: 1.2rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #FFFFFF 0%, #FAFAFA 100%);
}

.president-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #9B59B6;
    margin: 0 auto 0.3rem auto;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
    width: 100%;
}

.president-company {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    margin: 0 auto 0.5rem auto;
    width: 100%;
    white-space: normal;
    word-break: break-word;
}

.president-message {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05) 0%, rgba(155, 89, 182, 0.02) 100%);
    border-left: 4px solid #9B59B6;
    padding: 0.6rem 0.75rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.1);
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

    .president-message:hover {
        background: linear-gradient(135deg, rgba(155, 89, 182, 0.08) 0%, rgba(155, 89, 182, 0.04) 100%);
        box-shadow: 0 4px 12px rgba(155, 89, 182, 0.15);
    }

    .president-message p {
        color: #2c3e50;
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
        text-align: left;
        font-weight: 400;
        transition: all 0.3s ease;
    }

    .president-message.collapsed p {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .president-message.expanded p {
        display: block;
        overflow: visible;
    }

.expand-toggle {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(155, 89, 182, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
    z-index: 10;
}

    .expand-toggle:hover {
        background: rgba(142, 68, 173, 1);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
    }

    .expand-toggle.expanded {
        background: rgba(111, 66, 193, 0.9);
    }

        .expand-toggle.expanded:hover {
            background: rgba(111, 66, 193, 1);
        }

.message-fade {
    position: relative;
}

    .message-fade.collapsed::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
        pointer-events: none;
    }

/* 傳承精神區塊 */
.heritage-section {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.03) 0%, rgba(142, 68, 173, 0.05) 100%);
    border-radius: 2rem;
    padding: 3rem 2rem;
    border: 1px solid rgba(155, 89, 182, 0.1);
    box-shadow: 0 10px 35px rgba(155, 89, 182, 0.1);
    margin-top: 3rem;
}

/* 響應式設計優化 - 重點修改 */
@media (max-width: 992px) {
    .president-card {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem !important;
    }

    .president-name {
        font-size: 1.2rem !important;
    }

    .president-card {
        min-height: 460px;
    }

    /* 手機版圖片尺寸調整 */
    .president-image {
        height: 280px !important;
    }

    .president-message {
        padding: 0.8rem !important;
    }

    .heritage-section {
        padding: 2rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .president-name {
        font-size: 1.1rem !important;
    }

    .president-message p {
        font-size: 0.85rem !important;
    }

    .president-card {
        min-height: 420px;
    }

    /* 小螢幕圖片尺寸 */
    .president-image {
        height: 250px !important;
    }
}
.expand-full {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(155, 89, 182, 0.3);
}

.expand-full:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(142, 68, 173, 0.35);
}

.expand-full[aria-expanded="true"] {
    background: linear-gradient(135deg, #6F42C1, #8E44AD);
}

.expand-full i {
    pointer-events: none;
}
.action-bar {
    margin-top: 0.6rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn {
    width: 100%;
    height: 40px;
    border: 2.5px solid #B896D4;
    border-radius: 12px;
    background: linear-gradient(135deg, #F9F5FF, #F0E8FF);
    color: #6F42C1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.25);
}

.action-btn:hover {
    background: linear-gradient(135deg, #F0E8FF, #E8DAFF);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.35);
    border-color: #8E44AD;
    transform: translateY(-2px);
}

.action-btn i {
    transition: transform 0.25s ease;
}

.action-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, #8E44AD, #6F42C1);
    border-color: #6F42C1;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(142, 68, 173, 0.35);
}

.action-btn[aria-expanded="true"]:hover {
    background: linear-gradient(135deg, #7A3BA1, #6F42C1);
    border-color: #5F2E9A;
    box-shadow: 0 8px 22px rgba(142, 68, 173, 0.45);
}

.action-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}
