/* ========================================================
   關於我們 - 核心排版與動畫
   ======================================================== */
.about-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 40px;
    color: #2b2b2b;
    /* 配合 SPA 轉場加入優雅的初始淡入動畫 */
    animation: fadeInStage 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 工作室主介紹區 */
.studio-intro-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.studio-intro-box h1 {
    font-size: 32px;
    margin-bottom: 24px;
    letter-spacing: 2px;
    color: #2b2b2b;
    position: relative;
    display: inline-block;
}

.studio-intro-box h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: #a29bfe;
    margin: 8px auto 0;
    border-radius: 2px;
}

.studio-description {
    font-size: 17px;
    line-height: 1.8;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* ========================================================
   精緻分隔線 (與 Showreel 風格對齊)
   ======================================================== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 60px auto;
    max-width: 70%;
    color: #e0e0e0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to var(--direction, right), rgba(162, 155, 254, 0.5), rgba(224, 224, 224, 0.1));
}
.section-divider::before { --direction: left; }
.section-divider::after { --direction: right; }

.divider-dot {
    width: 6px; height: 6px;
    background-color: #a29bfe;
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(162, 155, 254, 0.8);
}
.divider-dot.side {
    width: 4px; height: 4px;
    background-color: #2b2b2b;
    opacity: 0.3;
    box-shadow: none;
}

/* ========================================================
   成員長條橢矩形（膠囊）卡片結構
   ======================================================== */
.member-cards-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.member-capsule-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px; /* 打造完美的橢矩形圓潤感 */
    padding: 30px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.member-capsule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(162, 155, 254, 0.15);
}

/* 卡片左側：頭像區 */
.card-left {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: #fafafa;
}

/* 卡片中間：直線區隔線 */
.card-divider {
    flex: 0 0 1px;
    height: 70px;
    background-color: #e8e8ed;
    margin: 0 35px;
}

/* 卡片右側：介紹文案區 */
.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-name {
    font-size: 20px;
    font-weight: bold;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 狀態標籤樣式：完美整合動態 color 分類 */
.member-role-green {
    font-size: 13px;
    background: rgba(155, 254, 168, 0.15);
    color: #70f56b;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.member-role-red {
    font-size: 13px;
    background: rgba(254, 155, 155, 0.15);
    color: #f56b6b;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.member-role-yellow {
    font-size: 13px;
    background: rgba(247, 254, 155, 0.15);
    color: #d1c41b;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.member-bio {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    /* 🚀 關鍵修正：讓瀏覽器能夠讀懂並流暢渲染 \n 的自動換行 */
    white-space: pre-line;
}

/* 電腦版右側幾何圖形樣式容器 */
.card-geo {
    flex: 0 0 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    opacity: 0.25;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

/* 懸浮卡片時幾何圖形會優雅放大、旋轉並點亮 */
.member-capsule-card:hover .card-geo {
    transform: scale(1.15) rotate(15deg);
    opacity: 0.85;
}

@keyframes fadeInStage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   📱 完美照顧手機格式：響應式 RWD 斷點調整
   ======================================================== */
@media (max-width: 767px) {
    .about-container {
        padding: 0 20px;
        margin: 25px auto;
    }

    .studio-intro-box {
        padding: 35px 20px;
        border-radius: 16px;
    }

    .studio-intro-box h1 {
        font-size: 24px;
    }

    .studio-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .section-divider {
        margin: 40px auto;
        max-width: 90%;
    }

    /* 橢矩形卡片由橫向轉為縱向排列 */
    .member-capsule-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        border-radius: 24px;
    }

    .card-left {
        flex: none;
        margin-bottom: 15px;
    }

    .member-avatar {
        width: 85px;
        height: 85px;
    }

    /* 直線區隔線化身為水平線 */
    .card-divider {
        flex: none;
        width: 60%;
        height: 1px;
        margin: 15px auto;
    }

    .card-right {
        align-items: center;
    }

    .member-name {
        font-size: 18px;
        flex-direction: column;
        gap: 5px;
    }

    .member-bio {
        font-size: 14px;
        text-align: center;
    }

    /* 幾何圖形手機端響應 */
    .card-geo {
        flex: none;
        margin-left: 0;
        margin-top: 20px;
        width: 60px;
        height: 60px;
        opacity: 0.4;
    }
}
