* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.policy-section {
    width: 100%;
    background-color: #f9fcff;

    padding: 68px 0;

    margin: 0 auto 0 auto;

    @media (max-width: 1220px) {
        padding: 32px 16px 24px 16px;
            margin: 0px auto 0 auto;
    }

    @media (max-width: 768px) {
        margin: 0px auto 0 auto;
    }

}

.policy-content {
    display: flex;
    gap: 100px;

    width: 1220px;

    margin: 0 auto;

    @media (max-width: 1220px) {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    @media (max-width: 576px) {
        gap: 26px;    
    }
}

.policy-service-container {
    background-image: url("/FubonCMS/images/home/Function_BG.svg");
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-position: left 0 top 0;
    background-size: cover;
    border-radius: 16px;

    width: 480px;
    max-height: 400px;
    padding: 44px 50px 76px 50px;

    @media (max-width: 768px) {
        width: 100%;
        min-width: 340px;
        max-width: 550px;
        padding: 16px 24px 24px 24px;
    }

    @media (max-width: 650px) {
        max-width: 410px;
    }
}

.policy-service-title {
    color: #014865;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;

    margin-bottom: 60px;

    @media (max-width: 768px) {
        font-size: 20px;
        margin-bottom: 32px;
        
    }
}

.policy-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.policy-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    width: 76px;

    @media (max-width: 768px) {
        gap: 8px;
    }
}

.policy-service-item:hover {
    text-decoration: none;
}

.policy-service-btn img {
    width: 40px !important;
    height: 40px !important;

    @media (max-width: 768px) {
        width: 30px !important;
        height: 30px !important;
    }
}

.policy-service-text {
    color: #014865;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    
    @media (max-width: 768px) {
        font-size: 16px;
    }
}

.policy-service-btn-container {
    display: flex;
    gap: 24px;
    align-items: center;

    @media (max-width: 768px) {
        width: 100%;
        gap: 16px;
        justify-content: center;
    }
}

.banner-container {
    width: 650px;
    height: 440px;

    @media (max-width: 650px) {
        width: 100%;
        height: auto;
    }
}

.swiper {
    width: 632px;
    height: 456px;

    @media (max-width: 650px) {
        width: 343px;
        height: 265px;
    }
}

.swiper-button-next {
    top: auto !important;
    left: auto !important;
    right: 51px !important;
    bottom: 38px !important;
}
.swiper-button-prev {
    top: auto !important;
    left: auto !important;
    right: 109px !important;
    bottom: 38px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-next img,
.swiper-button-prev img {
    width: 32px;
    height: 32px;
}

.banner-swiper-item {
    position: relative !important;
    border-radius: 16px;
}

.banner-swiper .banner {
    width: 588px;
    height: 400px;
    border-radius: 16px;
    bottom: 28px;
    left: 10px;
    position: absolute;
    z-index: 2;
    box-shadow: 6px 15px 25px 0px rgba(39, 182, 205, 0.12);

    @media (max-width: 650px) {
        width: 326px;
        height: 217px;

        left: 0;
    }
}

.banner-bg-wrapper {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 15px;

    width: 588px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden; /* 限制子元素在圓角內 */
    box-shadow: 0 8px 8px 6px rgba(39, 182, 205, 0.12);


    @media (max-width: 650px) {
        width: 326px;
        height: 217px;

        right: 5px;
        top: 8px;
    }
}

.banner-bg {
    width: 100%;
    height: 100%;
    filter: blur(5px);
}

.banner-button-next {
    @media (max-width: 650px) {
        display: none !important;
        
    }
}

.banner-button-prev {
    @media (max-width: 650px) {
        display: none !important;
        
    }
}

.banner-pagination {
    bottom: 0px !important;
}

.swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    flex-shrink: 0;
    margin: 0 6px !important;
    border-radius: 3px !important;
    background: #aeafb4 !important;
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-pagination-bullet-active {
    width: 12px !important;
    background: #0093c1 !important;
}

.pass-block {
    width: 100%;
    padding: 30px 0;
    display: flex;
    justify-content: center;

    @media (max-width: 768px) {
        display: none;   
    }
}

.pass-block img {
    transition: 0.4s;
    animation: scrollDown 0.6s infinite alternate linear;
    transform: translate(-50%, -50%);
}

@keyframes scrollDown {
    from {
        transform: translateY(-10%) translateX(-50%);
    }
    to {
        transform: translateY(10%) translateX(-50%);
    }
}

.claims-services-wrapper {
    width: 100%;
    background-color: #f4fbff;
    padding: 64px 0;

    margin: 0;

    @media (max-width: 768px) {
        padding: 48px 0px;
        
    }
}

.claims-services-container {
    width: 730px;
    margin: 0 auto;
    padding: 0 24px;

    @media (max-width: 768px) {
        width: 100%;
        padding: 0 16px;
        
    }
}

.claims-services-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-section-title {
    color: #1e1e1e;
    text-align: center;

    font-size: 32px;
    font-weight: 700;
    line-height: 40px;

    margin-bottom: 48px;

    @media (max-width: 768px) {
        margin-bottom: 32px;
        font-size: 24px;
        line-height: 30px;
    }
}

.claims-services-pills-group {
    justify-content: center;
    align-items: center;
    gap: 16px;

    @media (max-width: 768px) {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0 16px !important;
    }
}

.claims-services-card {
    padding: 34px 24px;
    border-radius: 8px;
    background: #ffffff;

    display: flex;
    width: 100%;
    align-items: center;
    gap: 24px;

    margin-bottom: 48px;


    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        max-width: 360px;
        margin: 0 auto 32px;
    }
}

