/* ==========================================================================
   腸健檢-癌險現 一頁式網站客製化樣式
   ========================================================================== */

/* ==========================================================================
   第 1 段：主視覺 gms-hero (全幅微生物背景 + 腸健檢 logo lockup)
   ========================================================================== */

.gms-hero {
    position: relative;
    /* 滿版主視覺，與其他產品頁做出區隔 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    /* 上方留白避開固定 header，下方加大留白供服務介紹卡片上疊 */
    padding: 90px 20px clamp(180px, 22vh, 280px);
}
.gms-hero::after {
    content: "";
    position: absolute;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 1) 100%);
    z-index: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 15vh;
}
.gms-hero .container {
    max-width: 880px;
    margin: 0 auto;
}

.gms-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
}

.gms-hero-logo img {
    height: clamp(58px, 6vw, 80px);
    width: auto;
}

.gms-hero-name {
    font-size: clamp(2rem, 4.2vw, 2.85rem);
    font-weight: 700;
    color: #172d5d; /* 品牌深藍 */
    letter-spacing: 6px;
    line-height: 1;
}

.gms-hero-sub {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 700;
    /* color: #172d5d; */
    letter-spacing: 2px;
    margin-bottom: 0;
}

.gms-hero-desc {
    max-width: 880px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.95;
    color: #4a4a4a;
}

/* ==========================================================================
   第 2 段：服務介紹卡片 (沿用 .core swiper，疊在主視覺下緣的白色圓角卡片)
   ========================================================================== */
.gms-intro {
    position: relative;
    z-index: 5;
    /* 往上疊到主視覺底部，露出較多微生物背景供玻璃模糊透出 */
    margin-top: clamp(-300px, -24vh, -180px);
    padding-bottom: 80px;
}
@media (min-width: 980px) {
    .gms-intro .swiper-button-prev {
        left: -20px;
    }
    .gms-intro .swiper-button-next {
        right: -20px;
    }
    .core-item .text {
        padding-top: 7.7vw;
    }
    .core-item {
        align-items: flex-start;
    }
}
.core .fz-D {
    font-size: 1.25em;
}
@media (min-width: 0) and (max-width: 979px) {
    .core .fz-D {
        font-size: 1.25em;
    }
}
@media (min-width: 980px) and (max-width: 1440px) {
    .core-item .img {
        margin-bottom: clamp(10px, calc(354.35px - 23.91vw), 120px);
    }
}

.gms-intro {
    position: relative;
    z-index: 5;
    /* 往上疊到主視覺底部，露出較多微生物背景供玻璃模糊透出 */
    margin-top: clamp(-300px, -24vh, -150px);
    padding-bottom: 80px;
}
.gms-intro .swiper {
    margin-top: -5vw;
}
/* 取消 .core 預設整片白底，改為獨立卡片 */
.gms-intro.core:before {
    display: none;
}

.big.--orange {
    color: #ef7e00;
}
.gms-intro .container {
    /* 透明漸層 + 玻璃模糊，讓主視覺微生物從卡片上緣透出 (參考 flow-1) */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(255, 255, 255, 0.94) 100%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
    padding: clamp(30px, 4vw, 60px) clamp(20px, 4vw, 60px) 40px;
    /* overflow: hidden; */
    padding-top: 0;
}

/* 內距已由卡片提供，縮小 slide 兩側留白 */
.core.gms-intro .swiper-slide {
    padding: 0 3vw;
}
@media (max-width: 740px) {
    .gms-intro .swiper {
        margin-top: -120px;
    }
    .gms-intro .container {
        border-radius: 0;
        box-shadow: none;
        padding: clamp(30px, 4vw, 60px) 0 0;
        /* overflow: hidden; */
        padding-top: 0;
        width: 100%;
        margin: 50px 0 0;
        padding-left: 24px;
        padding-right: 24px;

        border-left: none;
        border-right: none;
    }
    .core.gms-intro .swiper-slide {
        padding: 0;
    }
}
/* 分頁 01 — 03 置中於卡片下方 */
.gms-intro .swiper-pagination.page_core_value {
    justify-content: center;
    padding-left: 0;
    margin-top: 10px;
}
/* 手機版：左右箭頭移到底部，與分頁併成同一排控制列 */
@media (max-width: 979px) {
    .gms-intro .swiper-button-prev,
    .gms-intro .swiper-button-next {
        top: auto;
        bottom: -5px;
        margin-top: 0;
    }
    .gms-intro .swiper-button-prev {
        left: 0;
    }
    .gms-intro .swiper-button-next {
        right: 0;
    }
}

/* ==========================================================================
   第 3 段：產品特色 icon (沿用 .pic-list 結構，於標題上方加入線性 icon)
   ========================================================================== */
.features-section .feature-icon {
    margin-bottom: 24px;
}

.features-section .feature-icon img {
    height: 64px;
    width: auto;
}

