/* ============================================================
   about_intro.css - 公司簡介獨立樣式
   上下佈局 / 圖 80% 寬 / 文字窄欄 / 整頁可下拉
   移除圖片底色與浮出動作
   ============================================================ */

/* ============================================================
   頁面容器 - 可滾動
   ============================================================ */

.about-intro-page .main-content {
    height: auto;
    min-height: 100vh;
    padding: 0;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
}

.about-intro-page .section-about-intro {
    padding: 0 0 2rem 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
	overflow: visible;   /* 保持 visible */
}

/* ============================================================
   頁面標題
   ============================================================ */
.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px;
    background: linear-gradient(135deg, #1a3c5e, #2a5f8a);
    color: white;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f263b;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1a3c5e, #6f8aa3);
    margin: 0.3rem auto 0;
    border-radius: 4px;
}

.section-header {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================================
   上下佈局
   ============================================================ */
.intro-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: auto;
    min-height: auto;
    width: 100%;
    margin: 0;
    padding: 0 0 2rem 0;
    flex: none;
    overflow: visible;
}

/* ============================================================
   上方：單張大圖（寬度 80%，置中，無底色、無浮出）
   ============================================================ */
.intro-images {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 8px 0 0 0;
    width: 80%;
    max-width: 80%;
    height: auto;
    box-sizing: border-box;
}

/* 大圖 - 移除底色與 hover 浮出 */
.img-main {
    flex: none;
    border-radius: 16px;
    overflow: hidden;
    /*background: transparent;*/   /* 移除底色 */
    box-shadow: none;          /* 移除陰影 */
    position: relative;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 16/9;
}

.img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* 改為 cover，避免留白露出底色 */
    display: block;
    transition: none;          /* 移除過渡動畫 */
    background: transparent;   /* 移除圖片本身底色 */
}

/* 移除 hover 浮出動作 */
.img-main:hover img {
    transform: none;
}

.img-main .img-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    font-size: 2rem;
}

/* ============================================================
   下方：文字區（變窄，約 55% 寬度，置中）
   ============================================================ */
.intro-text {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    width: 55%;
    max-width: 55%;
    height: auto;
    background: transparent;
    overflow: visible;
    border-radius: 12px;
}

