/* =========================================================
 * Home page styles
 * 共用／桌機規則依首頁區塊排列；手機版規則集中於檔案後段。
 * ========================================================= */

/* =========================================================
 * Shared controls
 * 首頁共用按鈕、區塊按鈕位置與手機懸浮按鈕基礎狀態。
 * ========================================================= */
.spica-home .home-hero .spica-btn-light {
    position: relative;
    min-width: 230px;
    padding: 0 46px;
    color: #fff;
    background: transparent url("../../images/home/icon/banner-button.png") center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform .25s ease, color .25s ease, filter .25s ease;
    aspect-ratio: 7 / 2;
    width: 280px;
}

.spica-home .home-hero .spica-btn-light:hover,
.spica-home .home-hero .spica-btn-light:focus {
    /*color: #26303b;*/
    background-image: url("../../images/home/icon/banner-button-hover.png");
    transform: translateY(-2px);
}

/* 共用區塊按鈕：由 home_section.button_position 控制左 / 中 / 右。 */
.section-bottom {
    width: 100%;
    margin-top: 42px;
}

/* 手機版懸浮問卷按鈕：離開 Hero 後由 JS 加上 is-visible。 */
.spica-home .spica-mobile-survey-btn {
    position: fixed;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 0;
    z-index: 900;
    width: min(300px, calc(100% - 40px));
    min-width: 0;
    max-width: none;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity .28s ease, transform .28s ease;
}

.spica-home .spica-mobile-survey-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    /* transform: translate(-50%, 0); */
}


.section-bottom-left {
    text-align: left;
}

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

.section-bottom-right {
    text-align: right;
}

/* =========================================================
 * Hero
 * 首頁主視覺輪播、文字與問卷按鈕定位。
 * ========================================================= */
.home-hero {
    position: relative;
    /* min-height: 720px; */
    padding-top: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #d7dde3;
    background-image: url("../../images/home/banner/home-01.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.home-hero .spica-btn-light > span {
    font-size: 24px;
    white-space: nowrap;
}

.home-hero-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.home-hero-swiper .swiper-wrapper,
.home-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.home-hero-swiper .swiper-slide {
    background-color: #d7dde3;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.home-hero-swiper .swiper-slide:not(.swiper-slide-active) {
    pointer-events: none;
}

.home-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    /* min-height: 720px; */
    padding-top: var(--spica-header-height);
    background-image: var(--section-bg-pc, var(--section-bg));
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #d7dde3;
    background-size: cover;
}

.home-hero-slide > .container {
    position: relative;
}

.home-hero-inner {
    position: absolute;
    top: 50%;
    left: 8.333333%;
    width: 83.333333%;
    height: auto;
    min-height: 0;
    transform: translateY(calc(-50% - 12vw + 60px));
}

.home-hero-inner::before {
    content: "";
    display: block;
    height: calc(clamp(65px, 9.9vw, 162px) + 28px);
}

/* 按鈕隱藏時，整張 Banner 可點擊 */
.home-hero .home-hero-clickable {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.home-hero .home-hero-clickable:hover,
.home-hero .home-hero-clickable:focus {
    color: inherit;
    text-decoration: none;
}

.hero-subtitle {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 1);
    font-size: 1.6rem;
}

.hero-btn-row {
    width: 100%;
}

.hero-btn-row-left {
    text-align: left;
}

.hero-btn-row-center {
    text-align: center;
}

.hero-btn-row-right {
    text-align: right;
}

/* =========================================================
 * The Deep Scan
 * 掃描區塊背景與五項主題列表。
 * ========================================================= */
.home-scan {
    background-image: var(--section-bg-pc, var(--section-bg));
    aspect-ratio: 16 / 9;
}

.scan-topic-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    gap: 18px;
    max-width: 520px;
    margin-top: 80px;
}

.scan-topic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #536272;
    font-size: .8125rem;
    text-align: center;
}

.scan-topic-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.scan-topic-item span {
    font-size: 1rem;
    letter-spacing: 2px;
}

/* =========================================================
 * Customer Stories
 * 顧客故事文字、卡片、Swiper 控制項與狀態。
 * ========================================================= */
.home-stories {
    background-image: var(--section-bg-pc, var(--section-bg));
    aspect-ratio: 16 / 9;
}

.home-stories .row {
    min-height: 520px;
}

.home-stories-copy {
    padding-left: 70px;
}

.home-stories .section-kicker {
    max-width: 360px;
    font-size: clamp(3rem, 4.4vw, 4rem);
    line-height: 1.08;
}

.home-stories .section-title {
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.35;
}

.home-stories .title-line {
    height: 130px;
    margin: 42px 0;
}

.home-stories .section-desc {
    max-width: 390px;
}

.spica-story-swiper {
    padding: 48px 34px 74px;
}

.spica-story-swiper .swiper-wrapper {
    align-items: flex-end;
    isolation: isolate;
}

.spica-story-swiper .swiper-slide {
    position: relative;
    width: 254px;
    z-index: var(--story-z-index, 1) !important;
    transition: transform .28s ease;
}

.spica-story-swiper .swiper-slide-active {
    z-index: 22 !important;
}

.spica-story-swiper .swiper-slide:hover {
    z-index: 30 !important;
}

.story-card {
    display: flex;
    flex-direction: column;
    min-height: 358px;
    color: #3a4654;
    background: #dce0e5;
    border: 1px solid #dbe4eb;
    border-radius: 10px;
    box-shadow: 4px 3px 6px 1px rgba(62, 62, 62, 0.3);
    overflow: hidden;
    transform: scale(.9);
    transform-origin: left bottom;
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
    position: relative;
}

.story-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0.5px 0px 0px rgba(255, 255, 255, 0.75);
}

.story-card-active,
.spica-story-swiper .swiper-slide-active .story-card {
    transform: scale(1.05) translateY(8%);
}

.spica-story-swiper:has(.swiper-slide:hover) .story-card.story-card-active {
    transform: scale(0.9);
}

.spica-story-swiper .swiper-slide .story-card:hover {
    transform: scale(1.05) translateY(8%) !important;
}

.story-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    background-color: #dce0e5;
    background-image: var(--bg-image-pc);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 10px 10px 0 0;
}

.story-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.story-card h3 {
    margin-bottom: 10px;
    color: #2d3947;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.45;
}

.story-card ul {
    margin: 0 0 30px;
    padding-left: 30px;
    color: #3f4b59;
    line-height: 1.5;
}

.story-card ul li {
    font-size: 1.1rem;
}

.story-card p {
    display: -webkit-box;
    margin-bottom: 0;
    color: #53606e;
    font-size: .95rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 1px;
}

.story-card a {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    margin-top: auto;
    color: #2f3b49;
    font-size: .66rem;
    font-weight: 500;
}

.story-control-row {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    pointer-events: none;
}

.story-arrow {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: 0;
    color: #667482;
    pointer-events: auto;
    transform: translateY(-50%);
}

.story-arrow.swiper-button-prev {
    left: -12px;
}

.story-arrow.swiper-button-next {
    right: -12px;
}