/* 第 2 段與第 3 段間隔微調 */
.features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.features-section .section-title,
.target-section .section-title,
.download-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.features-section .section-title h3,
.target-section .section-title h3,
.download-section .section-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    /* color: #162b5b; */
    position: relative;
    padding-bottom: 15px;
}

.features-section .section-title h3 + p,
.target-section .section-title h3 + p,
.download-section .section-title h3 + p {
    padding-top: 20px;
}
.features-section .section-title h3::after,
.target-section .section-title h3::after,
.download-section .section-title h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ef7e00;
}

/* 第 4 段：合適族群 */
.target-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.target-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-left: 5px solid #162b5b; /* 品牌深藍邊框 */
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(22, 43, 91, 0.08); /* 品牌深藍色調投影 */
    border-left-color: #ef7e00; /* 懸停時左框變橘色 */
}

.target-icon {
    margin-right: 20px;
    color: #162b5b;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(22, 43, 91, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.target-card:hover .target-icon {
    color: #ffffff;
    background-color: #ef7e00; /* hover 時 Icon 背景變橘、圖示變白 */
}

.target-icon svg {
    width: 24px;
    height: 24px;
}

.target-info {
    flex-grow: 1;
}

.target-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #162b5b;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.target-card:hover .target-info h4 {
    color: #ef7e00;
}

.target-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #525252;
    margin: 0;
}

/* 第 5 段：相關下載 Swiper 微調 */
.download-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* 第 6 段：重要警語 */
.warning-container {
    padding: 20px 20px 80px 20px;
    background-color: #ffffff;
}

.warning-box {
    background-color: rgba(239, 126, 0, 0.04); /* 品牌點綴橘 4% 透明度 */
    border: 1px solid rgba(239, 126, 0, 0.15);
    border-left: 5px solid #ef7e00; /* 點綴橘粗邊 */
    border-radius: 6px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(239, 126, 0, 0.02);
}

.warning-box svg {
    color: #ef7e00;
    margin-right: 20px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.warning-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #474747;
    margin: 0;
}

/* RWD 響應式調整 */
@media (max-width: 991px) {
    .target-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 739px) {
    .gms-hero-logo {
        gap: 12px;
        margin-bottom: 20px;
    }

    .gms-hero-name {
        letter-spacing: 4px;
    }

    .warning-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .warning-box svg {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   第 3.5 段：篩檢斷層 (gms-space 過場區) - 微生物背景 + 玻璃擬態卡片
   ========================================================================== */
.gap-section {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 110px) 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
/* 柔化背景，提升玻璃卡片與深色文字的可讀性 */
.gap-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.45) 100%);
    z-index: 0;
}

.gap-section .container {
    position: relative;
    z-index: 1;
}

/* 標題：沿用 section-title，深藍字 */
.gap-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}
.gap-section .section-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    /* color: #172d5d; */
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 1.5px;
}
.gap-section .section-title p {
    margin-top: 15px;
    font-size: 1rem;
    color: #5a6377;
    letter-spacing: 0.5px;
}
.gap-section .section-title h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ef7e00;
}

/* 兩欄比較整合於單一玻璃面板，中央以分隔線切分 */
.gap-compare {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(23, 45, 93, 0.1);
    padding: 14px;
}

.gap-card {
    background: transparent;
    border-radius: 14px;
    padding: 18px 14px 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* .gap-card:hover {
    background: rgba(255, 255, 255, 0.4);
} */

.gap-card-head {
    /* text-align: center; */
    padding: 12px 20px 20px;
}
.gap-card-head div {
    display: flex;
    align-items: center;
    gap: 1em;
}
.gap-card-head h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #172d5d;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.gap-card-sub {
    display: inline-block;
    font-size: 0.95rem;
    color: #ef7e00;
    font-weight: 500;
}

.gap-card-body {
    padding: 4px 26px 0;
}
.gap-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #ef7e00;
    border-radius: 4px;
    padding: 3px 12px;

    letter-spacing: 0.5px;
}
.gap-card-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* 大腸鏡檢查：單欄逐行顯示 */
.gap-card-body ul.gap-list-2col {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 14px;
}
.gap-card-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3f4759;
}
.gap-card-body ul.gap-list-2col li {
    margin-bottom: 0;
}
.gap-card-body li:last-child {
    margin-bottom: 0;
}
.gap-card-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef7e00;
}

/* 中央分隔線 */
.gap-divider {
    width: 1px;
    justify-self: center;
    align-self: stretch;
    background: linear-gradient(to bottom, rgba(23, 45, 93, 0) 0%, rgba(23, 45, 93, 0.18) 50%, rgba(23, 45, 93, 0) 100%);
}
.gap-divider-line {
    display: none;
}

/* RWD 響應式調整 */
@media (max-width: 767px) {
    .gap-section {
        padding: 65px 0;
    }
    .gap-compare {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 480px;
        padding: 14px;
    }
    .gap-divider {
        width: 100%;
        height: 1px;
        margin: 16px 0;
        background: linear-gradient(to right, rgba(23, 45, 93, 0) 0%, rgba(23, 45, 93, 0.18) 50%, rgba(23, 45, 93, 0) 100%);
    }
}