.claims-services-card .card-img {
    border-radius: 8px;
    width: 300px;
    height: 200px;
}

.claims-services-card .card-info {
    width: 310px;
}

.claims-services-card .card-title {
    margin-bottom: 8px;
    color: #1e1e1e;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.48px;

    @media (max-width:1220px) {
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: 24px; /* 120% */
        text-align: center;
    }
}

.claims-services-card .card-text {
    margin-bottom: 24px;
    color: #000;

    font-size: 16px;
    font-weight: 400;
    line-height: 24px;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 96px;

    @media (max-width:1220px) {
        margin-bottom: 16px;
    }
}

.claims-services-card .card-text p,
.claims-services-card .card-text span,
.claims-services-card .card-text strong,
.claims-services-card .card-text div,
.claims-services-card .card-text li,
.claims-services-card .card-text ul,
.claims-services-card .card-text ol {
    margin-bottom: 0;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.claims-services-card .card-links {
    display: flex;
    gap: 40px;
    align-items: center;

    @media (max-width: 768px) {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

.claims-services-card .card-link {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.claims-services-card .card-link p {
    color: #0093c1;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 0;
}

.claims-services-card .card-link img {
    width: 18px;
    height: 18px;
}

.claims-services-banner {
    width: 682px;
    height: 304px;
    position: relative;

    @media (max-width: 768px) {
        width: 360px;
        height: 305px;
        border-radius:8px;
        margin: 0 auto;
        overflow: hidden;
    }
}

.claims-services-banner > .banner-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;

    @media (max-width: 768px) {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        height: 305px;
        width: auto;
        transform: translate(-50%, -50%);
    }
}

.claims-services-btn {
    position: absolute;
    z-index: 5;

    left: 50%;
    transform: translateX(
        -50%
    ); /* 將元素自身向左移動一半的寬度，實現完全居中 */
    bottom: 32px;

    display: flex;
    width: 392px;
    padding: 12px 24px;
    align-items: center;
    justify-content: space-between;

    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.25);

    cursor: pointer;
    text-decoration: none;
    color: #444444;


    @media (max-width: 768px) {
        max-width: 325px;
        padding: 12px 16px;
        bottom: 24px;
    }
}

.claims-services-btn:hover,
.claims-services-btn:focus,
.claims-services-btn:active,
.claims-services-btn p {
    text-decoration: none;
    color: #444444;
}

.claims-services-btn img {
    width: 32px;
    height: 32px;
}

.claims-services-btn-text {
    display: flex;
    gap: 8px;
}

.claims-services-btn .main-description {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px; /* 122.222% */
    margin-bottom: 0;
}

.claims-services-btn .sub-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px; /* 150% */
    margin-bottom: 0;
}

.rescue-services {
    padding: 64px 0;
    margin: 0;
    @media (max-width: 1220px) {
        padding: 48px 0;
    }
}

.rescue-services-container {
    width: 1220px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    margin: 0 auto;

    @media (max-width: 1220px) {
        width: 100%;
        padding: 0 24px;
    }
}

.rescue-services-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 40px;

    @media (max-width: 1220px) {
        gap: 24px;
        flex-direction: column;
    }
}