.story-arrow::after {
    font-size: 2rem;
    font-weight: 300;
}

.story-pagination {
    position: absolute;
    right: 0;
    bottom: -5px !important;
    left: 0;
    width: auto !important;
    text-align: center;
    pointer-events: auto;
}

.story-pagination .swiper-pagination-bullet {
    background: #7a8793;
}

.story-pagination .swiper-pagination-bullet-active {
    background: #2e3945;
}

.story-pagination .swiper-pagination-bullet-active-prev-prev,
.story-pagination .swiper-pagination-bullet-active-next-next {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

/* =========================================================
 * How It Works
 * 專業流程列表、展開內容與圖片狀態。
 * ========================================================= */
.home-works {
    position: relative;
    min-height: 720px;
    background-image: var(--section-bg-pc, var(--section-bg));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    aspect-ratio: 16 / 9;
}

.works-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(4.5rem, 7vw, 8.5rem) 0 clamp(3.5rem, 5.2vw, 6.25rem);
}

.works-heading {
    width: min(100%, 540px);
}

.works-heading .section-kicker {
    margin-bottom: .25rem;
    color: #263545;
    font-size: clamp(2.6rem, 4.5vw, 4.8rem);
    line-height: 1.02;
}

.works-heading .section-title {
    color: #263545;
    font-size: clamp(1.6rem, 2vw, 2.05rem);
    line-height: 1.35;
}

.works-desc {
    max-width: 720px;
    margin-bottom: 30px;
    color: #4a5867;
}

.works-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #aeb8c2;
}

.works-item {
    display: grid;
    grid-template-columns: minmax(5.2rem, 8%) minmax(280px, 42%) minmax(320px, 50%);
    align-items: stretch;
    width: 100%;
    min-height: 5.7rem;
    padding: 0;
    color: #293847;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #aeb8c2;
    overflow: hidden;
    transition: background .25s ease, min-height .32s ease;
}

.works-item:hover,
.works-item.active {
    background: rgba(255, 255, 255, .26);
}

.works-item.active {
    min-height: 220px;
}

.works-item-num {
    display: flex;
    align-items: flex-start;
    padding: 1.45rem 0 1.4rem 30px;
    color: #607080;
    font-size: 1.42rem;
    font-weight: 300;
    line-height: 1.4;
}

.works-item-num img {
    display: block;
    width: 3.4rem;
    max-width: 100%;
    height: auto;
}

.works-item-content {
    display: block;
    min-width: 0;
    padding: 1.45rem 1.5rem 1.4rem 0;
}

.works-item strong {
    display: block;
    color: #465563;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.55;
}

.works-item hr {
    width: 24px;
    margin: 0;
    height: 0;
    border: unset;
}

.works-item.active hr {
    background-color: #293847;
    margin: 20px 0 25px;
    height: 1px;
    transition: height .32s ease, margin-top .32s ease, margin-bottom .32s ease;
}

.works-item small {
    display: block;
    max-width: 420px;
    margin-top: 0;
    color: #485869;
    font-size: 1.1rem;
    line-height: 1.4;
    overflow: hidden;
    transition: height .32s ease, margin-top .32s ease;
    height: 0;
}

.works-item.active small {
    max-height: unset;
    margin-top: 20px;
    height: 160px;
    letter-spacing: 1px;
}

.works-item-media {
    position: relative;
    display: block;
    min-height: 5.7rem;
    overflow: hidden;
    transition: min-height .32s ease;
}

.works-item.active .works-item-media {
    min-height: 220px;
}

.works-item-media::before,
.works-item-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.works-item-media::before {
    z-index: 2;
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.works-item-media::after {
    z-index: 3;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .18), rgba(255, 255, 255, .34));
}

.works-item.active .works-item-media::before,
.works-item.active .works-item-media::after {
    opacity: 0;
}

.works-item-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: blur(6px);
    transform: scale(1.04);
    transition: filter .3s ease, transform .45s ease;
}

.works-item.active .works-item-media img {
    filter: blur(0);
    transform: scale(1);
}

.home-works-sticky {
    position: relative;
    height: 100%;
}

.home-works-sticky > .container {
    height: 100%;
}

/* =========================================================
 * Why SPICA
 * 六宮格、右側直排標題與 hover 毛玻璃內容。
 * ========================================================= */
.home-why {
    position: relative;
    padding: 0;
    color: #fff;
    background-image: var(--section-bg-pc, var(--section-bg));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-why .container-fluid {
    position: absolute;
    inset: 0;
    max-width: none;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.why-panel {
    position: absolute;
    top: calc(53.5% + 0.08vw);
    right: calc(4.8% + 1px);
    left: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 5vw 5vw 0;
    background: transparent;
    transform: translateY(-50%);
    height: 93%;
}

.why-panel .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
    margin: 0;
    gap: 0.09vw;
}

.why-panel .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
}

.why-side-title-div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 4.8vw;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 3rem);

    pointer-events: none;
}

/* 右側直排標題下方線條：跟著標題自然排列，避免後台文字變長時重疊 */
.why-side-title-div::after {
    content: "";
    display: block;
    width: 1px;
    height: clamp(7rem, 22vw, 18rem);
    background: #c7ccd2;
    flex: 0 0 auto;
}

.why-side-title {
    position: static;
    color: #c7ccd2;
    font-size: clamp(1.4rem, 2.5vw, 3rem);
    font-weight: 300;
    line-height: 1;
    writing-mode: vertical-rl;
    transform: none;
    pointer-events: none;

    white-space: nowrap;
    word-break: keep-all;
    flex: 0 0 auto;
}

.why-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: clamp(1.5rem, 4vw, 5.25rem) clamp(1.25rem, 4vw, 4rem);
    color: #fff;
    text-align: center;
    background: transparent;
    border: 0;
    overflow: hidden;
    isolation: isolate;
    transition: background .4s ease, box-shadow .4s ease, backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease;
}

.why-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(230, 239, 246, .14), rgba(230, 239, 246, .14)),
        var(--why-item-bg, url("../../images/home/why-spica-01.png"));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    pointer-events: none;
}

.why-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(150, 150, 150, 0.1);
    -webkit-backdrop-filter: blur(3px) saturate(115%);
    backdrop-filter: blur(3px) saturate(115%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    pointer-events: none;
}

.why-item > * {
    position: relative;
    z-index: 2;
}

.why-item:hover::before,
.why-item:hover::after {
    opacity: 1;
    visibility: visible;
}

.why-item-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.why-item-hover {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
}

.why-item:hover .why-item-default {
    display: none;
}

.why-item:hover .why-item-hover {
    display: flex;
}

.why-item p {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
}

.why-item h3 {
    margin-bottom: 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
}

.why-item-hover p {
    margin-bottom: 10px;
}


.why-item-hover hr {
    border-top: 1px solid #fff;
    width: 30px;
    opacity: 1;
    margin: 30px 0;
}

.why-item small {
    display: block;
    max-width: 20rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 2px;
}

/* =========================================================
 * Start With You
 * 首頁最後行動區塊背景。
 * ========================================================= */
