/*原本的跟目錄樣式*/
html {
    font-size: 16px;
    /* scroll-behavior: smooth */
}

/*全局顏色*/
:root {
    --purple: #5951DA;
    --orange: #F8845F;
    --white: #fff;
    --darken: #273244;
    --black: #323232;
    --gray: #f3f3f3
        /* --purple: #5951DA; */
        --orange: #F8845F;
    --white: #fff;
    --darken: #273244;
    --black: #323232;
    --gray: #f3f3f3;
    --dark-purple: #382B73;
    /* 新增的變數 */
    --light-purple: #E8EAFF;
    --footer-purple: #A98CF6;
    --dark-green: #3D696C;
    --light-black: #3A3632;
    --light-yellow: #FAF7EC;
}

body {
    color: #323232;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
    background-color: #dfe3e4;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    line-height: 1.5
}

h1 {
    /* font-size: min(36px, max(30px, 3.5vw)); */
    /* font-size: clamp(32px, 3.5vw, 33px); */
    font-size: clamp(32px, 3.5vw, 40px);
}

h2,
.h2 {
    font-size: min(24px, max(26px, 3vw));
}

h3,
.h3 {
    font-size: min(20px, max(22px, 2.75vw));
}

h4,
.h4 {
    font-size: min(18px, max(16px, 2vw));
}

ol,
ul {
    padding-left: 1.5rem;
}

#all {
    max-width: 800px;
    margin: 0 auto;
}

.hr::after {
    content: '';
    width: 115px;
    height: 4px;
    background-color: #8188d0;
    display: block;
    margin: .75rem auto 3rem;
}




.light-black {
    color: var(--light-black);
}

.dark-green {
    color: var(--dark-green);
}

.dark-purple {
    color: var(--dark-purple);
}

.purple {
    color: var(--purple);
}

.light-purple {
    color: var(--light-purple);
}

.footer-purple {
    color: var(--footer-purple);
}



/*電腦刊頭*/
header {

    position: relative;
    /* 讓內部的絕對定位基於 header */
    overflow: visible;
    /* 確保內部內容不被裁切 */

    /* background-image: url(../image/bg.jpg); */
    background-color: #EBE4CE;
    background-size: cover;
    /* 確保圖片以正確比例覆蓋區域 */
    background-position: center;
    /* 圖片保持居中顯示 */
    background-repeat: no-repeat;
    /* 防止圖片重複 */
    height: 355px;
    /* 或指定一個合理的高度 */
    position: relative;
}

.subtitle {
    /* color: #382B73; */
    font-family: "Noto Sans TC";
    font-size: 22px;
    font-style: normal;
    font-weight: 500;

    /* 196.364% */
}

/* .btn-hightech {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6); 
    text-decoration-thickness: 1px;
    text-underline-offset: 2.5px;
} */

.card.h-100.mx-auto {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.66);
    padding-top: 15px;
    /* height: 169px !important; 移除固定高度 */

}

/* ✅ 補上 UL 樣式，讓卡片內列表不擠壓 */
ul.disc {
    font-size: 14px;
    line-height: 1.4;
    padding-left: 20px;
    margin-bottom: 0;
}

ul.disc li {
    margin-bottom: 8px;
}



.card {
    border: none !important;
}


@media (max-width:768px) {
    .btn-hightech {

        margin: 10px 0;
    }

    .btn-hightech,
    .btn-create,
    .btn-consult {
        padding-top: 12px !important;
        padding-bottom: 12px !important;

    }

    .card.h-100.mx-auto {
        padding-right: 8px;
    }

    .col-12.col-md-6.card-wrapper.mb-4 {
        margin-bottom: 1.5rem !important;
    }


}

/*智慧招募四大重點*/
.special {
    padding-top: 80px !important;
}

.card {

    flex-shrink: 0;
    padding-top: 0.8rem;
    border-radius: 10px;
}

.card-body {
    padding: 0.8rem !important;
}

.card-title {
    color: #382B73;
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 111.111% */
}

.card-text {
    color: #323232;
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 350;
    line-height: 20px;
    text-align: left;
    /* 125% */
}

/* .btn-create{
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6); 
    text-decoration-thickness: 1px;
    text-underline-offset: 2.5px;
} */


