/* =========================================================
   TIE參展專案 － 手機網頁
   設計稿基準：1080 x 1920
   --px 由 general.js 依容器寬度計算（1 設計像素 = var(--px)）
   ========================================================= */
:root {
    --px: 0.37037px;
}

html, body {

    /* overflow: hidden; */
    font-family: 'Noto Sans TC', 'Helvetica', 'Arial', '微軟正黑體', sans-serif;
    -webkit-touch-action: none;
    -moz-touch-action: none;
    -o-touch-action: none;
    touch-action: none;
}

.ui-container {
    display: none;
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -o-user-select: text;
    user-select: text;
}

/* ---------- Loading ---------- */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#loading-overlay.active {
    display: flex;
    flex-direction: column-reverse;
}

#loading-bar-wrap {
    width: 60%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

#loading-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.2s ease-out;
}

#loading-text {
    color: #fff;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ---------- Landscape alert ---------- */
#landscape-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.landscape #landscape-alert {
    display: flex;
}

/* ---------- Step1（暫時：分欄顯示 API 資料以確認網址參數綁定） ---------- */
#p1 {
    color: #fff;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
}

#p1 .field {
    margin-bottom: 20px;
}

#p1 .field-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

#p1 .field-value {
    font-size: 18px;
    line-height: 1.5;
    word-break: break-all;
}

#p1 .empty {
    margin-top: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
