/* 網路銀行樣式。主色由 window.BANK.theme 以 CSS 變數 --p --pd --ac --soft 注入。
   外觀：body.skin-bot（臺銀式：白頁首＋酒紅主選單＋左側選單）、body.skin-cube（卡片式：簡潔頁首＋卡片）。 */
:root { --p:#9b0a35; --pd:#6f0626; --ac:#d9304f; --soft:#fbeaee; --bg:#f2f4f6; --tx:#1f2933; --mu:#667085; --ln:#e3e7ec; --ok:#12805c; --wait:#b7791f; --bad:#c0392b; --fs:15px; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--tx); font:var(--fs)/1.6 "Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif; overflow-x:hidden; }
a { color:var(--p); }
h1,h2,h3,p { margin:0; }
h2 { font-size:20px; } h3 { font-size:16px; margin-bottom:8px; }
.wrap { width:100%; max-width:1200px; margin:0 auto; padding:0 16px; }
.pt { margin:14px 0 12px; }
.muted { color:var(--mu); } .small { font-size:13px; } .ctr { text-align:center; } .red { color:#c0152f; }
.mono { font-family:ui-monospace,Consolas,monospace; font-size:12px; word-break:break-all; opacity:.85; }
.dis { cursor:not-allowed; user-select:none; }
svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
svg.logo, svg.donut { stroke:none; }

.demo-bar { background:#fff8e1; color:#8a6100; font-size:12px; text-align:center; padding:4px 8px; border-bottom:1px solid #f1e0a8; }
.top { background:#fff; }
.top-in { display:flex; align-items:center; gap:10px 16px; padding-top:8px; padding-bottom:8px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--tx); text-decoration:none; min-width:0; }
.brand .logo { width:40px; height:40px; flex:none; }
.bn b { display:block; font-size:20px; line-height:1.15; letter-spacing:3px; font-family:"Noto Serif TC","PMingLiU","Songti TC",serif; white-space:nowrap; }
.bn small { display:block; font-size:10px; letter-spacing:1.5px; font-family:Georgia,"Times New Roman",serif; font-weight:700; white-space:nowrap; }
.vl { width:2px; height:34px; background:var(--p); flex:none; }
.bt { font-size:22px; letter-spacing:2px; color:var(--p); white-space:nowrap; }
.logout { width:auto; margin:0; padding:7px 18px; font-size:14px; border-radius:4px; white-space:nowrap; }
.burger { display:none; width:40px; height:40px; padding:6px; margin:0; background:transparent; border:0; color:var(--p); flex:none; }
.burger:hover:not(:disabled) { background:transparent; color:var(--pd); }
.burger svg { width:28px; height:28px; }
.infobar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:4px 14px; padding:10px 0; min-height:44px; }
.crumb { font-size:16px; color:var(--mu); }
.who { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; font-size:13px; margin-left:auto; }
.who .cd b { font-variant-numeric:tabular-nums; }

/* ---------- 共用元件 ---------- */
main { padding-bottom:24px; min-height:50vh; }
.card { background:#fff; border:1px solid var(--ln); border-radius:12px; padding:16px; margin-bottom:12px; }
.card.flush { padding:0; overflow:hidden; } .pad { padding:14px 16px 0; }
.grid { display:grid; grid-template-columns:1fr; gap:0 12px; }
.row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:6px 0; }
.row h3 { margin:0; } .row .k { color:var(--mu); font-size:14px; } .row .v { text-align:right; min-width:0; word-break:break-all; }
.big2 { font-size:18px; font-weight:700; }
.card .btn, .card button { margin-top:12px; }
.card .row + .btn { margin-top:8px; }
button, .btn { display:block; width:100%; text-align:center; font:inherit; font-weight:600; background:var(--p); color:#fff; border:1px solid var(--p); border-radius:6px; padding:11px 16px; cursor:pointer; text-decoration:none; }
button:hover:not(:disabled), .btn:hover { background:var(--pd); }
button:disabled { opacity:.5; cursor:not-allowed; }
button.ghost { background:transparent; color:var(--p); border:1px solid var(--p); }
button.ghost:hover:not(:disabled) { background:var(--soft); }
.btn { width:auto; display:inline-block; }
.card > button, .card > input + button { margin-top:14px; }
.card > button + button { margin-top:8px; }
label { display:block; font-size:13px; color:var(--mu); margin:12px 0 4px; }
input[type=text], input:not([type]), input[type=tel], input#name, input#phone, input#otp { width:100%; font:inherit; font-size:16px; padding:11px 12px; border:1px solid #cbd2d9; border-radius:6px; background:#fff; color:var(--tx); }
input:focus { outline:2px solid var(--p); outline-offset:0; border-color:var(--p); }
input#otp { letter-spacing:6px; text-align:center; font-size:22px; }
.badge { display:inline-block; font-size:12px; line-height:1; padding:4px 9px; border-radius:99px; background:#eef0f3; color:var(--mu); font-weight:600; white-space:nowrap; }
.badge.ok { background:#e2f4ec; color:var(--ok); } .badge.wait { background:#fdf1dc; color:var(--wait); } .badge.bad { background:#fbe4e1; color:var(--bad); }
.warn,.err,.okbox,.demo-note { border-radius:6px; padding:10px 12px; margin:10px 0; font-size:14px; }
.warn { background:#fff6e0; color:#7a5300; border:1px solid #f1dca0; }
.err { background:#fdecea; color:#a1291d; border:1px solid #f5c2bc; }
.okbox { background:#e6f5ee; color:#0e6b4b; border:1px solid #bfe3d2; }
.demo-note { background:var(--soft); color:var(--pd); border:1px dashed var(--p); }
.warn .btn { margin-top:8px; }
a.ext { font-size:13px; }
.avail { display:flex; align-items:baseline; gap:6px; margin:4px 0 8px; }
.avail span { color:var(--mu); font-size:14px; } .avail b { font-size:26px; color:var(--p); font-variant-numeric:tabular-nums; }
.bar { height:10px; background:#e8ecf0; border-radius:99px; overflow:hidden; }
.bar i { display:block; height:100%; background:var(--p); border-radius:99px; transition:width .4s; }
.bar.hot i { background:var(--bad); }
.kv3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0 6px; }
.kv3 small { display:block; color:var(--mu); font-size:12px; } .kv3 b { font-size:15px; font-variant-numeric:tabular-nums; word-break:break-all; }
.twocol { display:grid; grid-template-columns:1fr; gap:0 12px; }

/* 步驟條 */
.stepper { list-style:none; display:flex; margin:0 0 14px; padding:0; }
.stepper li { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:12px; color:var(--mu); position:relative; text-align:center; }
.stepper li::before { content:""; position:absolute; top:13px; left:-50%; width:100%; height:2px; background:var(--ln); z-index:0; }
.stepper li:first-child::before { display:none; }
.stepper i { position:relative; z-index:1; width:28px; height:28px; border-radius:50%; background:#fff; border:2px solid var(--ln); display:grid; place-items:center; font-style:normal; font-weight:700; font-size:13px; }
.stepper li.cur { color:var(--p); font-weight:700; } .stepper li.cur i { border-color:var(--p); color:var(--p); }
.stepper li.done i { background:var(--p); border-color:var(--p); color:#fff; } .stepper li.done::before, .stepper li.cur::before { background:var(--p); }

/* 憑證卡、產品、條款 */
.idcard { background:linear-gradient(135deg,var(--p),var(--pd)); color:#fff; border-radius:14px; padding:16px; margin:12px 0; max-width:420px; border-top:4px solid var(--ac); }
.idcard-h { display:flex; justify-content:space-between; gap:8px; font-size:14px; } .idcard-h span { opacity:.85; }
.idcard-no { font-size:30px; font-weight:700; margin:14px 0; letter-spacing:2px; }
.idcard-f { display:flex; gap:28px; } .idcard-f small { display:block; opacity:.75; font-size:11px; } .idcard-f b { font-size:15px; }
.idcard-l { margin-top:10px; } .idcard-l a { color:#ffe9a8; }
.product { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; background:linear-gradient(135deg,var(--pd),var(--p)); color:#fff; border-radius:12px; padding:18px; margin:0 0 12px; border-bottom:4px solid var(--ac); }
.product h3 { font-size:22px; margin:2px 0 4px; } .product p { opacity:.9; font-size:14px; } .product small { opacity:.8; }
.pv b { font-size:30px; display:block; line-height:1.1; } .pv small { opacity:.85; }
.feat { display:grid; grid-template-columns:1fr; gap:8px; margin-bottom:12px; }
.feat > div { background:#fff; border:1px solid var(--ln); border-radius:10px; padding:12px 14px; display:flex; flex-direction:column; }
.feat b { color:var(--p); font-size:17px; } .feat span { color:var(--mu); font-size:13px; }
.terms { max-height:160px; overflow:auto; border:1px solid var(--ln); border-radius:6px; padding:10px 12px; background:#fafbfc; font-size:13px; color:#475467; }
.terms p { margin:0 0 6px; }
.chk { display:flex; align-items:center; gap:10px; margin:12px 0 0; font-size:14px; color:var(--tx); cursor:pointer; }
.chk input { width:20px; height:20px; accent-color:var(--p); flex:none; }
.howto { margin:14px 0 0; padding-left:20px; color:var(--mu); font-size:14px; }
.info .howto { margin-top:4px; }

/* 繳款選項 */
.opt { display:flex; align-items:center; gap:10px; border:1px solid var(--ln); border-radius:6px; padding:11px 12px; margin:0 0 8px; cursor:pointer; color:var(--tx); font-size:15px; }
.opt.sel { border-color:var(--p); background:var(--soft); }
.opt input { accent-color:var(--p); width:18px; height:18px; flex:none; }
.opt span { display:flex; justify-content:space-between; gap:10px; width:100%; } .opt small { color:var(--mu); font-size:14px; }
.card > h3 + .opt, .card .kv3 ~ h3 { margin-top:14px; }
.card h3.pad { padding-bottom:6px; }

/* 交易明細 */
.tabs { display:flex; gap:0; margin-bottom:12px; }
.tabs button { margin:0; padding:9px 8px; background:#fff; color:var(--p); border:1px solid var(--p); border-radius:0; }
.tabs button:first-child { border-radius:6px 0 0 6px; } .tabs button:last-child { border-radius:0 6px 6px 0; border-left:0; }
.tabs button.on { background:var(--p); color:#fff; }
.tabs button:hover:not(:disabled) { background:var(--soft); } .tabs button.on:hover:not(:disabled) { background:var(--p); }
.txlist { list-style:none; margin:0; padding:0; }
.tx { display:flex; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid var(--ln); }
.txlist .tx:first-child { border-top:0; }
.tx-l, .tx-r { display:flex; flex-direction:column; gap:2px; min-width:0; }
.tx-r { align-items:flex-end; text-align:right; flex:none; }
.tx-l span { color:var(--tx); font-size:14px; } .tx-l small, .tx-r small { color:var(--mu); font-size:12px; }
.tx-r b { font-size:17px; font-variant-numeric:tabular-nums; } .tx-r b.in { color:var(--ok); } .tx-r b.out { color:var(--tx); }
.empty { padding:28px 16px; text-align:center; color:var(--mu); }

/* 進度條與簽名預覽（App.progress / App.signPreview 產生） */
.steps { display:flex; gap:4px; margin:12px 0 4px; }
.steps div { flex:1; text-align:center; font-size:12px; padding:6px 2px; border-radius:6px; background:#eef0f3; color:var(--mu); }
.steps .done { background:#e2f4ec; color:var(--ok); } .steps .cur { background:var(--p); color:#fff; } .steps .fail { background:var(--bad); color:#fff; }
.card.sign { background:#f8fafb; margin:12px 0 0; } .card.sign h3 { font-size:15px; }
.card.sign .row { padding:4px 0; align-items:flex-start; } .card.sign .v { font-size:13px; }
.foot { text-align:center; color:var(--mu); font-size:12px; padding:16px 0 24px; }

/* 登入共用 */
.login-card .lbody { padding:20px 18px 22px; }
.ltabs { display:flex; }
.ltabs button { flex:1; margin:0; border-radius:0; background:transparent; color:var(--mu); border:0; padding:13px 8px; font-size:16px; }
.ltabs button.on { color:var(--p); }
.ltabs button:hover:not(:disabled) { background:transparent; }
.or { display:flex; align-items:center; gap:12px; color:var(--mu); margin:16px 0 4px; font-size:14px; }
.or::before, .or::after { content:""; flex:1; height:1px; background:var(--ln); }
.chip { margin:8px 0 0; background:transparent; color:var(--p); border:1px solid var(--ln); }
.login-card .lbody > button { margin-top:12px; }
.ltitle { font-size:18px; margin-bottom:6px; }

/* ---------- 底部分頁（手機；桌機改為主選單） ---------- */
#nav { position:fixed; left:0; right:0; bottom:0; z-index:50; background:#fff; border-top:1px solid var(--ln); box-shadow:0 -2px 10px rgba(0,0,0,.08); display:flex; }
#nav a { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:2px; padding:7px 0 6px; font-size:11px; color:var(--mu); text-decoration:none; }
#nav a > svg, #nav .l, #nav .dis { display:none; }
#nav .ic svg { width:22px; height:22px; } .ic { font-style:normal; display:block; line-height:0; }
#nav a.on { color:var(--p); font-weight:700; box-shadow:inset 0 2px 0 var(--p); }
body.authed { padding-bottom:64px; }
#scrim { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:58; }

/* ================= 臺銀式 ================= */
.skin-bot .top { border-bottom:4px solid var(--p); }
.skin-bot.authed .top { border-bottom:0; }
.skin-bot .wrap.top-in { max-width:none; padding-left:20px; padding-right:20px; }
.skin-bot .content .wrap { max-width:1500px; }
.skin-bot .tools { margin-left:auto; display:none; align-items:center; gap:18px; }
.skin-bot.authed .tools { display:flex; }
.skin-bot .tl { display:flex; align-items:center; gap:6px; font-size:14px; color:#444; }
.skin-bot .tl svg { width:26px; height:26px; color:#777; }
.skin-bot .srch { display:flex; align-items:center; justify-content:space-between; width:240px; border:1px solid #8a8fa0; padding:6px 10px; color:#999; font-size:14px; }
.skin-bot .srch svg { width:20px; height:20px; color:#333; }
.skin-bot .logout { background:var(--p); border-color:var(--p); }
.skin-bot .menubar { display:none; background:linear-gradient(90deg,#8a0a2f,#b8183f 50%,#d63c58); }
.skin-bot.authed .menubar { display:block; }
.skin-bot .crumb { color:#555; }
.skin-bot .infobar { background:#ececec; margin:0 -16px 14px; padding:8px 16px; }
.skin-bot .who .hi { color:#555; }
.skin-bot .who .cd { display:flex; align-items:center; gap:6px; }
.skin-bot .who .cd svg { width:18px; height:18px; color:#666; }
.skin-bot .who .cd b { font-size:24px; font-weight:400; color:var(--p); letter-spacing:1px; }
.skin-bot .sep { width:1px; height:16px; background:#999; margin:0 4px; }
.skin-bot .retime { width:auto; margin:0; padding:2px 12px; font-size:13px; font-weight:400; background:#fff; color:var(--p); border:1px solid var(--p); border-radius:99px; }
.skin-bot .retime:hover:not(:disabled) { background:var(--soft); color:var(--p); }
.skin-bot .fs { display:flex; align-items:center; gap:3px; color:#555; }
.skin-bot .fsb { width:24px; height:24px; padding:0; margin:0; border-radius:2px; background:#fff; color:var(--p); border:1px solid var(--p); font-size:13px; line-height:1; }
.skin-bot .fsb:hover:not(:disabled) { background:var(--soft); color:var(--p); }
.skin-bot .fsb:first-of-type, .skin-bot .fsb:first-of-type:hover:not(:disabled) { background:var(--p); color:#fff; }
.skin-bot .pt { color:var(--p); font-size:22px; letter-spacing:1px; margin:6px 0 12px; }
.skin-bot .card { border-radius:2px; border-color:#d9d9d9; }
.skin-bot button, .skin-bot .btn { border-radius:3px; }
.skin-bot .card h3 { color:var(--p); }
.skin-bot .tabs button { border-radius:0 !important; border:1px solid var(--ac); color:var(--ac); background:#fff; }
.skin-bot .tabs button.on { background:var(--ac); color:#fff; }
.skin-bot .opt { border-color:var(--ac); border-radius:0; } .skin-bot .opt.sel { background:var(--ac); color:#fff; } .skin-bot .opt.sel small { color:#fff; }
.skin-bot .opt input { accent-color:#fff; }
.skin-bot .stepper i { width:16px; height:16px; font-size:0; border-width:0; background:#777; margin-top:5px; }
.skin-bot .stepper li::before { top:12px; height:1px; background:#bbb; }
.skin-bot .stepper li.cur i { background:#fff; border:3px solid var(--p); width:20px; height:20px; margin-top:3px; }
.skin-bot .stepper li.done i { background:var(--p); }
.skin-bot .login-card { background:#fff; border:1px solid #ddd; }
.skin-bot .ltabs { border-bottom:2px solid #ddd; }
.skin-bot .ltabs button.on { border-bottom:3px solid var(--p); margin-bottom:-2px; font-weight:700; }
.skin-bot .login-card .lbody > button#login { padding:13px; font-size:16px; }
.skin-bot .chip { border-radius:3px; background:#f3f3f3; color:#888; }

.panel { background:#fff; border:1px solid #d0d0d0; margin-bottom:14px; }
.acct { width:100%; border-collapse:collapse; }
.acct th { background:#7b7b7b; color:#fff; font-weight:500; padding:12px 10px; border:1px solid #bdbdbd; text-align:center; }
.acct td { padding:12px 14px; border:1px solid #d0d0d0; vertical-align:middle; }
.acct td.r { text-align:right; } .acct td.c { text-align:center; }
.acct tr.sum td { background:#fafafa; }
.amt-link { color:#0b5f8a; text-decoration:underline; font-size:18px; font-variant-numeric:tabular-nums; }
.acct .mono { opacity:1; }
details.fn { position:relative; display:inline-block; }
details.fn summary { list-style:none; cursor:pointer; background:#5b1448; color:#fff; border-radius:3px; padding:6px 16px; font-size:14px; user-select:none; }
details.fn summary::-webkit-details-marker { display:none; }
details.fn summary::after { content:" ▾"; }
.fn-menu { position:absolute; z-index:20; right:0; top:100%; margin-top:2px; min-width:120px; background:#fff; border:1px solid #ccc; box-shadow:0 4px 12px rgba(0,0,0,.18); text-align:left; }
.fn-menu a { display:block; padding:8px 14px; color:var(--tx); text-decoration:none; white-space:nowrap; } .fn-menu a:hover { background:var(--soft); }
.btnrow { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; background:#f4f4f4; padding:22px 12px 14px; }
.btnrow button { width:auto; min-width:130px; margin:0; padding:12px 20px; font-size:17px; border-radius:3px; }
.btnrow + p { background:#f4f4f4; padding-bottom:14px; margin-bottom:14px; }
.notes { background:#f4f4f4; padding:16px 20px; margin-top:6px; }
.notes h3 { color:#333 !important; display:flex; align-items:center; gap:8px; font-weight:500; }
.notes h3 i { width:22px; height:22px; border-radius:50%; background:#888; position:relative; } .notes h3 i::after { content:""; position:absolute; left:5px; right:5px; top:10px; height:2px; background:#fff; }
.notes ul { list-style:none; margin:0; padding:0; color:var(--p); font-size:14px; }
.notes li { padding:3px 0 3px 24px; position:relative; }
.notes li::before { content:""; position:absolute; left:2px; top:9px; width:10px; height:10px; border-radius:50%; border:2px solid var(--ac); }

#side { display:none; }
.skin-bot #side ul { list-style:none; margin:0; padding:0; }
.skin-bot #side li a, .skin-bot #side li .dis { display:flex; align-items:center; gap:12px; padding:14px 18px; color:#333; text-decoration:none; font-size:16px; }
.skin-bot #side svg { width:20px; height:20px; flex:none; color:#555; }
.skin-bot #side li .dis { color:#777; }
.skin-bot #side li a:hover { background:#e2e2e2; }
.skin-bot #side li a.on { background:#fff; color:var(--p); font-weight:700; box-shadow:inset 4px 0 0 var(--p); } .skin-bot #side li a.on svg { color:var(--p); }
.skin-bot .login { display:grid; grid-template-columns:1fr; gap:14px; margin-top:6px; }
.banner-art { position:relative; min-height:210px; overflow:hidden; background:linear-gradient(135deg,#fdf1e8,#f7cdbd 60%,#eeaa97); display:flex; align-items:center; padding:22px; }
.ba-t { position:relative; z-index:2; max-width:62%; font-family:"Noto Serif TC","PMingLiU",serif; color:#7a1c2e; }
.ba-t small { letter-spacing:4px; } .ba-t h2 { font-size:24px; line-height:1.3; margin:6px 0; letter-spacing:2px; } .ba-t p { font-size:14px; }
.ba-coin { position:absolute; right:6%; top:50%; transform:translateY(-50%); width:200px; height:140px; }
.ba-coin i { position:absolute; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff,#d9dde3 55%,#aab0ba); box-shadow:0 6px 16px rgba(120,40,40,.25); }
.ba-coin i:nth-child(1) { width:110px; height:110px; left:0; top:10px; } .ba-coin i:nth-child(2) { width:96px; height:96px; right:0; top:26px; background:radial-gradient(circle at 35% 30%,#fff3c8,#e1c06a 60%,#b98f2e); }
.ba-coin i:nth-child(3) { width:40px; height:40px; left:62px; top:0; background:radial-gradient(circle at 35% 30%,#fff,#e8b9a8); }
.dots { position:absolute; bottom:10px; left:0; right:0; display:flex; justify-content:center; gap:8px; }
.dots i { width:9px; height:9px; border-radius:50%; background:#cfc6c6; } .dots i:first-child { background:var(--p); }
.news { display:grid; grid-template-columns:1fr; gap:14px; margin-top:6px; }
.ntabs { display:flex; gap:22px; border-bottom:1px solid #ddd; margin-bottom:10px; }
.ntabs button { width:auto; margin:0; background:transparent; color:#888; border:0; border-radius:0; padding:8px 4px; font-size:18px; font-weight:400; }
.ntabs button.on { color:var(--p); border-bottom:3px solid var(--p); font-weight:600; } .ntabs button:hover:not(:disabled) { background:transparent; }
.news ul { list-style:none; margin:0; padding:0; } .news li { color:#b0182f; padding:6px 0; font-size:14px; }
.tag { display:inline-block; background:#c0152f; color:#fff; font-size:12px; padding:1px 7px; margin-right:8px; font-weight:400; }
.quick { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; align-self:start; }
.q { display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 4px; background:#fff; border:1px solid #ddd; border-radius:6px; color:#333; }
.q svg { width:30px; height:30px; color:var(--p); } .q b { font-size:13px; font-weight:500; }

/* ================= 卡片式 ================= */
body.skin-cube { background:linear-gradient(180deg,#eef6fa 0,#f4f7f9 320px,#f4f7f9); }
.skin-cube .top { box-shadow:0 1px 0 #e3e8ee; }
.skin-cube .top-in { display:grid; grid-template-columns:1fr auto; grid-template-areas:"brand acts" "nav nav"; align-items:center; gap:0 12px; padding-top:8px; padding-bottom:0; }
.skin-cube .brand { grid-area:brand; padding-bottom:8px; }
.skin-cube .bn b { letter-spacing:2px; font-size:19px; font-family:inherit; }
.skin-cube .bn small { font-family:inherit; color:var(--mu); }
.skin-cube .vl { height:28px; background:#cfd6dd; width:1px; } .skin-cube .bt { color:var(--pd); font-size:20px; letter-spacing:1px; font-weight:600; }
.skin-cube .acts { grid-area:acts; display:none; align-items:center; gap:12px; }
.skin-cube.authed .acts { display:flex; }
.skin-cube .ic-btn { position:relative; width:34px; height:34px; display:grid; place-items:center; color:var(--pd); }
.skin-cube .ic-btn svg { width:24px; height:24px; } .skin-cube .dot { position:absolute; top:3px; right:5px; width:8px; height:8px; border-radius:50%; background:#e5322d; }
.skin-cube .logout { background:var(--pd); border-color:var(--pd); border-radius:6px; padding:9px 24px; font-size:16px; }
.skin-cube #nav { grid-area:nav; }
.skin-cube .infobar { justify-content:flex-end; }
.skin-cube .who { font-size:14px; color:#444; } .skin-cube .who .cd b { color:#e5322d; font-weight:400; }
.skin-cube .crumb { margin-right:auto; }
.skin-cube .pt { font-size:20px; margin:4px 0 12px; }
.skin-cube .card { border:0; border-radius:14px; box-shadow:0 1px 3px rgba(20,60,90,.06); }
.skin-cube .card > h3::before, .skin-cube .card > .row > h3::before, .skin-cube .tt::before { content:""; display:inline-block; width:5px; height:1.05em; background:var(--ac); margin-right:8px; vertical-align:-3px; border-radius:1px; }
.skin-cube .tt { font-size:18px; margin-bottom:10px; }
.skin-cube button, .skin-cube .btn { background:var(--pd); border-color:var(--pd); border-radius:6px; }
.skin-cube button:hover:not(:disabled), .skin-cube .btn:hover { background:#061c2e; }
.skin-cube button.ghost { background:transparent; color:var(--pd); }
.skin-cube .card > button { width:100%; max-width:320px; display:block; margin-left:auto; margin-right:auto; }
.skin-cube .card .btn { display:block; text-align:center; max-width:320px; margin-left:auto; margin-right:auto; }
.skin-cube .avail b { color:var(--pd); }
.skin-cube .tabs button { border-color:#c8d3db; color:var(--mu); background:#fff; }
.skin-cube .tabs button.on { background:var(--pd); color:#fff; border-color:var(--pd); }
.skin-cube .opt { border-radius:10px; } .skin-cube .opt.sel { border-color:var(--ac); background:var(--soft); }
.skin-cube .opt input { accent-color:var(--ac); }
.skin-cube .stepper li.cur i { border-color:var(--ac); color:var(--ac); } .skin-cube .stepper li.cur { color:var(--ac); }
.skin-cube .stepper li.done i { background:var(--ac); border-color:var(--ac); } .skin-cube .stepper li.done::before, .skin-cube .stepper li.cur::before { background:var(--ac); }
.skin-cube .steps .cur { background:var(--pd); }
.skin-cube .idcard, .skin-cube .product { background:linear-gradient(135deg,var(--pd),var(--p)); border-radius:16px; }
.skin-cube .feat b { color:var(--pd); }
.skin-cube .chk input { accent-color:var(--ac); }
.skin-cube .login { display:flex; flex-direction:column; align-items:center; padding:18px 0 10px; }
.skin-cube .login h1 { font-size:28px; font-weight:400; margin:6px 0 18px; text-align:center; }
.skin-cube .login-card { width:100%; max-width:440px; background:#fff; border-radius:12px; box-shadow:0 10px 36px rgba(18,162,138,.12); overflow:hidden; }
.skin-cube .ltabs button { background:#e6f5f1; color:var(--mu); border-top:3px solid transparent; }
.skin-cube .ltabs button.on { background:#fff; color:var(--ac); border-top-color:var(--ac); font-weight:600; }
.skin-cube .login-card .lbody { padding:22px 28px 26px; }
.skin-cube .login-card .lbody > button#login { padding:14px; }
.skin-cube .chip { background:transparent; border:0; color:var(--ac); }
.skin-cube .or { color:var(--tx); }

.home-grid { display:grid; grid-template-columns:1fr; gap:0 16px; }
.prof .pf { display:flex; align-items:center; gap:14px; }
.avatar { width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,#12a28a,#4ea8de); color:#fff; display:grid; place-items:center; font-size:24px; font-weight:700; flex:none; }
.prof .nm { display:block; font-size:19px; } .pf-link { display:block; margin-top:12px; padding-top:10px; border-top:1px solid var(--ln); text-align:center; color:var(--ac); text-decoration:none; font-weight:600; }
.dn { display:flex; flex-direction:column; align-items:center; gap:12px; }
.donut { width:170px; height:170px; }
.legend { list-style:none; margin:0; padding:0; width:100%; display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; font-size:14px; }
.legend li { display:flex; align-items:center; gap:6px; } .legend i { width:14px; height:4px; border-radius:2px; flex:none; } .legend b { margin-left:auto; font-weight:500; }
.asset .net { margin:6px 0 14px; } .asset .net small { color:var(--mu); font-size:13px; }
.asset .amt { font-size:36px; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; } .asset .amt span { font-size:22px; font-weight:500; }
.tiles { display:grid; grid-template-columns:1fr; gap:0 18px; }
.tiles .col { display:flex; flex-direction:column; gap:8px; }
.tile { border-left:4px solid; border-radius:4px; padding:10px 14px; margin-top:6px; } .tile b { font-weight:600; } .tile .tv { font-size:17px; font-variant-numeric:tabular-nums; }
.t-g { border-color:#12a28a; background:#f1faf8; } .t-b { border-color:#4aa3df; background:#f2f8fd; } .t-o { border-color:#f0a04b; background:#fdf6ef; } .t-p { border-color:#7b6ee0; background:#f5f4fd; }
.tile .bar { margin:4px 0 6px; } .tile .avail { margin:2px 0 4px; } .tile .avail b { font-size:22px; }
.tl2 { display:inline-block; margin-top:4px; font-size:13px; color:var(--ac); text-decoration:none; font-weight:600; }
.trow { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:4px 12px; font-size:14px; color:#444; } .trow .mono { opacity:1; }
.tact { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; padding:2px 0; }
.card .chipbtn, .chipbtn { display:inline-block; width:auto; margin:0; padding:5px 12px; font-size:13px; font-weight:500; background:#fff; color:var(--pd); border:1.5px solid var(--pd); border-radius:6px; text-decoration:none; }
.skin-cube .card .chipbtn:hover:not(:disabled), .skin-cube .chipbtn:hover:not(:disabled) { background:var(--soft); color:var(--pd); }

/* ================= 桌機 ================= */
@media (min-width:900px) {
  body.authed { padding-bottom:0; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .feat { grid-template-columns:repeat(3,1fr); }
  .twocol { grid-template-columns:3fr 2fr; }
  #nav { position:static; box-shadow:none; background:transparent; border:0; }
  #nav a { flex:0 0 auto; flex-direction:row; gap:6px; padding:0 18px; font-size:16px; }
  #nav .ic, #nav .s { display:none; } #nav .l { display:inline; }
  #nav .dis { display:inline; padding:0 12px; color:#9aa3ad; font-size:15px; }
  .skin-bot #nav { padding:0 8px; }
  .skin-bot #nav a { color:rgba(255,255,255,.92); padding:17px 22px; font-size:17px; }
  .skin-bot #nav a:hover { background:rgba(255,255,255,.12); }
  .skin-bot #nav a.on { background:rgba(255,255,255,.2); color:#fff; font-weight:700; box-shadow:none; }
  .skin-bot.authed .shell { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:start; }
  .skin-bot.authed #side { display:block; background:#ececec; min-height:600px; padding:6px 0; align-self:stretch; }
  .skin-bot .content .wrap { padding:0 24px; }
  .skin-bot .infobar { margin:0 -24px 14px; padding:8px 24px; }
  .skin-bot .login { grid-template-columns:420px 1fr; gap:0; margin-top:0; align-items:stretch; }
  .skin-bot .banner-art { min-height:480px; }
  .skin-bot .ba-t h2 { font-size:34px; } .ba-coin { width:300px; height:210px; right:8%; }
  .ba-coin i:nth-child(1) { width:170px; height:170px; } .ba-coin i:nth-child(2) { width:150px; height:150px; top:50px; } .ba-coin i:nth-child(3) { width:56px; height:56px; left:104px; }
  .skin-bot .news { grid-template-columns:1fr 360px; margin-top:22px; }
  .skin-cube #nav { display:flex; align-items:center; border-top:1px solid #e3e8ee; }
  .skin-cube #nav a { padding:14px 12px; color:var(--tx); border-bottom:3px solid transparent; font-size:16px; }
  .skin-cube #nav a > svg { display:block; width:22px; height:22px; }
  .skin-cube #nav a:hover { color:var(--ac); }
  .skin-cube #nav a.on { color:var(--ac); border-bottom-color:var(--ac); box-shadow:none; font-weight:600; }
  .skin-cube .acts { border-top:1px solid #e3e8ee; padding:8px 0; align-self:stretch; }
  .skin-cube .login h1 { font-size:36px; margin-top:20px; }
  .home-grid { grid-template-columns:340px minmax(0,1fr); align-items:start; }
  .tiles { grid-template-columns:1fr 1fr; }
  .tiles .col + .col { border-left:1px solid var(--ln); padding-left:18px; }
  .skin-cube .asset { padding:20px 24px; }
}

/* ================= 手機 ================= */
@media (max-width:899px) {
  .skin-bot.authed .tools { display:flex; margin-left:auto; } .skin-bot .tools .tl, .skin-bot .tools .srch { display:none; }
  .skin-bot .top-in { padding-top:6px; padding-bottom:6px; } .skin-bot .wrap.top-in { padding-left:10px; padding-right:12px; }
  .skin-bot .burger { display:grid; place-items:center; } .skin-bot .bn b { font-size:16px; letter-spacing:2px; } .skin-bot .bn small { font-size:8px; }
  .skin-bot .brand .logo { width:32px; height:32px; } .skin-bot .bt { font-size:15px; }
  .skin-bot.authed .menubar { background:none; }
  .skin-bot .infobar { padding:6px 12px; margin:0 -16px 10px; } .skin-bot .fs { display:none; }
  .skin-bot .who .cd b { font-size:18px; }
  .skin-bot.authed #side { display:block; position:fixed; z-index:60; top:0; bottom:0; left:0; width:272px; max-width:84vw; overflow-y:auto; background:#f1f1f1; padding:14px 0; transform:translateX(-102%); transition:transform .2s; box-shadow:4px 0 16px rgba(0,0,0,.25); }
  .skin-bot.side-open #side { transform:none; }
  .skin-bot .logout { padding:6px 12px; font-size:13px; }
  .skin-cube .brand .logo { width:32px; height:32px; } .skin-cube .bn b { font-size:16px; } .skin-cube .bn small { display:none; } .skin-cube .bt { font-size:15px; }
  .skin-cube .top-in { grid-template-areas:"brand acts"; padding-bottom:6px; } .skin-cube .brand { padding-bottom:0; }
  .skin-cube .ic-btn { display:none; } .skin-cube .logout { padding:6px 14px; font-size:14px; }
  .skin-cube .infobar { padding:6px 0 0; }
  .asset .amt { font-size:30px; }
  .skin-cube .login h1 { font-size:24px; }
  .skin-cube .login-card .lbody { padding:18px 16px 22px; }
  .acct thead { display:none; }
  .acct, .acct tbody, .acct tr, .acct td { display:block; width:100%; }
  .acct tr { border-bottom:6px solid #eee; padding:6px 0; }
  .acct td { border:0; padding:5px 12px; display:flex; justify-content:space-between; align-items:center; gap:12px; text-align:right !important; }
  .acct td::before { content:attr(data-label); color:var(--mu); font-size:13px; flex:none; text-align:left; }
  .acct tr.sum { display:flex; justify-content:space-between; padding:10px 12px; }
  .acct tr.sum td { width:auto; padding:0; } .acct tr.sum td:last-child { display:none; } .acct tr.sum td::before { content:none; }
  .btnrow button { min-width:0; flex:1 1 40%; font-size:15px; padding:11px 8px; }
  .skin-bot .ba-t { max-width:70%; } .skin-bot .ba-coin { opacity:.55; right:-10px; }
}
body:not(.authed) .infobar { display:none; }
@media (min-width:900px) { .skin-cube .top-in { grid-template-areas:"brand brand" "nav acts"; } }
body.skin-cube { background:radial-gradient(900px 500px at -5% -10%,rgba(120,170,255,.28),transparent 60%),radial-gradient(800px 500px at 105% 60%,rgba(18,162,138,.16),transparent 60%),#f4f7f9; background-attachment:fixed; }
@media (min-width:900px) { .skin-cube #nav, .skin-cube .acts { border-top:0; } .skin-cube .top-in::after { content:""; grid-row:2; grid-column:1 / -1; align-self:start; height:1px; background:#e3e8ee; } }

/* ================= 重設計層（共用）：數字、層次、狀態、無障礙 ================= */
:root { --r-sm:6px; --r-md:10px; --r-lg:14px; --ease:cubic-bezier(.2,.7,.2,1); }
body { font-variant-numeric:tabular-nums; text-rendering:optimizeLegibility; }
h2,h3 { text-wrap:balance; }
p,.muted,.warn,.err,.okbox,.demo-note,.howto li { text-wrap:pretty; }
.card > p, .howto, .terms { max-width:70ch; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
button, .btn, .opt, .chipbtn, #nav a, .pf-link, .tl2, .fn-menu a, .acct tbody tr, .tx { transition:background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease); }
button:active:not(:disabled), .btn:active { transform:translateY(1px) scale(.99); }
button:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; filter:grayscale(.35); }
button[aria-busy=true] { cursor:progress; opacity:.7; }
:focus-visible { outline:2px solid var(--ac); outline-offset:2px; }
input:focus-visible { outline:0; }
button:focus-visible, .btn:focus-visible { outline-offset:3px; }
#nav a:focus-visible { outline-offset:-3px; }
.opt:has(input:focus-visible) { outline:2px solid var(--ac); outline-offset:2px; }
.opt:hover { border-color:var(--p); }
.opt { min-height:44px; }
.tx:hover { background:rgba(0,0,0,.02); }
.acct tbody tr:hover td { background:var(--soft); }
.acct tr.sum:hover td { background:inherit; }
.empty { margin:16px; border:1px dashed var(--ln); border-radius:var(--r-md); line-height:1.8; }
.err, .warn, .okbox { border-left-width:3px; }
.txlist .tx-l span { font-weight:500; }
.tx-r b, .avail b, .asset .amt, .big2, .pv b { letter-spacing:-.01em; }
.kv3 small, .steps div, .stepper li { font-weight:500; }

/* 載入骨架 */
.sk { display:grid; gap:12px; padding:20px 16px; }
.sk i { display:block; height:14px; border-radius:var(--r-sm); background:linear-gradient(90deg,var(--ln) 25%,rgba(255,255,255,.7) 50%,var(--ln) 75%); background-size:200% 100%; animation:sk 1.3s linear infinite; }
.sk i:nth-of-type(1) { width:55%; height:18px; } .sk i:nth-of-type(2) { width:90%; } .sk i:nth-of-type(3) { width:70%; }
@keyframes sk { to { background-position:-200% 0; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

/* 流程頁（身分憑證、信用代幣、明細、繳款）：限制閱讀寬度 */
@media (min-width:900px) {
  #view:not(:has(.hero)) > :is(.pt,.card,.stepper,.tabs,.warn,.err,.okbox,.txlist) { max-width:880px; }
}
@media (max-width:899px) {
  .tabs button, .card button:not(.chipbtn), .btnrow button, .ltabs button { min-height:44px; }
  .chipbtn { min-height:36px; }
}

/* ================= 重設計層：卡片式（/bank900/） ================= */
.skin-cube { --sh-card:0 1px 2px rgba(10,42,67,.06), 0 10px 28px -12px rgba(10,42,67,.14); --ink2:#44566a; }
.skin-cube .card { border-radius:14px; box-shadow:var(--sh-card); }
.skin-cube .pt { font-weight:600; letter-spacing:-.005em; color:var(--pd); }
.skin-cube .login h1 { font-weight:600; letter-spacing:-.01em; color:var(--pd); line-height:1.25; }
.skin-cube h2, .skin-cube h3, .skin-cube .tt { font-weight:600; }
.skin-cube .bn b { font-weight:600; } .skin-cube .bt { font-weight:500; }
.skin-cube button, .skin-cube .btn { font-weight:600; letter-spacing:.02em; border-radius:8px; box-shadow:0 1px 2px rgba(10,42,67,.18); }
.skin-cube button:hover:not(:disabled), .skin-cube .btn:hover { background:#071f33; box-shadow:0 4px 12px -4px rgba(10,42,67,.4); }
.skin-cube button.ghost, .skin-cube .chipbtn, .skin-cube .tabs button, .skin-cube .chip { box-shadow:none; }
.skin-cube .chip:hover:not(:disabled) { background:var(--soft); }
.skin-cube .tabs button { font-weight:500; }
.skin-cube .tabs button:hover:not(:disabled):not(.on) { background:var(--soft); color:var(--pd); }
.skin-cube input[type=text], .skin-cube input:not([type]), .skin-cube input[type=tel], .skin-cube input#name, .skin-cube input#phone, .skin-cube input#otp { border-radius:8px; border-color:#c3ced8; }
.skin-cube input:focus { box-shadow:0 0 0 3px rgba(18,162,138,.18); }
.skin-cube .avail b, .skin-cube .asset .amt { color:var(--pd); }
.skin-cube .asset .amt { letter-spacing:-.02em; }
.skin-cube .badge { font-weight:600; letter-spacing:.02em; }
.skin-cube .foot { color:#6b7c8d; }
.skin-cube .idcard, .skin-cube .product { border-radius:16px; box-shadow:0 10px 28px -12px rgba(10,42,67,.45); }
.skin-cube .idcard-no { letter-spacing:.06em; }
.skin-cube .t-b, .skin-cube .t-p { border-color:var(--pd); background:#f3f6f9; }
.skin-cube .tile { border-radius:8px; }
.skin-cube .avatar { background:linear-gradient(135deg,var(--ac),var(--p)); }
.skin-cube #nav a:focus-visible { outline-offset:-2px; border-radius:6px; }
@media (max-width:899px) {
  .skin-cube .login { padding-top:28px; }
  .skin-cube #nav { box-shadow:0 -1px 0 #e3e8ee, 0 -8px 24px -12px rgba(10,42,67,.18); }
}