.home-start {
    background-image: var(--section-bg-pc, var(--section-bg));
    aspect-ratio: 16 / 9;
}

.spica-home .home-start .spica-btn-dark {
    position: relative;
    display: inline-block;
    width: 280px;
    min-width: 230px;
    padding: 0 46px;
    aspect-ratio: 7 / 2;

    background: transparent url("../../images/home/icon/button-primary.png")
                center / 100% 100% no-repeat;

    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;

    transition: transform .25s ease;
}

.spica-home .home-start .spica-btn-dark:hover,
.spica-home .home-start .spica-btn-dark:focus {
    background-image: url("../../images/home/icon/button-primary-hover.png");
    transform: translateY(-2px);
}

/* =========================================================
 * Shared reveal animation
 * 首頁文字與項目進場；尊重系統減少動態效果設定。
 * ========================================================= */
.js-blur-rise .blur-rise-item,
.js-blur-rise .scan-topic-item {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(34px);
    transition: opacity .9s cubic-bezier(.22, 1, .36, 1),
        filter .9s cubic-bezier(.22, 1, .36, 1),
        transform .9s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--blur-rise-delay, 0s);
    will-change: opacity, filter, transform;
}

.js-blur-rise.is-blur-rise-visible .blur-rise-item,
.js-blur-rise.is-blur-rise-visible .scan-topic-item {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.js-blur-rise .section-kicker {
    --blur-rise-delay: .02s;
}

.js-blur-rise .section-title {
    --blur-rise-delay: .12s;
}

.js-blur-rise .title-line {
    --blur-rise-delay: .22s;
}

.js-blur-rise .section-desc {
    --blur-rise-delay: .32s;
}

.js-blur-rise .section-bottom,
.js-blur-rise .scan-topic-list {
    --blur-rise-delay: .44s;
}

.js-blur-rise .scan-topic-item:nth-child(1) {
    --blur-rise-delay: .52s;
}

.js-blur-rise .scan-topic-item:nth-child(2) {
    --blur-rise-delay: .60s;
}

.js-blur-rise .scan-topic-item:nth-child(3) {
    --blur-rise-delay: .68s;
}

.js-blur-rise .scan-topic-item:nth-child(4) {
    --blur-rise-delay: .76s;
}

.js-blur-rise .scan-topic-item:nth-child(5) {
    --blur-rise-delay: .84s;
}

@media (prefers-reduced-motion: reduce) {
    .js-blur-rise .blur-rise-item,
    .js-blur-rise .scan-topic-item {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
}

.js-blur-rise .works-desc {
    --blur-rise-delay: .22s;
}

/* =========================================================
 * Desktop layout / interactions
 * min-width: 992px 的桌機專屬遮罩、卡片尺寸與 sticky scroll。
 * ========================================================= */
@media (min-width: 992px) {
    /* Customer Stories：兩側淡出遮罩與桌機卡片寬度。 */
    .spica-story-swiper {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            #000 6%,
            #000 94%,
            transparent 100%
        );
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }

    .spica-story-swiper .swiper-slide {
        width: 300px;
    }

    /* How It Works：桌機版 sticky 捲動切換。 */
    .home-works[data-works-scroll] {
        --works-visual-height: max(720px, min(56.25vw));
        --works-scroll-extra: 240vh;

        min-height: calc(var(--works-visual-height) + var(--works-scroll-extra));
        aspect-ratio: auto;
        background: none;
        overflow: visible;
    }

    .home-works[data-works-scroll] .home-works-sticky {
        position: sticky;
        top: -120px;
        height: var(--works-visual-height);
        background-image: var(--section-bg-pc, var(--section-bg));
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        overflow: hidden;
    }

    .home-works[data-works-scroll] .home-works-sticky > .container {
        display: flex;
        align-items: center;
    }

    .home-works[data-works-scroll] .works-panel {
        width: 100%;
        min-height: auto;
    }

    .home-works[data-works-scroll] .works-item {
        will-change: min-height, background;
    }
}

/* =========================================================
 * Mobile layout / controls
 * max-width: 991.98px 集中於此；575.98px 微調依原順序保留在對應區塊。
 * ========================================================= */
@media (max-width: 991.98px) {
    :root {
        /* Hero */
        --spica-m-hero-subtitle-font-size: clamp(0.95rem, 3.45vw, 1.12rem);

        /* Shared typography */
        --spica-m-section-en-font-size: clamp(2.12rem, 7.5vw, 3.35rem);
        --spica-m-section-zh-font-size: clamp(1.12rem, 5.6vw, 2rem);
        --spica-m-section-desc-font-size: clamp(0.82rem, 3.5vw, 1.15rem);
        --spica-m-section-desc-line-height: 1.4;
        --spica-m-section-letter-spacing: 0.04em;

        /* Customer Stories */
        --spica-m-story-title-font-size: clamp(0.96rem, 4vw, 1.2rem);
        --spica-m-story-text-font-size: clamp(0.82rem, 3.6vw, 1rem);
        --spica-m-stories-copy-top: 4%;
        --spica-m-stories-copy-left: 8%;
        --spica-m-stories-card-top: 42%;
        --spica-m-stories-card-width: min(300px, 76vw);
        --spica-m-stories-card-body-padding: 18px 18px 16px;
        --spica-m-story-active-scale: 1;
        --spica-m-story-active-y: 0%;
        --spica-m-story-side-scale: .82;
        --spica-m-story-side-y: 3%;
        --spica-m-story-prev-x: 16%;
        --spica-m-story-next-x: -16%;
        --spica-m-story-side-opacity: .55;
        --spica-m-story-far-scale: .72;
        --spica-m-story-far-y: 5%;
        --spica-m-story-far-opacity: .28;
        --spica-m-story-slide-transition: transform .45s ease, opacity .45s ease;

        /* How It Works */
        --spica-m-works-step-title-font-size: clamp(1rem, 4.6vw, 1.8rem);
        --spica-m-works-step-desc-font-size: clamp(0.84rem, 3.1vw, 0.98rem);
        --spica-m-works-side-space: 4.6%;
        --spica-m-works-panel-top: 16%;
        --spica-m-works-desc-margin-bottom: clamp(18px, 8vw, 60px);
        --spica-m-works-title-line-width: min(28vw, 108px);
        --spica-m-works-title-line-margin: clamp(12px, 3.4vw, 18px) 0;
        --spica-m-works-item-num-width: clamp(2.8rem, 11vw, 3.6rem);
        --spica-m-works-row-y: clamp(13px, 3.8vw, 20px);
        --spica-m-works-image-ratio: 7 / 5;
        --spica-m-works-image-margin-top: 0;
        --spica-m-works-active-desc-margin-top: clamp(16px, 4.4vw, 24px);
        --spica-m-works-active-desc-padding-bottom: clamp(24px, 6.4vw, 36px);
        --spica-m-works-expand-duration: .78s;
        --spica-m-works-expand-ease: cubic-bezier(.22, 1, .36, 1);
        --spica-m-works-image-max-height: 520px;
        --spica-m-works-desc-max-height: 220px;
        --spica-m-works-active-image-height: min(440px, 64.86vw);
        --spica-m-works-active-desc-max-height: 150px;

        /* Why SPICA */
        --spica-m-why-title-font-size: clamp(1.5rem, 7vw, 2.4rem);
        --spica-m-why-card-title-font-size: clamp(1.15rem, 4.6vw, 1.6rem);
        --spica-m-why-card-title-2-font-size: clamp(0.9rem, 3.6vw, 1.2rem);
        --spica-m-why-card-desc-font-size: clamp(0.86rem, 3.05vw, 1rem);
        --spica-m-why-title-top: 48%;
        --spica-m-why-card-width: 100%;
        --spica-m-why-card-min-height: clamp(230px, 58vw, 320px);
        --spica-m-why-card-y: 8%;
        --spica-m-why-title-area-height: 12%;
        --spica-m-why-swiper-area-height: 82%;
        --spica-m-why-slide-width: 78%;
        --spica-m-why-card-radius: 18px;
        --spica-m-why-card-padding-y: clamp(1.8rem, 5.8vw, 2.55rem);
        --spica-m-why-card-padding-x: clamp(1.2rem, 8.5vw, 2.6rem);
        --spica-m-why-side-scale: .9;
        --spica-m-why-side-opacity: 1;

        /* Floating survey button */
        --spica-m-survey-btn-width: min(500px, calc(100% - 16px));
        --spica-m-survey-btn-height: clamp(72px, 16.8vw, 84px);
        --spica-m-survey-btn-bottom: max(8px, env(safe-area-inset-bottom));
        --spica-m-survey-btn-radius: 16px;
        --spica-m-survey-btn-bg: rgba(78, 91, 110, .68);
        --spica-m-survey-btn-color: rgba(255, 255, 255, .98);
        --spica-m-survey-btn-font-size: clamp(1.18rem, 4.7vw, 1.48rem);
        --spica-m-survey-footer-gap: 0px;
        --spica-m-footer-padding-bottom: 36px;
    }

    @media (max-width: 575.98px) {
        :root {
            --spica-m-footer-padding-bottom: 34px;
        }
    }

    /* ---------------------------------------------------------
     * Customer Stories：手機版基礎重設
     * 清除桌機欄位限制，交由後方 coverflow 版面控制。
     * --------------------------------------------------------- */
    .home-stories-copy {
        padding-left: 0;
    }

    .home-stories .row {
        min-height: 0;
    }

    .home-stories .section-kicker {
        max-width: none;
    }

    .spica-story-swiper .swiper-slide {
        width: auto;
    }

    .story-card,
    .story-card:hover,
    .story-card-active,
    .spica-story-swiper .swiper-slide-active .story-card {
        transform: none;
    }

    .story-arrow.swiper-button-prev {
        left: 0;
    }

    .story-arrow.swiper-button-next {
        right: 0;
    }

    @media (max-width: 575.98px) {
        /* Customer Stories spacing */
        .story-card-body {
            padding: 18px 17px 16px;
        }
    }

    /* ---------------------------------------------------------
     * Hero／Deep Scan／How It Works：手機版基礎重設
     * 先取消桌機高度與顯示方式，再於各區塊設定最終版面。
     * --------------------------------------------------------- */
    .home-hero {
        height: auto;
        min-height: 650px;
    }

    .scan-topic-list {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 36px;
    }

    .home-works {
        min-height: auto;
        aspect-ratio: 500 / 1083;
    }

    .works-panel {
        padding: 5.5rem 0 4.25rem;
    }

    .works-item-media {
        grid-column: 1 / -1;
        min-height: 5.2rem;
    }

    @media (max-width: 575.98px) {
        /* -----------------------------------------------------
         * Small Mobile：575.98px 以下共用版面微調
         * ----------------------------------------------------- */
        .home-hero,
        .home-hero-slide {
            min-height: 590px;
        }

        .home-hero-slide,
        .section-bg,
        .home-works,
        .home-works[data-works-scroll] .home-works-sticky {
            background-image: var(--section-bg-mobile, var(--section-bg-pc, var(--section-bg)));
        }

        .home-hero-inner {
            transform: translateY(calc(-50% - 16vw + 42px));
        }

        .home-hero-inner::before {
            height: calc(clamp(54px, 16.2vw, 70px) + 24px);
        }

        .hero-subtitle {
            font-size: .9375rem;
        }

        .hero-btn-row-right {
            text-align: center;
        }

        .section-bottom-left,
        .section-bottom-right {
            text-align: center;
        }

        .scan-topic-list {
            grid-template-columns: repeat(2, 1fr);
        }

        .story-card {
            min-height: 310px;
        }

        .works-panel {
            padding: 4.5rem 0 3.25rem;
        }

        .works-heading .section-kicker {
            font-size: 2.45rem;
        }

        .works-desc {
            font-size: .95rem;
        }

        .works-item {
            grid-template-columns: 3.2rem 1fr;
        }

        .works-item.active {
            min-height: 220px;
        }

        .works-item-num {
            padding: 1.15rem 0 1.15rem 0;
            font-size: 1.18rem;
        }

        .works-item-num img {
            width: 2.25rem;
        }

        .works-item-content {
            padding: 1.15rem 0 1.15rem 0;
        }

        .works-item-media {
            min-height: 4.8rem;
        }

        .works-item.active .works-item-media {
            min-height: 220px;
        }

        .works-item strong {
            font-size: 1rem;
        }

        .works-item small {
            font-size: .9rem;
        }

        .spica-home .spica-btn {
            width: 224px;
            max-width: 100%;
        }
    }

    /* ---------------------------------------------------------
     * Why SPICA：手機版輪播基礎重設
     * --------------------------------------------------------- */
    .why-mobile-title {
        margin-bottom: 1.35rem;
        font-weight: 300;
        line-height: 1.2;
    }

    .why-panel {
        border: 0;
    }

    .why-panel .row {
        display: flex;
        grid-template-columns: none;
        grid-template-rows: none;
        height: auto;
        gap: 0;
    }

    .why-side-title-div {
        display: none;
    }

    .why-item {
        border: 0 !important;
    }

    .why-item::after {
        background: rgba(18, 30, 44, .1);
        -webkit-backdrop-filter: blur(1.5px) saturate(112%);
        backdrop-filter: blur(1.5px) saturate(112%);
    }

    .why-item p,
    .why-item h3 {
        font-size: clamp(1.1rem, 4.7vw, 1.35rem);
    }

    .why-item small {
        max-width: none;
        line-height: 1.3;
        letter-spacing: 0px;
    }

    @media (max-width: 575.98px) {
        /* -----------------------------------------------------
         * Why SPICA：575.98px 以下卡片尺寸微調
         * ----------------------------------------------------- */
        .home-why {
            min-height: 410px;
            padding: 3.4rem 0 3rem;
        }

        .why-item {
            min-height: 318px;
            padding: 1.75rem 1.1rem;
        }

        .why-item-hover,
        .why-item:hover .why-item-hover {
            min-height: 168px;
            padding: 1.75rem 1.25rem;
        }
    }

    /* ---------------------------------------------------------
     * Start With You／懸浮按鈕：手機版顯示規則
     * 隱藏區塊內按鈕，改由固定「立即檢測」按鈕負責導流。
     * --------------------------------------------------------- */
    .home-start .section-bottom {
        display: none;
    }

    /* ---------------------------------------------------------
     * Shared Mobile Background：各區塊底圖與基礎定位
     * 手機版依各自底圖比例顯示，避免背景被裁切。
     * --------------------------------------------------------- */
    .home-hero,
    .home-scan,
    .home-stories,
    .home-why,
    .home-start {
        width: 100%;
        min-height: 0;
        aspect-ratio: 500 / 1083;
        background-image: var(--section-bg-mobile, var(--section-bg-pc, var(--section-bg)));
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }

    .home-scan,
    .home-stories,
    .home-start {
        padding: 0;
    }

    .home-hero-slide {
        min-height: 0;
        background-image: var(--section-bg-mobile, var(--section-bg-pc, var(--section-bg)));
        background-position: center top;
        background-size: cover;
    }

    .home-scan-copy,
    .home-stories-copy,
    .home-start-copy {
        width: 100%;
    }

    .home-scan .row {
        align-items: flex-start !important;
    }

    .home-scan .section-kicker,
    .home-start .section-kicker {
        margin-bottom: .25rem;
        font-size: clamp(2rem, 8.4vw, 3.4rem);
        line-height: 1.05;
    }

    .home-scan .section-title,
    .home-start .section-title {
        margin-bottom: 0;
        font-size: clamp(1.12rem, 4.8vw, 1.8rem);
        line-height: 1.35;
    }

    .home-scan .title-line,
    .home-start .title-line {
        width: 1px;
        height: clamp(38px, 10vw, 68px);
        margin: clamp(12px, 3vw, 20px) 0;
    }

    .home-scan .section-desc,
    .home-start .section-desc {
        max-width: min(78%, 380px);
        font-size: clamp(.78rem, 2.45vw, 1rem);
        line-height: 1.65;
        letter-spacing: .08em;
    }

    .scan-topic-list {
        display: none;
    }

    .home-stories .row {
        display: flex;
        flex-direction: column;
        gap: 0 !important;
        padding-top: 9.5%;
    }

    .home-stories-copy {
        flex: 0 0 auto;
    }

    .home-stories .section-title {
        margin-bottom: 0;
    }

    .home-stories .row > .col-lg-8 {
        flex: 0 0 auto;
        margin-top: auto;
        margin-bottom: 13%;
        padding-right: 0;
        padding-left: 0;
    }

    .story-control-row {
        display: none;
    }

    .story-card,
    .story-card:hover,
    .story-card-active,
    .spica-story-swiper .swiper-slide-active .story-card,
    .spica-story-swiper .swiper-slide .story-card:hover {
        min-height: 0;
    }

    .story-card h3 {
        margin-bottom: .55rem;
    }

    .story-card ul {
        padding-left: 2rem;
        line-height: 1.6;
    }

    .story-card p {
        -webkit-line-clamp: 2;
    }

    .home-works[data-works-scroll] {
        --works-scroll-extra: 180vh;
        min-height: calc(var(--works-mobile-visual-height) + var(--works-scroll-extra));
        aspect-ratio: auto;
        background: none;
        overflow: visible;
    }

    .home-works[data-works-scroll] .home-works-sticky {
        position: sticky;
        top: -15px;
        height: var(--works-mobile-visual-height);
        min-height: 0;
        background-image: var(--section-bg-mobile, var(--section-bg-pc, var(--section-bg)));
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        overflow: hidden;
    }

    .home-works[data-works-scroll] .home-works-sticky > .container {
        display: flex;
        align-items: flex-start;
        height: 100%;
    }

    .home-works[data-works-scroll] .works-panel {
        width: 100%;
        min-height: 0;
        padding: 10% 0 0;
        justify-content: flex-start;
    }

    .works-heading {
        width: 100%;
    }

    .works-heading .section-kicker {
        font-size: clamp(2rem, 8vw, 3.15rem);
    }

    .works-heading .section-title {
        font-size: clamp(1.05rem, 4.6vw, 1.65rem);
    }

    .works-desc {
        font-size: clamp(.8rem, 2.55vw, .98rem);
        line-height: 1.7;
    }

    .works-main {
        width: 100%;
    }

    .works-item small {
        line-height: 1.6;
    }

    .works-item.active hr {
        margin: clamp(.7rem, 2.8vw, 1.1rem) 0 clamp(.75rem, 3vw, 1.25rem);
    }

    .works-item-media,
    .works-item.active .works-item-media {
        min-height: clamp(178px, 56vw, 360px);
    }

    .why-panel .row,
    .why-panel .swiper-slide,
    .why-item {
        height: 100%;
    }

    .home-start .row {
        align-items: flex-start !important;
    }

    @media (max-width: 575.98px) {
        /* -----------------------------------------------------
         * Customer Stories：575.98px 以下卡片寬度微調
         * ----------------------------------------------------- */
        .home-stories .row > .col-lg-8 {
            margin-bottom: 12%;
        }

        .story-card,
        .story-card:hover,
        .story-card-active,
        .spica-story-swiper .swiper-slide-active .story-card,
        .spica-story-swiper .swiper-slide .story-card:hover {
            width: min(284px, 76vw);
        }

        .why-item-hover,
        .why-item:hover .why-item-hover {
            width: min(76%, 272px);
        }
    }

    /* =========================================================
     * The Deep Scan：手機版文案定位
     * ========================================================= */
    .home-scan-copy {
        padding-top: 6.75%;
    }

    /* =========================================================
     * Hero：手機版 subtitle 與按鈕定位
     * Start Within 已在底圖內，HTML 僅負責對齊互動內容。
     * ========================================================= */
    .home-hero-inner {
        top: 26%;
        right: 0;
        left: 0;
        width: auto;
        transform: none;
        text-align: center;
    }

    .home-hero-inner::before {
        display: none;
        height: 0;
    }

    .hero-subtitle {
        max-width: min(86%, 460px);
        margin: 0 auto clamp(20px, 4.6vw, 30px);
        line-height: 1.45;
        letter-spacing: .08em;
        text-align: center;
        margin-bottom: 6%;
    }

    .hero-btn-row-left,
    .hero-btn-row-center,
    .hero-btn-row-right {
        text-align: center;
    }

    @media (max-width: 575.98px) {
        /* -----------------------------------------------------
         * Hero：575.98px 以下位置微調
         * ----------------------------------------------------- */
        .home-hero-inner {
            top: 26%;
        }

        .hero-subtitle {
            margin-bottom: 6%;
        }
    }

    /* =========================================================
     * Shared Section Layout：首頁各區塊比例與內容框架
     * ========================================================= */
    .home-hero {
        aspect-ratio: 1000 / 1957;
    }

    .home-scan {
        aspect-ratio: 1000 / 1568;
    }

    .home-stories {
        aspect-ratio: 1000 / 1685;
    }

    .home-start {
        aspect-ratio: 1000 / 2037;
    }

    .home-scan > .container,
    .home-stories > .container,
    .home-start > .container {
        position: relative;
        height: 100%;
    }

    .home-scan .row,
    .home-stories .row,
    .home-start .row {
        display: block;
        height: 100%;
        min-height: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .home-scan .row > *,
    .home-stories .row > *,
    .home-start .row > * {
        padding-right: 0;
        padding-left: 0;
    }

    .home-scan-copy {
        position: absolute;
        top: 8%;
        left: 0;
        width: 80%;
        padding: 0;
    }

    .home-scan .section-kicker {
        margin-bottom: 0.3rem;
        font-size: clamp(1.9rem, 7vw, 3rem);
        line-height: 1.05;
    }

    .home-scan .section-title {
        font-size: clamp(1rem, 4vw, 1.42rem);
        line-height: 1.35;
    }

    .home-scan .title-line {
        width: min(26vw, 200px);
        height: 1px;
        margin: clamp(10px, 4.2vw, 30px) 0;
    }

    .home-scan .section-desc {
        max-width: 100%;
        font-size: clamp(.7rem, 2.1vw, .86rem);
        line-height: 1.65;
        letter-spacing: .04em;
    }

    .home-stories-copy {
        position: absolute;
        z-index: 2;
        padding: 0;
    }

    .home-stories .section-kicker {
        margin-bottom: .2rem;
        font-size: clamp(1.95rem, 7.2vw, 3.05rem);
        line-height: 1.05;
    }

    .home-stories .section-title {
        font-size: clamp(1rem, 4vw, 1.42rem);
        line-height: 1.35;
    }

    .home-stories .title-line {
        width: min(26vw, 200px);
        height: 1px;
        margin: clamp(10px, 4.2vw, 30px) 0;
    }

    .home-stories .section-desc {
        max-width: 90%;
        font-size: clamp(.72rem, 2.15vw, .9rem);
        line-height: 1.68;
        letter-spacing: .04em;
    }

    .home-stories .row > .col-lg-8 {
        position: absolute;
        right: 0;
        left: 0;
        width: 100%;
        margin: 0;
    }

    .spica-story-swiper {
        padding: 0;
    }

    .home-works[data-works-scroll] {
        --works-mobile-visual-height: calc(100vw * 2288 / 1000);
    }

    .works-heading {
        padding: 0 7.2%;
    }

    .works-list {
        margin: 0 5.2%;
    }

    .home-start-copy {
        position: absolute;
        top: 6.25%;
        left: 7.2%;
        width: min(62%, 340px);
        padding: 0;
    }

    .home-start .section-kicker {
        margin-bottom: .2rem;
        font-size: clamp(1.95rem, 7.15vw, 3.05rem);
        line-height: 1.05;
    }

    .home-start .section-title {
        font-size: clamp(1rem, 4vw, 1.42rem);
        line-height: 1.35;
    }

    .home-start .title-line {
        width: min(26vw, 200px);
        height: 1px;
        margin: clamp(10px, 4.2vw, 30px) 0;
    }

    .home-start .section-desc {
        max-width: 100%;
        font-size: clamp(.72rem, 2.18vw, .9rem);
        line-height: 1.68;
        letter-spacing: .04em;
    }

    @media (max-width: 575.98px) {
        /* -----------------------------------------------------
         * Shared Section Layout：575.98px 以下文案間距
         * ----------------------------------------------------- */
        .home-scan-copy,
        .home-stories-copy,
        .home-start-copy {
            left: 8%;
        }

        .home-scan-copy,
        .home-start-copy {
            width: 85%;
        }
    }

    /* =========================================================
     * Mobile Typography：共用字級套用
     * 字級數值集中於上方 :root，這裡只負責套用到各區塊。
     * ========================================================= */
    .hero-subtitle {
        font-size: var(--spica-m-hero-subtitle-font-size);
    }

    .home-scan .section-kicker,
    .home-stories .section-kicker,
    .works-heading .section-kicker,
    .home-start .section-kicker {
        font-size: var(--spica-m-section-en-font-size);
    }

    .home-scan .section-title,
    .home-stories .section-title,
    .works-heading .section-title,
    .home-start .section-title {
        font-size: var(--spica-m-section-zh-font-size);
    }

    .home-scan .section-desc,
    .home-stories .section-desc,
    .works-desc,
    .home-start .section-desc {
        font-size: var(--spica-m-section-desc-font-size);
        line-height: var(--spica-m-section-desc-line-height);
        letter-spacing: var(--spica-m-section-letter-spacing);
    }

    .story-card h3 {
        font-size: var(--spica-m-story-title-font-size);
    }

    .story-card ul li,
    .story-card p {
        font-size: var(--spica-m-story-text-font-size);
    }

    .works-item strong {
        font-size: var(--spica-m-works-step-title-font-size);
    }

    .works-item small {
        font-size: var(--spica-m-works-step-desc-font-size);
    }

    .why-mobile-title {
        font-size: var(--spica-m-why-title-font-size);
    }

    .why-item p {
        font-size: var(--spica-m-why-card-title-2-font-size);
    }

    .why-item h3 {
        font-size: var(--spica-m-why-card-title-font-size);
    }

    .why-item small {
        font-size: var(--spica-m-why-card-desc-font-size);
    }

    /* =========================================================
     * Customer Stories：手機版卡片與輪播區定位
     * ========================================================= */
    .home-stories-copy {
        top: var(--spica-m-stories-copy-top);
        left: var(--spica-m-stories-copy-left);
        right: 7.2%;
        width: auto;
    }

    .home-stories .row > .col-lg-8 {
        top: var(--spica-m-stories-card-top);
        bottom: auto;
        z-index: 3;
    }

    .spica-story-swiper {
        overflow: visible;
    }

    .spica-story-swiper .swiper-wrapper {
        align-items: flex-start;
    }

    .story-card,
    .story-card:hover,
    .story-card-active,
    .spica-story-swiper .swiper-slide-active .story-card,
    .spica-story-swiper .swiper-slide .story-card:hover {
        width: var(--spica-m-stories-card-width);
        margin: 0 auto;
        transform: none !important;
        aspect-ratio: 241 / 336;
        border-radius: 20px;
    }

    .story-avatar {
        /*background-position: 100% 75%;
        background-size: 67%;
        width: 100%;*/
        height: 100%;
    }

    .story-card-body {
        position: absolute;
        z-index: 2;
        padding: var(--spica-m-stories-card-body-padding);
        background: rgba(255, 255, 255, .62);
        -webkit-backdrop-filter: blur(3px) saturate(115%);
        backdrop-filter: blur(3px) saturate(115%);
        border-radius: 20px 20px 0 0;
        width: 100%;
        height: 35%;
        bottom: 0;
    }

    .story-card ul {
        margin-bottom: .4rem;
    }

    .story-card p {
        display: none;
    }

    @media (max-width: 575.98px) {
        /* -----------------------------------------------------
         * Customer Stories：575.98px 以下位置微調
         * ----------------------------------------------------- */
        .home-stories-copy {
            left: var(--spica-m-stories-copy-left);
        }

        .home-stories .row > .col-lg-8 {
            top: var(--spica-m-stories-card-top);
            bottom: auto;
        }
    }

    /* ---------------------------------------------------------
     * Customer Stories：Coverflow 狀態
     * 中央卡片完整顯示，左右卡片保留預覽與縮放效果。
     * --------------------------------------------------------- */
    .spica-story-swiper.is-story-coverflow .swiper-slide {
        width: var(--spica-m-stories-card-width);
        opacity: var(--spica-m-story-far-opacity);
        transform: translateY(var(--spica-m-story-far-y)) scale(var(--spica-m-story-far-scale)) !important;
        transition: var(--spica-m-story-slide-transition);
        z-index: 1;
    }

    .spica-story-swiper.is-story-coverflow .swiper-slide-prev {
        opacity: var(--spica-m-story-side-opacity);
        transform: translateX(var(--spica-m-story-prev-x)) translateY(var(--spica-m-story-side-y)) scale(var(--spica-m-story-side-scale)) !important;
        z-index: 2;
    }

    .spica-story-swiper.is-story-coverflow .swiper-slide-next {
        opacity: var(--spica-m-story-side-opacity);
        transform: translateX(var(--spica-m-story-next-x)) translateY(var(--spica-m-story-side-y)) scale(var(--spica-m-story-side-scale)) !important;
        z-index: 2;
    }

    .spica-story-swiper.is-story-coverflow .swiper-slide-active {
        opacity: 1;
        transform: translateY(var(--spica-m-story-active-y)) scale(var(--spica-m-story-active-scale)) !important;
        z-index: 4;
    }

    .spica-story-swiper.is-story-coverflow .story-card,
    .spica-story-swiper.is-story-coverflow .story-card:hover,
    .spica-story-swiper.is-story-coverflow .story-card-active,
    .spica-story-swiper.is-story-coverflow .swiper-slide-active .story-card,
    .spica-story-swiper.is-story-coverflow .swiper-slide .story-card:hover {
        width: var(--spica-m-stories-card-width);
    }

    /* =========================================================
     * How It Works：手機版 scroll 切換與步驟版面
     * ========================================================= */
    .home-works[data-works-scroll] .works-panel {
        padding-top: var(--spica-m-works-panel-top);
    }

    .works-heading {
        padding-right: var(--spica-m-works-side-space);
        padding-left: var(--spica-m-works-side-space);
    }

    .works-heading .section-kicker {
        margin-bottom: .22rem;
        line-height: 1.05;
    }

    .works-heading .section-title {
        margin-bottom: 0;
        line-height: 1.35;
    }

    .works-heading .section-title::after {
        content: "";
        display: block;
        width: var(--spica-m-works-title-line-width);
        height: 1px;
        margin: var(--spica-m-works-title-line-margin);
        background: currentColor;
        opacity: .72;
    }

    .works-desc {
        max-width: min(88%, 460px);
        margin-bottom: var(--spica-m-works-desc-margin-bottom);
    }

    .works-list {
        margin-right: var(--spica-m-works-side-space);
        margin-left: var(--spica-m-works-side-space);
    }

    .works-item {
        grid-template-columns: var(--spica-m-works-item-num-width) minmax(0, 1fr);
        min-height: 0;
    }

    .works-item-num,
    .works-item-content {
        padding-top: var(--spica-m-works-row-y);
        padding-bottom: var(--spica-m-works-row-y);
    }

    .works-item-num {
        align-items: center;
        padding-left: 0;
    }

    .works-item-num img {
        width: clamp(2rem, 7.6vw, 2.8rem);
    }

    .works-item-content {
        padding-right: 0;
    }

    .works-item hr {
        display: none;
    }

    .works-item small {
        height: 0;
    }

    .works-item:not(.active) .works-item-media {
        display: none;
    }

    .works-item.active {
        display: grid;
        grid-template-columns: var(--spica-m-works-item-num-width) minmax(0, 1fr);
        min-height: 0;
        background: transparent;
    }

    .works-item.active .works-item-content {
        display: contents;
        padding: 0;
    }

    .works-item.active .works-item-num {
        grid-column: 1;
        grid-row: 1;
        padding-top: var(--spica-m-works-row-y);
        padding-bottom: var(--spica-m-works-row-y);
    }

    .works-item.active strong {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        padding-top: var(--spica-m-works-row-y);
        padding-bottom: var(--spica-m-works-row-y);
    }

    .works-item.active .works-item-media {
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-height: 0;
        aspect-ratio: var(--spica-m-works-image-ratio);
    }

    .works-item.active small {
        grid-column: 1 / -1;
        grid-row: 3;
        height: auto;
        max-width: none;
        padding-right: calc(var(--spica-m-works-side-space) * .9);
        padding-left: calc(var(--spica-m-works-side-space) * .9);
        letter-spacing: var(--spica-m-section-letter-spacing, .04em);
    }

    .works-item.active .works-item-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* ---------------------------------------------------------
     * How It Works：展開／收合基礎狀態
     * --------------------------------------------------------- */
    .works-item-media,
    .works-item:not(.active) .works-item-media {
        max-height: 0;
    }

    .works-item.active .works-item-media {
        max-height: var(--spica-m-works-image-max-height);
        visibility: visible;
    }

    /* ---------------------------------------------------------
     * How It Works：高度動畫最終控制
     * 使用明確 height 與 max-height，避免 active 切換時跳動。
     * --------------------------------------------------------- */
    .works-item {
        overflow: hidden;
        transition: background .25s ease,
            border-color .25s ease;
    }

    .works-item-content,
    .works-item.active .works-item-content {
        display: contents;
        padding: 0;
    }

    .works-item strong,
    .works-item.active strong {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        padding-top: var(--spica-m-works-row-y);
        padding-bottom: var(--spica-m-works-row-y);
    }

    .works-item-media,
    .works-item:not(.active) .works-item-media,
    .works-item.active .works-item-media {
        position: relative;
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-height: 0;
        max-height: none;
        overflow: hidden;
        aspect-ratio: auto;
        transition: height var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            margin-top var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            opacity .42s ease,
            transform var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease);
    }

    .works-item-media,
    .works-item:not(.active) .works-item-media {
        height: 0;
        margin-top: 0;
        opacity: 0;
        visibility: visible;
        transform: translateY(-8px);
    }

    .works-item.active .works-item-media {
        height: var(--spica-m-works-active-image-height);
        margin-top: var(--spica-m-works-image-margin-top);
        opacity: 1;
        transform: translateY(0);
    }

    .works-item-media img,
    .works-item.active .works-item-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .works-item small,
    .works-item.active small {
        grid-column: 1 / -1;
        grid-row: 3;
        height: auto;
        max-width: none;
        overflow: hidden;
        transition: max-height var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            margin-top var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            padding-bottom var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease),
            opacity .42s ease,
            transform var(--spica-m-works-expand-duration) var(--spica-m-works-expand-ease);
    }

    .works-item small {
        max-height: 0;
        margin-top: 0;
        padding-right: calc(var(--spica-m-works-side-space) * .9);
        padding-bottom: 0;
        padding-left: calc(var(--spica-m-works-side-space) * .9);
        opacity: 0;
        transform: translateY(-8px);
    }

    .works-item.active small {
        max-height: var(--spica-m-works-active-desc-max-height);
        margin-top: var(--spica-m-works-active-desc-margin-top);
        padding-bottom: var(--spica-m-works-active-desc-padding-bottom);
        opacity: 1;
        transform: translateY(0);
    }

    /* =========================================================
     * Why SPICA：手機版 Swiper 與卡片基礎設定
     * ========================================================= */
    .why-item-hover p {
        margin-top: .45rem;
        margin-bottom: 0;
    }

    /* ---------------------------------------------------------
     * Why SPICA：標題區＋毛玻璃輪播區
     * 卡片旁側保留下一張預覽，active 卡片維持完整比例。
     * --------------------------------------------------------- */
    .home-why {
        aspect-ratio: 1000 / 1291;
        min-height: 0;
        padding: 0;
        color: #fff;
        background-image: var(--section-bg-mobile, var(--section-bg-pc, var(--section-bg)));
        overflow: hidden;
    }

    .home-why .container-fluid {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .why-mobile-title {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 var(--spica-m-why-title-area-height);
        height: var(--spica-m-why-title-area-height);
        margin: 0;
        color: #1c283b26;
        text-align: center;
        transform: translateY(calc(var(--spica-m-why-title-top) - 50%));
        pointer-events: none;
    }

    .why-panel {
        position: relative;
        inset: auto;
        flex: 0 0 var(--spica-m-why-swiper-area-height);
        width: 100%;
        height: var(--spica-m-why-swiper-area-height);
        overflow: hidden;
        border-radius: 0;
        transform: none;
        /* background-image: url("../../images/home/banner/mb/home-05-2.png");
        background-size: cover;
        background-position: center; */
    }

    .why-panel .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        height: 100%;
        margin: 0;
    }

    .why-panel .swiper-slide {
        flex: 0 0 var(--spica-m-why-slide-width);
        width: var(--spica-m-why-slide-width) !important;
        height: 100%;
        padding: 0;
        opacity: var(--spica-m-why-side-opacity);
        transform: scale(var(--spica-m-why-side-scale));
        transition: opacity .42s ease, transform .42s ease;
    }

    .why-panel .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }

    .why-item {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 0;
        padding: 0;
        background: transparent;
        overflow: visible;
    }

    .why-item::before,
    .why-item::after,
    .why-item:hover::before,
    .why-item:hover::after {
        opacity: 0;
        visibility: hidden;
    }

    .why-item-default,
    .why-item:hover .why-item-default {
        display: none;
    }

    .why-item-hover,
    .why-item:hover .why-item-hover {
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--spica-m-why-card-width);
        min-height: var(--spica-m-why-card-min-height);
        margin: 0 auto;
        padding: var(--spica-m-why-card-padding-y) var(--spica-m-why-card-padding-x);
        text-align: center;
        background: rgba(35, 51, 72, .66);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: var(--spica-m-why-card-radius);
        box-shadow: 0 24px 54px rgba(18, 29, 42, .35);
        transform: none;
        -webkit-backdrop-filter: blur(5px) saturate(60%);
        backdrop-filter: blur(5px) saturate(60%);
        aspect-ratio: 56/51;
    }

    .why-item-hover h3 {
        order: 1;
        margin-bottom: .45rem;
    }

    .why-item-hover p {
        order: 2;
        margin: 0;
    }

    .why-item-hover hr {
        order: 3;
        width: 38px;
        margin: 1.3rem auto;
    }

    .why-item-hover small {
        order: 4;
        max-width: none;
    }

    /* =========================================================
     * Floating Survey Button：手機版固定「立即檢測」按鈕
     * 顯示時機由 home.js 的 surveyShowOffset 控制。
     * ========================================================= */
    .spica-home .spica-mobile-survey-btn {
        min-height: 0;
        padding: 0 24px;
        line-height: 1;
        background-image: none !important;
        border: 1px solid rgba(255, 255, 255, .18);
        aspect-ratio: auto;
        visibility: hidden;
    }

    .spica-home .spica-mobile-survey-btn.is-visible {
        visibility: visible;
    }

    .spica-home .spica-mobile-survey-btn:hover,
    .spica-home .spica-mobile-survey-btn:focus {
        background-image: none !important;
    }

    .spica-home .spica-mobile-survey-btn .visually-hidden {
        position: static !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    /* ---------------------------------------------------------
     * Floating Survey Button：毛玻璃外觀與文字樣式
     * --------------------------------------------------------- */
    .spica-home .spica-mobile-survey-btn {
        bottom: var(--spica-m-survey-btn-bottom);
        width: var(--spica-m-survey-btn-width);
        height: var(--spica-m-survey-btn-height);
        color: var(--spica-m-survey-btn-color);
        font-size: var(--spica-m-survey-btn-font-size);
        font-weight: 500;
        letter-spacing: .04em;
        background: var(--spica-m-survey-btn-bg) !important;
        border-color: rgba(255, 255, 255, .16);
        border-radius: var(--spica-m-survey-btn-radius);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24),
            inset 0 -1px 0 rgba(20, 31, 45, .08),
            0 10px 28px rgba(31, 43, 58, .18);
        -webkit-backdrop-filter: blur(14px) saturate(125%);
        backdrop-filter: blur(14px) saturate(125%);
    }

    .spica-home .spica-mobile-survey-btn:hover,
    .spica-home .spica-mobile-survey-btn:focus {
        color: var(--spica-m-survey-btn-color);
        background: var(--spica-m-survey-btn-bg) !important;
    }

    /* ---------------------------------------------------------
     * Floating Survey Button：固定位置與顯示動畫
     * --------------------------------------------------------- */
    .spica-home .spica-mobile-survey-btn {
        left: 50%;
        right: auto;
        max-width: calc(100% - 16px);
        transform: translate3d(-50%, 22px, 0);
        will-change: transform, opacity;
    }

    .spica-home .spica-mobile-survey-btn.is-visible,
    .spica-home .spica-mobile-survey-btn:hover,
    .spica-home .spica-mobile-survey-btn:focus {
        transform: translate3d(-50%, 0, 0);
    }

    /* ---------------------------------------------------------
     * Footer：預留懸浮按鈕安全空間
     * 僅增加首頁 footer 內層底部間距，避免隱私權政策被遮擋。
     * --------------------------------------------------------- */
    .spica-home .site-footer__inner {
        padding-bottom: calc(
            var(--spica-m-footer-padding-bottom)
            + var(--spica-m-survey-btn-height)
            + var(--spica-m-survey-btn-bottom)
            + var(--spica-m-survey-footer-gap)
        );
    }
}
