/* #region - SPLASH - */
.splash {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sp__bar-wrap {
    width: 75cqw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3cqw;
}
.sp__bar-bg {
    width: 100%;
    height: 0.5cqw;
    background: #ddd;
    overflow: hidden;
}
.sp__bar-fill {
    height: 0.5cqw;
    width: 0%;
    background: #3a3a3a;
    transition: width 0.08s linear;
}
.sp__pct {
    font-size: 3cqw;
    letter-spacing: 1cqw;
    color: #3a3a3a;
}
/* #endregion */

/* #region - PAGE - */
.pg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    backface-visibility: hidden;
    opacity: 1;
    pointer-events: none;
}
/* use-transition：啟用 page 切換動畫 */
.pg.use-transition {
    transition:
        transform 0.44s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.44s ease;
}
/* is-active：表示 page 已進入畫面，可被顯示 */
.pg.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
/* is-current：表示目前可互動的 page */
.pg.is-current {
    pointer-events: auto;
}
.pg__wrapper {
    width: 100%;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: clip;
}
/* #endregion */

/* #region - PAGE -- ACTION - */
.pg.pg-action__slide-left:not(.is-active) {
    transform: translate3d(100cqw, 0, 0);
}
.pg.pg-action__slide-right:not(.is-active) {
    transform: translate3d(-100cqw, 0, 0);
}
.pg.pg-action__slide-up:not(.is-active) {
    transform: translate3d(0, 100cqh, 0);
}
.pg.pg-action__slide-down:not(.is-active) {
    transform: translate3d(0, -100cqh, 0);
}
.pg.pg-action__fade:not(.is-active) {
    opacity: 0;
    transform: translate3d(0, 0, 0);
}
/* #endregion */

/* #region - BUTTON - */
.btn {
    transition: all 0.1s ease;
    border: none;
    cursor: pointer;
    /* 移除連結或按鈕可能帶出的底線 */
    text-decoration: none;
    /* 避免長按或拖曳時反白選取 */
    user-select: none;
    -webkit-user-select: none;
    /* 移除行動裝置點擊高亮 */
    -webkit-tap-highlight-color: transparent;

    &:hover {
        filter: brightness(1.02);
    }

    &:active {
        /* 按下時提供輕微回饋 */
        transform: translateY(0.2cqw);
        filter: brightness(0.95);
    }
}
/* #endregion */

/* #region - EXHIBIT -- POSTER - */
/* ── 海報區域 ── */
.poster-area {
    width: 80cqw;
    flex: 1 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: visible;

    &:has(.poster-img.show) {
        background: transparent;
        align-items: start;
        justify-content: start;
        transform: translateY(-0.1cqw);
    }
}

.poster-area .loader-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.poster-area .progress-bar {
    width: 75%;
    height: 0.5cqw;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
    border-radius: 0.8cqw;

    &::after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: -50%;
        width: 50%;
        height: 100%;
        background: #3a3a3a;
        animation: loading-action 1.5s infinite linear;
    }
}

@keyframes loading-action {
    from {
        left: -50%;
    }

    to {
        left: 100%;
    }
}

.poster-area .poster-img {
    width: 100%;
    max-height: 0;
    display: block;
    opacity: 0;
    transform: translateY(2cqw);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.poster-area .poster-img.show {
    opacity: 1;
    max-height: none;
    transform: translateY(0);
}
/* #endregion */

/* #region - EXHIBIT -- BUTTON GROUP - */
.exhibit__btn-group {
    display: flex;
    gap: 0;
    transition: all 0.4s ease;

    .btn-share {
        width: 0;
        opacity: 0;
        overflow: hidden;
        transition: width 0.6s ease, padding 0.6s ease, opacity 0.4s ease;
        pointer-events: none;
    }
}

.exhibit__btn-group.show-share {
    gap: 3cqw;

    .btn-share {
        width: auto;
        opacity: 1;
        pointer-events: auto;
    }
}
/* #endregion */

/* #region - FEEDBACK -- FORM STEP - */
/* ── 表單分頁 ── */
.step {
    flex-direction: column;
    padding: 5cqw 0;
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.step.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    animation: fadeSlide .3s ease;
}

.fb__btn-group .btn[hidden] {
    display: none !important;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* #endregion */

/* #region - FEEDBACK -- FORM - */
/* ── 表單框架 ── */
form {
    display: flex;
    flex-direction: column;
    gap: 5cqw;
}

/* ── 表單輸入框 ── */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 1.5cqw;
    color: #3a3a3a;
    .label {
        font-size: 2.5cqw;
    }

    .input {
        height: 8cqw;
        background-color: #fff;
        padding: 0 2cqw;
        font-size: 3cqw;
    }

    textarea.input {
        /* height: auto !important;
        min-height: 67.5cqw; */
        padding: 4cqw;
        line-height: 1.5;
        resize: none;
    }
}

/* 清除焦點框線 */
input:focus,
textarea:focus {
    outline: none;
}

/* 清除自動填入樣式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #595757 !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
}
/* #endregion */