.text-block {
    background: white;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid #e6edf5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transition: none;          /* 移除過渡動畫 */
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移除文字區 hover 浮出與陰影變化 */
.text-block:hover {
    border-color: #e6edf5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    transform: none;
}

.text-block h3 {
    font-size: 1rem;
    color: #0f263b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-block h3 .icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f0f4fa;
    border-radius: 50%;
    font-size: 0.85rem;
    color: #1a3c5e;
    flex-shrink: 0;
}

.text-block p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 6px;
    word-wrap: break-word;
    white-space: normal;
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* 標籤 */
.text-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.text-tags span {
    padding: 3px 12px;
    background: #f0f4fa;
    border-radius: 30px;
    font-size: 0.6rem;
    color: #1a3c5e;
    font-weight: 500;
    transition: none;
    cursor: default;
}

/* 移除標籤 hover 浮出 */
.text-tags span:hover {
    background: #f0f4fa;
    color: #1a3c5e;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   電腦版 (大螢幕)
   ============================================================ */
@media (min-width: 1025px) {

    .about-intro-page .main-content {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .intro-layout {
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    .intro-images {
        flex: none;
        flex-direction: column;
        width: 80%;
        max-width: 80%;
    }

    .intro-text {
        flex: none;
        width: 55%;
        max-width: 55%;
    }
}

/* ============================================================
   平板
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .about-intro-page {
        height: auto;
        overflow: visible;
    }

    .about-intro-page .main-content {
        height: auto;
        min-height: 100vh;
        padding: 0;
        overflow: visible;
    }

    .about-intro-page .section-about-intro {
        height: auto;
    }

    .intro-layout {
        flex-direction: column;
        gap: 20px;
        height: auto;
        min-height: auto;
        padding: 0 2rem 2rem 2rem;
        overflow: visible;
        align-items: center;
    }

    .intro-images {
        flex: none;
        width: 90%;
        max-width: 90%;
        min-height: 320px;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .img-main {
        flex: none;
        min-height: 320px;
        border-radius: 16px;
        box-shadow: none;
        aspect-ratio: 16/9;
    }

    .img-main img {
        object-fit: cover;
    }

    .intro-text {
        flex: none;
        width: 90%;
        max-width: 90%;
        height: auto;
        padding: 0;
        background: transparent;
        min-height: auto;
        overflow: visible;
        border-radius: 0;
    }

    .text-block {
        padding: 24px 28px;
        border-radius: 16px;
        border: 1px solid #e6edf5;
        box-shadow: 0 2px 12px rgba(0,0,0,0.03);
        background: white;
        height: auto;
    }

    .text-block:hover {
        border-color: #e6edf5;
        box-shadow: 0 2px 12px rgba(0,0,0,0.03);
        transform: none;
    }

    .text-block p {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .section-header {
        text-align: center;
    }
}

/* ============================================================
   手機版
   ============================================================ */
@media (max-width: 768px) {
    .about-intro-page {
        height: auto;
        overflow: visible;
    }

    .about-intro-page .main-content {
        height: auto;
        min-height: 100vh;
        padding: 0;
        overflow: visible;
        display: block;
    }

    .about-intro-page .section-about-intro {
        height: auto;
        display: block;
        padding-bottom: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #0f263b;
        letter-spacing: 1px;
        margin: 0;
        text-align: center;
    }

    .section-divider {
        width: 30px;
        margin: 0.15rem auto 0;
    }

    .page-badge {
        font-size: 0.5rem;
        padding: 1px 10px;
        margin-bottom: 2px;
    }

    .section-header {
        padding: 0.8rem 1rem 0.5rem 1rem;
        text-align: center;
    }

    .intro-layout {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
        height: auto;
        min-height: auto;
        width: 100%;
        margin: 0;
        padding: 0 0.8rem;
        flex: none;
        overflow: visible;
    }

    .intro-images {
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-height: 220px;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .img-main {
        flex: none;
        border-radius: 14px;
        overflow: hidden;
        background: transparent;
        box-shadow: none;
        position: relative;
        width: 100%;
        min-height: 180px;
        height: auto;
        aspect-ratio: 16/9;
    }

    .img-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: transparent;
    }

    .intro-text {
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        background: transparent;
        overflow: visible;
        min-height: auto;
        border-radius: 0;
    }

    .text-block {
        background: white;
        padding: 1rem 1.1rem;
        border-radius: 14px;
        border: 1px solid #e6edf5;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
        transition: none;
        opacity: 0;
        transform: translateY(15px);
        width: 100%;
        height: auto;
        display: block;
        overflow: visible;
    }

    .text-block.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .text-block:hover {
        border-color: #e6edf5;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
        transform: none;
    }

    .text-block h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .text-block h3 .icon-wrap {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .text-block p {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 0.6rem;
        overflow: visible;
        word-wrap: break-word;
        white-space: normal;
    }

    .text-block p:last-child {
        margin-bottom: 0;
    }

    .text-tags {
        gap: 4px;
        margin-top: 6px;
    }

    .text-tags span {
        padding: 2px 10px;
        font-size: 0.55rem;
    }

    .img-main:hover img {
        transform: none;
    }
}

/* ============================================================
   小手機
   ============================================================ */
@media (max-width: 480px) {
    .about-intro-page .main-content {
        min-height: 100vh;
    }

    .section-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #0f263b;
        letter-spacing: 1px;
        margin: 0;
        text-align: center;
    }

    .page-badge {
        font-size: 0.45rem;
        padding: 1px 8px;
    }

    .section-divider {
        width: 25px;
        height: 2px;
    }

    .section-header {
        padding: 0.5rem 0.6rem 0.3rem 0.6rem;
        text-align: center;
    }

    .intro-layout {
        padding: 0 0.6rem;
        gap: 0.6rem;
    }

    .intro-images {
        min-height: 180px;
        gap: 4px;
    }

    .img-main {
        border-radius: 12px;
        min-height: 130px;
        aspect-ratio: 16/9;
    }

    .intro-text {
        padding: 0;
    }

    .text-block {
        padding: 0.8rem 0.9rem;
        border-radius: 12px;
    }

    .text-block h3 {
        font-size: 0.8rem;
    }

    .text-block h3 .icon-wrap {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .text-block p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .text-tags span {
        padding: 1px 8px;
        font-size: 0.5rem;
    }
}

/* ============================================================
   極小手機
   ============================================================ */
@media (max-width: 380px) {
    .section-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #0f263b;
        letter-spacing: 1px;
        margin: 0;
        text-align: center;
    }

    .section-header {
        text-align: center;
    }

    .intro-images {
        min-height: 150px;
    }

    .img-main {
        min-height: 110px;
    }

    .text-block p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .text-block {
        padding: 0.6rem 0.7rem;
    }

    .text-block h3 {
        font-size: 0.7rem;
    }
}