@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap");

@font-face {
    font-family: "JF-Jinxuan-Book";
    src: url(../fonts/jf-jinxuan-book.otf);
}

@font-face {
    font-family: "Butler_Regular";
    src: url(../fonts/Butler_Regular.otf);
}

[data-aos="opacity-down"] {
    opacity: 1;
    clip-path: inset(0 0 100% 0);
    /* 初始状态下完全隐藏 */
}

[data-aos="opacity-down"].aos-animate {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    /* 显示全部图片 */
}



body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    --vw-base: calc(100vw / 1920);
    /* 防止 iOS 橫屏時字體變大 */
    -webkit-text-size-adjust: none;
    /* 防止某些瀏覽器自動縮放字體 */
    text-size-adjust: none;
    background-color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

button,
input,
textarea,
select,
option {
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    border-radius: 0;
    -moz-appearance: none;
    appearance: none;
    outline: none;

}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img,
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    width: 100%;
    height: auto;
    position: relative;
    /* background-color: #000; */
    height: calc(2620*var(--vw-base));
}

.back-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* z-index: -1; */
}

.m1 {
    position: relative;
    width: 100%;
    height: calc(1080*var(--vw-base));
    /* 白色背景開始 */
    overflow: hidden;
}

.m1-bg {
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}

.m1-title {
    position: absolute;
    left: 50%;
    top: calc(60*var(--vw-base));
    width: 100%;
    transform: translateX(-50%);
}

.m1-title .en {
    position: relative;
    text-align: center;
    font-size: calc(21*var(--vw-base));
    font-family: "Butler_Regular", serif;
    line-height: 1.4em;
    color: #ffffff;
    letter-spacing: 1.5em;
    padding-left: 2em;
    perspective: 1000px;
    /* 增加 3D 空間透視感 (Perspective) */
}

.m1-title .en span {
    display: inline-block;
}

.m1-title .zh {
    position: relative;
    text-align: center;
    font-size: calc(22*var(--vw-base));
    font-family: "JF-Jinxuan-Book", "Noto Sans TC", sans-serif;
    color: #ffffff;
    letter-spacing: 0.2em;
    margin-top: calc(8*var(--vw-base));
    padding-left: 0.8em;
}