.core-target {
    background-color: #f8f8f8;
    padding-top: clamp(60px, 10vh, 200px);
    padding-bottom: clamp(60px, 10vh, 200px);
}
.core-target .right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 980px) {
    .core-target .left {
        width: 33.33%;
    }
    .core-target .right {
        width: 66.66%;
    }
    .core-target .right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
}

/* 影片介紹區塊 */
.video-section {
    background-color: #000;
    padding-top: clamp(60px, 10vh, 200px);
    padding-bottom: clamp(60px, 10vh, 200px);
}
.video-section .video-wrapper {
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}
.video-section .video-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.download-swiper .swiper-wrapper {
    padding-bottom: 30px;
}
.download-swiper .swiper-pagination {
    bottom: 15px;
}
@media (min-width: 980px) {
    .download-swiper .swiper-wrapper {
        padding-bottom: 50px;
    }
    .download-swiper .swiper-pagination {
        bottom: 15px;
    }
}

/* ==========================================================================
   腸健檢頁專用：字體整體放大一級 (body.new-content)
   ========================================================================== */
body.new-content .gms-hero-name {
    font-size: clamp(2.25rem, 4.6vw, 3.15rem);
}
body.new-content .gms-hero-sub {
    display: inline-block;
    font-size: clamp(1.375rem, 2.6vw, 1.75rem);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 12px 28px;
    margin-bottom: 10px;
}
body.new-content .gms-hero-desc {
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 16px 28px;
}
body.new-content .core .fz-D {
    font-size: 1.375em;
}
body.new-content .core-item .text p {
    font-size: 1.125rem;
}
body.new-content .features-section .section-title h3,
body.new-content .download-section .section-title h3,
body.new-content .gap-section .section-title h3 {
    font-size: 2rem;
}
body.new-content .gap-section .section-title p {
    font-size: 1.125rem;
}
body.new-content .pic-list .tit .tit-one {
    font-size: 1.375rem;
}
body.new-content .pic-list .tit .tit-two {
    font-size: 1.125rem;
}
body.new-content .pic-list .pic-list-item p {
    font-size: 1.125rem;
}
body.new-content .gap-card-head h4 {
    font-size: 1.5rem;
}
body.new-content .gap-card-sub,
body.new-content .gap-card-body li {
    font-size: 1.125rem;
}
body.new-content .gap-tag {
    font-size: 0.95rem;
}
body.new-content .title .big {
    font-size: 2.25em;
}
body.new-content .fz-C {
    font-size: 1.25em;
}
body.new-content .fz-B {
    font-size: 1.25em;
}
body.new-content .form-section .right p {
    font-size: 1.125rem;
}
body.new-content .download-swiper .text {
    font-size: 1.125rem;
}
body.new-content .download-swiper .btn {
    font-size: 1rem;
}
body.new-content .warning-box p {
    font-size: 1.125rem;
}
@media (min-width: 980px) {
    body.new-content .pic-list .tit .tit-two {
        font-size: 1.25rem;
    }
    body.new-content .title .big {
        font-size: 2.25em;
    }
}
@media (min-width: 1380px) {
    body.new-content .title .big {
        font-size: 2.3vw;
    }
    body.new-content .fz-B {
        font-size: 1.375vw;
    }
}
@media (min-width: 1700px) {
    body.new-content .pic-list .tit .tit-two {
        font-size: 1.5rem;
    }
    body.new-content .fz-B {
        font-size: 1.625em;
    }
    body.new-content .fz-C {
        font-size: 1.375em;
    }
}

/* 篩檢斷層：第一張卡片文字色 */
body.new-content .gap-compare .gap-card:not(.gap-card--winner) .gap-card-head h4,
body.new-content .gap-compare .gap-card:not(.gap-card--winner) .gap-card-sub {
    color: #3f4759;
}
body.new-content .gap-compare .gap-card:not(.gap-card--winner) .gap-card-body li::before {
    background: #3f4759;
}

/* 篩檢斷層：第二張卡片勝出樣式（柔和版） */
body.new-content .gap-card--winner {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(239, 126, 0, 0.35);
    border-radius: 14px;
}
body.new-content .gap-card-winner-logo {
    position: absolute;
    top: 14px;
    right: 16px;
    height: 40px;
    width: auto;
    z-index: 1;
}
body.new-content .gap-card--winner .gap-card-head {
    padding-right: 72px;
}
body.new-content .gap-card--winner .gap-card-body li::before {
    top: 8px;
    width: 8px;
    height: 5px;
    border-radius: 0;
    background: transparent;
    border-left: 1.5px solid #ef7e00;
    border-bottom: 1.5px solid #ef7e00;
    transform: rotate(-45deg);
}