.rescue-services-item {
    padding: 24px;
    border-radius: 8px;
    background-color: #f4fbff;
    border: 2px solid #f4fbff;

    cursor: pointer;
}

.rescue-services-item:hover,
.rescue-services-item:focus,
.rescue-services-item:active {
    border: 2px solid #0093c1;
    text-decoration: none;
}

.rescue-services-title {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #014865;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px; /* 120% */
    margin-bottom: 16px;
}

.rescue-services-icon {
    width: 40px;
    height: 40px;
}

.rescue-services-description {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px; /* 150% */
    width: 310px;
    height: 48px;

    @media (max-width: 768px) {
        width: 272px;
    }
}

.discount-section {
    width: 100%;
    padding: 64px 0;
    margin: 0;
    @media (max-width: 1220px) {
        padding: 53px 0 48px;
    }
}

.blur-wrapper {
    position: relative;
    width: 1220px;
    height: 98%;

    margin: 0 auto;

    @media (max-width: 1220px) {
        width: 100%;
        height: 98%;
        padding: 0 16px;
    }
}

.discount-swiper {
    width: 100%;
    height: 100%;

    overflow: hidden; /* 避免邊緣外露 */
}

/* 右側模糊 + 外暈（單一層） */
.blur-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: -24px; /* 往外伸出做外暈 */
    height: 98%;
    width: calc(5vw + 24px);
    pointer-events: none;
    z-index: 10;

    @media (max-width: 1220px) {
        right: 0px; /* 調整在小螢幕上的外暈 */
    }

    /* 模糊 */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    /* 淡→深→淡，單層就沒有接縫 */
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.9) 70%,
        rgba(0, 0, 0, 0.35) 88%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.25) 30%,
        rgba(0, 0, 0, 0.9) 70%,
        rgba(0, 0, 0, 0.35) 88%,
        rgba(0, 0, 0, 0) 100%
    );

    /* 避免 Safari 暗帶，可依頁面背景色調整 */
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 70%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Fallback：Firefox 等不支援 backdrop-filter */
@supports not (
    (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
    .blur-wrapper::after {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        /* 用亮度漸層假裝模糊淡化 */
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.12) 55%,
            rgba(255, 255, 255, 0.18) 85%,
            rgba(255, 255, 255, 0) 100%
        );
    }
}

.discount-swiper .swiper-wrapper {
    padding-bottom: 15px !important;
    padding-right: 5vw !important;
}

.discount-card {
    width: 320px !important;
    border-radius: 12px;
    border: 1px solid #d7d7da;
    background-color: #fff;
}

.discount-card:hover {
    text-decoration: none;
}

.discount-card:last-child {
    margin-right: 5vw; /* 最後一張卡片右側留空間 */

    @media (max-width: 5760x) {
        margin-right: 0; /* 在小螢幕上取消右側空間 */
    }
}

.discount-card-img {
    width: 320px;
    height: 218px;
    border-radius: 12px 12px 0 0;
    display: block;
    object-fit: cover;
    border: 1px solid transparent;
    margin-left: -1px;
    margin-top: -1px;
}

.discount-card-text {
    padding: 16px 16px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
}

.discount-card-title {
    color: #0c0e1f;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px; /* 150% */
    margin-bottom: 0;
}

.discount-card-description {
    margin-bottom: 0;
    overflow: hidden;
    color: #494a57;
    display: -webkit-box; /* 使用 flexbox 模擬多行文本 */
    -webkit-line-clamp: 2; /* 限制顯示的行數為 2 行 */
    -webkit-box-orient: vertical; /* 垂直方向排列 */
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px; /* 157.143% */

    width: 288px;
    height: 44px;
}


.discount-swiper-scrollbar > .swiper-scrollbar-drag{
    background:#D9DBDC !important;
    border-radius: 12px;
}

.discount-swiper-scrollbar.swiper-scrollbar {
    background: inherit !important;
}