.m1-txt {
    position: absolute;
    left: calc(427*var(--vw-base));
    top: calc(709*var(--vw-base));
    width: calc(1077*var(--vw-base));
    height: calc(151*var(--vw-base));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m1-txt img {
    object-fit: contain;
}

.m1-txt .txt-l {
    position: relative;
    width: calc(339*var(--vw-base));
    height: auto;
}

.m1-txt .txt-r {
    position: relative;
    width: calc(745*var(--vw-base));
    height: 100%;
}

.m1-txt .txt-r .txt-pic {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.m2 {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m2-info {
    position: relative;
    margin-top: calc(100*var(--vw-base));
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m2-info img {
    object-fit: contain;
}


.m2-info .pin {
    position: relative;
    width: calc(237*var(--vw-base));
    height: calc(51*var(--vw-base));
}

.m2-info .info-txt {
    position: relative;
    margin-top: calc(84*var(--vw-base));
    width: calc(560*var(--vw-base));
    height: calc(86*var(--vw-base));
}

.m2-info .map {
    position: relative;
    margin-top: calc(80*var(--vw-base));
    display: flex;
    align-items: center;
    gap: calc(14*var(--vw-base));
    font-family: "JF-Jinxuan-Book", "Noto Sans TC", sans-serif;
    font-size: calc(22*var(--vw-base));
    line-height: calc(30*var(--vw-base));
    letter-spacing: 0.15em;
    color: #ffffff;
}

.m2-info .map .icon {
    position: relative;
    width: calc(31*var(--vw-base));
    height: calc(43*var(--vw-base));
}

.m2-info .phone {
    position: relative;
    margin-top: calc(60*var(--vw-base));
    display: flex;
    align-items: center;
    gap: calc(14*var(--vw-base));
    font-family: "Butler_Regular", "Noto Sans TC", sans-serif;
    font-size: calc(22*var(--vw-base));
    line-height: calc(30*var(--vw-base));
    letter-spacing: 0.15em;
    color: #ffffff;

}

.m2-info .phone .icon {
    position: relative;
    width: calc(43*var(--vw-base));
    height: calc(43*var(--vw-base));
}

.form {
    width: calc(580*var(--vw-base));
    height: auto;
    position: relative;
    margin: calc(190*var(--vw-base)) 0 0vw 0;
    z-index: 20;
}

/* ==========================================================================
   表單樣式 (Form Styling) - 依設計樣式重新實作
   ========================================================================== */

.form form {
    width: 100%;
}

/* 每個表單欄位的外層容器 */
.form-group {
    display: flex;
    align-items: center;
    gap: calc(15 * var(--vw-base));
    /* 標題與輸入框間距為 10 */
    margin-bottom: calc(30 * var(--vw-base));
    padding-bottom: calc(10 * var(--vw-base));
    border-bottom: 1.5px solid rgba(187, 231, 243, 0.3);
    /* 淡灰藍色底線 */
}

/* 房型需求不需要底線 */
.form-group.room-group {
    border-bottom: none;
    align-items: flex-start;
    margin-bottom: calc(40 * var(--vw-base));
    padding-bottom: 0;
}

/* 英文標題樣式 (NAME, NUMBER, EMAIL, ROOM REQUIREMENT) */
.form .input-title {
    width: calc(140 * var(--vw-base));
    font-family: "Butler_Regular", "Butler", serif;
    font-size: calc(17.61 * var(--vw-base));
    color: #bbe7f3;
    line-height: 1.2;
    text-transform: uppercase;
    flex-shrink: 0;

    /* 改用 Flexbox (彈性盒子佈局) 來達到跨平台均勻兩端分散對齊 */
    display: flex;
    justify-content: space-between;
    /* 讓子元素在水平方向兩端分散對齊 */
}

/* 針對多行組（如 ROOM REQUIREMENT）設定縱向排列與間距 */
.form .form-group.room-group .input-title {
    flex-direction: column;
    /* 垂直排列 */
    align-items: stretch;
    gap: calc(4 * var(--vw-base));
    /* 設定兩行標題之間的行距 */
}

/* 每一行文字的兩端對齊容器 */
.form .input-title .title-row {
    display: flex;
    justify-content: space-between;
    /* 讓該行內的字母進行兩端對齊 */
    width: 100%;
}

.form .input-title span {
    letter-spacing: 0em;
    /* 歸零字元間距，由 Flexbox 自動計算 */
}

/* 姓名、電話、信箱的輸入框容器 */
.input-wrap {
    flex: 1;
}

.input-wrap input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: "JF-Jinxuan-Book", "Noto Sans TC", sans-serif;
    font-size: calc(24 * var(--vw-base));
    /* 大小改為 24 */
    color: rgba(255, 255, 255, 0.8);
    /* 全白字改用 0.8 透明度 */
    font-weight: 300;
    /* 設定較細的字體權重 */
    letter-spacing: 0.1em;
    outline: none;
    box-sizing: border-box;
    padding: 0;
    height: calc(32 * var(--vw-base));
    line-height: calc(32 * var(--vw-base));
}

/* 提示文字 (Placeholder) 樣式 */
.form input::placeholder {
    font-family: "JF-Jinxuan-Book", "Noto Sans TC", sans-serif;
    font-size: calc(24 * var(--vw-base));
    /* 大小改為 24 */
    color: #cccccc8f !important;
    font-weight: 300;
    /* 設定較細的字體權重 */
    /* 使用淺灰色 */
    letter-spacing: 0.1em;
    text-indent: 0.1em;
}

/* Chrome/Safari/Opera autofill 修正 */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus,
.form input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* 房型需求 checkbox 組 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: calc(40 * var(--vw-base));
    flex-wrap: wrap;
    padding-top: calc(5 * var(--vw-base));
}

/* 通用自訂 checkbox 樣式 */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: calc(24 * var(--vw-base));
    height: calc(24 * var(--vw-base));
    background: url("../img/check.png") no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    margin: 0;
    margin-right: calc(10 * var(--vw-base));
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked,
.checkbox-label input[type="radio"]:checked {
    background-image: url("../img/checked.png");
}

.checkbox-label span {
    font-family: "JF-Jinxuan-Book", "Noto Sans TC", sans-serif;
    font-size: calc(24 * var(--vw-base));
    /* 大小改為 24 */
    color: rgba(255, 255, 255, 0.8);
    /* 全白字改用 0.8 透明度 */
    font-weight: 300;
    /* 設定較細的字體權重 */
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    line-height: 1;
}

/* 個資聲明容器 */
.agree-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: calc(40 * var(--vw-base));
    margin-bottom: calc(45 * var(--vw-base));
}

.agree-group .checkbox-label span {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
}

.agree-group .openTxtBtn {
    font-family: "JF-Jinxuan-Book", "Noto Sans TC", sans-serif;
    font-size: calc(24 * var(--vw-base));
    /* 大小改為 24 */
    color: rgba(255, 255, 255, 0.8);
    /* 全白字改用 0.8 透明度 */
    font-weight: 300;
    /* 設定較細的字體權重 */
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    text-decoration: underline;
    text-underline-offset: calc(15 * var(--vw-base));
    /* 將底線再往下移 3vw-base 距離 */
    cursor: pointer;
    margin-left: calc(10 * var(--vw-base));
    /* 與前面文字保持適當的間隔 */
}

/* 送出按鈕樣式 */
.submit-wrap {
    width: 100%;
}

.submit-wrap button {
    width: 100%;
    height: calc(60 * var(--vw-base));
    background-color: #ffffff;
    color: #3d7f9c;
    /* submit 的字改為 3d7f9c */
    border: none;
    font-family: "Butler_Regular", "Butler", serif;
    font-size: calc(25 * var(--vw-base));
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    /* 置中補償 */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.submit-wrap button:hover {
    background-color: #bbe7f3;
    color: #0c2b3a;
    /* hover 時背景變成 bbe7f3，字體使用深藍色 */
}

.build-info {
    position: absolute;
    left: 50%;
    bottom: calc(30*var(--vw-base));
    width: calc(1472*var(--vw-base));
    height: calc(16*var(--vw-base));
    transform: translateX(-50%);
}










/*同意書照片預覽*/

.black {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 11111;
    font-family: "微軟正黑體";
}

.closeBtn {
    width: 30px;
    position: absolute;
    right: 5%;
    top: 4%;
}

.infoWrap {
    width: 100%;
    margin: 0 auto;
    max-width: 78%;
    position: relative;
    height: 100vh;
    overflow: auto;
}

.infoWrap ul {
    list-style: none;
    font-size: calc(24 * var(--vw-base));
    padding-inline-start: 3vw;
    line-height: 150%;
}

.infoWrap ul>li>ul {
    list-style: none;
    font-size: calc(24 * var(--vw-base));
    padding-inline-start: 1vw;
}

.li1::before {
    content: "一、";
    position: absolute;
    left: 0vw;
}

.li2::before {
    content: "二、";
    position: absolute;
    left: 0vw;
}

.li3::before {
    content: "三、";
    position: absolute;
    left: 0vw;
}

.li4::before {
    content: "四、";
    position: absolute;
    left: 0vw;
}

.li5::before {
    content: "五、";
    position: absolute;
    left: 0vw;
}

.li1-li::before {
    content: "（１）";
    position: absolute;
    left: 0vw;
}

.li2-li::before {
    content: "（２）";
    position: absolute;
    left: 0vw;
}

.li3-li::before {
    content: "（３）";
    position: absolute;
    left: 0vw;
}

.li4-li::before {
    content: "（４）";
    position: absolute;
    left: 0vw;
}

.infoBox {
    width: 100%;
    height: calc(100% - 200px);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow-y: auto;
    color: #fff;
    text-align: left;
}

.infoBox h3 {
    font-size: calc(32 * var(--vw-base));
    line-height: 150%;
    margin-bottom: 1vw;
    text-align: center;
}

.infoBox h4 {
    font-size: calc(26 * var(--vw-base));
    line-height: 130%;
    margin: 1vw 0;
}

.infoBox h5 {
    font-size: calc(26 * var(--vw-base));
    line-height: 130%;
    margin-bottom: 1vw;
}

.infoBox p {
    font-size: calc(26 * var(--vw-base));
    line-height: 200%;
}