/*
 * 96開獎網 新版視覺 — 手機版舊版面（app_* / header_* 等）的覆寫
 * 手機版頁面以 0.5 倍縮放呈現（版面寬約 780px），所以這裡的尺寸都是「實際看到的 2 倍」。
 */
body[data-dv="mobile"] { background: var(--bg); color: var(--text); }
body[data-dv="mobile"] .container { background: var(--bg); }

/* ---------- 頁首 ---------- */
body[data-dv="mobile"] .app_public_header .header_block {
  background: linear-gradient(180deg, #ffa133 0%, var(--brand) 100%); box-shadow: 0 2px 0 rgba(0, 0, 0, .05);
}
body[data-dv="mobile"] .app_public_header .header_name { font-weight: 800; letter-spacing: .02em; }
body[data-dv="mobile"] .app_public_header .header_allName { border-radius: 0 0 24px 24px; box-shadow: 0 16px 40px rgba(16, 24, 40, .18); overflow: hidden; }
body[data-dv="mobile"] .app_public_header .header_allName ul li a { border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--text); }
body[data-dv="mobile"] .app_public_header .header_allName ul li a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
body[data-dv="mobile"] .app_public_header .header_info { background: var(--brand-50); border-bottom: 2px solid var(--brand-100); }
body[data-dv="mobile"] .app_public_header .header_info .header_text, body[data-dv="mobile"] .app_public_header .header_info .header_text i { color: #8a5200; font-style: normal; }
body[data-dv="mobile"] .app_public_header .header_info .header_text b { color: var(--brand-700); font-family: var(--font-num); }

/* 分頁列 */
body[data-dv="mobile"] .header_select { background: #fff; border-bottom: 2px solid var(--line); box-shadow: 0 4px 10px rgba(16, 24, 40, .04); }
body[data-dv="mobile"] .header_select .app_swiperSelectBlock table td span { color: var(--muted); font-weight: 500; }
body[data-dv="mobile"] .header_select .app_swiperSelectBlock table td span a { color: inherit; text-decoration: none; }
body[data-dv="mobile"] .header_select .app_swiperSelectBlock table td.active span { color: var(--brand-700); font-weight: 800; border-bottom-color: var(--brand); }
body[data-dv="mobile"] .header_selectList { box-shadow: 0 16px 40px rgba(16, 24, 40, .16); }
body[data-dv="mobile"] .header_selectList ul li a { border-radius: 16px; }

/* ---------- 內容 ---------- */
body[data-dv="mobile"] .app_index_Scope { background: none; }
body[data-dv="mobile"] .app_public_tableBlock { background: #fff; }
body[data-dv="mobile"] table { font-family: var(--font); }
body[data-dv="mobile"] .lot-table td, body[data-dv="mobile"] .lot-table th { border-color: var(--line); }
body[data-dv="mobile"] .history_view_table_tit td, body[data-dv="mobile"] .app_public_tableBlock table thead td, body[data-dv="mobile"] .app_public_tableBlock table th { background: #f7f8fa; color: var(--ink); font-weight: 700; }
body[data-dv="mobile"] .notice-ref { margin: 16px 20px !important; padding: 16px 22px; background: #f6f7f9; border-radius: 16px; color: var(--muted) !important; }
body[data-dv="mobile"] input[type="text"], body[data-dv="mobile"] input[type="search"], body[data-dv="mobile"] select { border: 2px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--text); }

/* ---------- 頁尾 ---------- */
body[data-dv="mobile"] footer { background: none; }
body[data-dv="mobile"] .app_footerSection { background: #18212b; padding: 36px 24px 44px; margin-top: 32px; box-sizing: border-box; width: 100%; }
body[data-dv="mobile"] .app_footerSection_btns { text-align: center; font-size: 0; height: auto; }
body[data-dv="mobile"] .app_footerSection_btns a.touch, body[data-dv="mobile"] .app_footerSection_btns span.noTouch {
  display: inline-block; width: auto; height: auto; margin: 0 8px; padding: 14px 34px; border-radius: 100px; background: none; border: 2px solid #3a4756; font-size: 26px; line-height: 1.3; color: #e7ebf0; text-decoration: none;
}
body[data-dv="mobile"] .app_footerSection_btns span.noTouch { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
body[data-dv="mobile"] .app_footerSection_btns span span, body[data-dv="mobile"] .app_footerSection_btns a span { display: inline; padding: 0; margin: 0; background: none; border: 0; color: inherit; font-size: 26px; line-height: 1.3; width: auto; height: auto; float: none; }
body[data-dv="mobile"] .app_footerSection_btns i { display: none; }
body[data-dv="mobile"] .app_footerSection_remarks { color: #aab4c0; font-size: 23px; line-height: 1.6; padding: 26px 8px 0; text-align: center; }
body[data-dv="mobile"] .app_footerSection_remarks a { color: #ffc36b; }

/* 舊樣式禁止選取文字（地址、號碼無法複製），新版一律允許 */
body[data-dv="mobile"], body[data-dv="mobile"] * { -webkit-user-select: text; user-select: text; }
body[data-dv="mobile"] button, body[data-dv="mobile"] .ui-btn, body[data-dv="mobile"] .ui-chip, body[data-dv="mobile"] .ui-tabs a { -webkit-user-select: none; user-select: none; }

/* 內容區改用 ui-table 之後，不要再被舊的 app_public_tableBlock 表格規則（固定高度、奇數列灰底）壓過 */
body[data-dv="mobile"] .app_public_tableBlock table.ui-table { width: 100%; }
body[data-dv="mobile"] .app_public_tableBlock table.ui-table th,
body[data-dv="mobile"] .app_public_tableBlock table.ui-table td { height: auto; line-height: 1.45; font-size: calc(var(--u) * 13.5); }
body[data-dv="mobile"] .app_public_tableBlock table.ui-table tr:nth-child(odd) td { background: none; }
body[data-dv="mobile"] .app_public_tableBlock table.ui-table.is-striped tbody tr:nth-child(even) td { background: #fafbfc; }
/* 固定頁首的橘色列與倒數列之間不要透出後面的內容 */
body[data-dv="mobile"] .app_headerSection.app_public_header { background: #fff6e8; }