/* 浮動區塊 */
.floating-box {
    position: absolute;
    bottom: -134px;

    left: 50%;
    /* 將元素的左邊界設為容器的 50% */
    transform: translateX(-50%);

    width: 90%;

    background-color: #CDC5B3;
    z-index: 10;
    /* 確保在其他元素上方 */
    padding: 20px 15px;
    /* 適當的內邊距 */
    /* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); */
    /* 加入陰影效果 */
    border-radius: 10px;
    /* 圓角設計 */
}

.img-ontop {
    position: relative;
    z-index: 20;
    /* 必須比 .floating-box 的 z-index:10 大 */
}

/* 給每個區塊添加左邊的垂直線 */
.floating-box .row div {
    position: relative;
    padding-left: 20px;
    /* 給內容留出空間 */
}

/* 添加垂直線 */
.floating-box .row div::before {
    content: "";
    position: absolute;
    top: 50%;
    /* 垂直居中 */
    left: 0;
    /* 緊靠容器左邊 */
    width: 2px;
    height: 59px;
    background: #A98DF6;
    /* 紫色線條 */
    transform: translateY(-50%);
    /* 偏移自身高度的一半，達到居中 */
}

.floating-box>.row {
    margin-left: 3.5%;
}


.row.float {
    color: #323232;
}

.floating-box .row .highlight {
    font-weight: 500;
    /* 字體重量調為細字 */
    font-size: 17px;
    /* 調整字體大小 */
    color: #000;
    /* 符合設計顏色 */
    letter-spacing: 1px;
}
.photo p{
font-weight: 600;
}

.section2 {
    padding-top: 90px;
}

@media (max-width:768px) {

    /*刊頭*/
    header {
        background-image: url(../image/bg-m.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 774px;
        position: relative;
    }

    .subtitle {
        font-size: 21px;
    }

    /* .special {
        padding-top: 65px !important;
    } */


    /*四大招募區塊*/
    /* .card {
        aspect-ratio: 156 / 217;
    } */

    /* .special {
        padding-top: 100px !important;
    } */

    /*浮動區塊*/
    .floating-box>.row {
        margin-left: 12%;
    }

    .floating-box>.row>.smfloat {
        margin-bottom: 2%;
    }

    .floating-box {

        /* 調整寬度 */
        margin-left: auto;
        margin-right: auto;
    }

    .floating-box h5 {
        font-size: 18px;
        /* 字體在手機端稍微縮小 */
    }

    /*手機按鈕置中、手機圖片置中*/
    .btn-container {
        display: flex;
        justify-content: center;
    }

    .header-img {
        text-align: center;
    }

    /* 手機畫面下的全局樣式 */

    .floating-box,
    .header,
    .row.float {
        width: 87%;
        /* 統一設置寬度 */
        margin-left: auto;
        margin-right: auto;
        /* 水平居中 */
    }
}

/*媒體查詢*/
@media (max-width: 768px) {
  /* 一般平板直立、手機橫向 */
   .floating-box {
        bottom: 120px;
    }

    .special {
        padding-top: 20px !important;
    }

}


@media (max-width: 540px) {
  /* 中小平板直立、小型手機橫向 */

  .floating-box {
        bottom: -38px;
    }
}

@media (max-width: 430px) {
  /* iPhone 14 Pro Max (Safari 實際 viewport) */
  .floating-box {
        bottom: -38px;
    }
    .special {
        padding-top: 5px !important;
    }

    
}


@media (max-width: 414px) {
  /* Samsung S20+、Pixel 4a、iPhone 14 Pro Max 等 */
  .floating-box {
        bottom: -85px;
    }

    .special {
        padding-top: 20px !important;
    }
}


@media (max-width: 412px) {
  /* Samsung S20+、Pixel 4a、iPhone 14 Pro Max 等 */
  .floating-box {
        bottom: -85px;
    }
}

@media (max-width: 390px) {
  /* iPhone 12 / 13 / 14 */
  .floating-box {
        bottom: -85px;
    }
}

@media (max-width: 375px) {
  /* iPhone 6/7/8, iPhone X */
  .floating-box {
        bottom: -110px;
    }
.special {
        padding-top: 50px !important;
    }
    
}

@media (max-width:360px) {
  /* 最小裝置（如小型安卓手機） */
  .floating-box {
        bottom: -130px;
    }

    .special {
        padding-top: 60px !important;
    }
}
