/* =========================================================
   TekPass 資安體驗館 — 樣式（對齊 tekpass.com.tw/products 模板）
   色票取自官網 Tailwind 設定：blue-600 → cyan-600 漸層、gray 系中性色。
   所有樣式限定在 .tpx 容器內，不影響官網既有樣式。
   ========================================================= */
.tpx {
  --tpx-blue-50: #eff6ff;  --tpx-blue-100: #dbeafe; --tpx-blue-500: #2b7fff;
  --tpx-blue-600: #155dfc; --tpx-blue-700: #1447e6;
  --tpx-cyan-500: #00b8db; --tpx-cyan-600: #0092b8; --tpx-cyan-50: #ecfeff;
  --tpx-gray-50: #f9fafb;  --tpx-gray-100: #f3f4f6; --tpx-gray-200: #e5e7eb; --tpx-gray-300: #d1d5dc;
  --tpx-gray-400: #99a1af; --tpx-gray-600: #4a5565; --tpx-gray-700: #364153; --tpx-gray-800: #1e2939; --tpx-gray-900: #101828;
  --tpx-green-500: #00c950; --tpx-red-500: #fb2c36; --tpx-amber-500: #f99c00;
  --tpx-grad: linear-gradient(to right, var(--tpx-blue-600), var(--tpx-cyan-500));
  --tpx-grad-hero: linear-gradient(to bottom right, var(--tpx-blue-600), var(--tpx-cyan-600));
  --tpx-radius: 10px;
  --tpx-font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  font-family: var(--tpx-font); color: #0a0a0a; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.tpx *, .tpx *::before, .tpx *::after { box-sizing: border-box; }
.tpx a { color: inherit; text-decoration: none; }
.tpx :where(h1, h2, h3, h4, p, ul) { margin: 0; padding: 0; }
.tpx :where(ul) { list-style: none; }
.tpx button { font-family: inherit; }
.tpx img { display: block; max-width: 100%; }
.tpx-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- 官網頁首（嵌入模式自動隱藏，沿用官網 header） ---------- */
.tpx-header { background: #fff; border-bottom: 1px solid var(--tpx-gray-200); position: sticky; top: 0; z-index: 50; }
.tpx-header .tpx-wrap { display: flex; align-items: center; height: 64px; gap: 16px; }
.tpx-logo { display: flex; align-items: center; gap: 8px; flex: none; }
.tpx-logo img:first-child { height: 40px; width: 40px; }
.tpx-logo img + img { height: 22px; }
.tpx-nav { display: flex; gap: 2px; margin-left: 16px; }
.tpx-nav a { padding: 8px 14px; border-radius: var(--tpx-radius); font-size: 14px; color: var(--tpx-gray-600); transition: background .15s, color .15s; white-space: nowrap; }
.tpx-nav a:hover { color: var(--tpx-gray-900); background: var(--tpx-gray-100); }
.tpx-nav a.is-active { color: var(--tpx-blue-600); background: var(--tpx-blue-50); font-weight: 500; }
.tpx-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tpx-dealer { font-size: 14px; color: var(--tpx-blue-600); padding: 8px 12px; border-radius: var(--tpx-radius); white-space: nowrap; }
.tpx-dealer:hover { background: var(--tpx-blue-50); }
.tpx[data-embed="true"] .tpx-header, .tpx[data-embed="true"] .tpx-footer { display: none; }

/* ---------- 按鈕 ---------- */
.tpx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--tpx-radius); font-weight: 500; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: all .2s; white-space: nowrap; line-height: 1.4; }
.tpx-btn-grad { background: var(--tpx-grad); color: #fff !important; box-shadow: 0 4px 14px -4px rgba(21,93,252,.45); }
.tpx-btn-grad:hover { filter: brightness(1.06); box-shadow: 0 8px 20px -6px rgba(21,93,252,.55); }
.tpx-btn-white { background: #fff; color: var(--tpx-blue-600) !important; }
.tpx-btn-white:hover { background: var(--tpx-blue-50); }
.tpx-btn-glass { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.5); }
.tpx-btn-glass:hover { background: rgba(255,255,255,.22); }
.tpx-btn-outline { background: #fff; color: var(--tpx-blue-600) !important; border-color: var(--tpx-blue-600); }
.tpx-btn-outline:hover { background: var(--tpx-blue-600); color: #fff !important; }
.tpx-btn-gray { background: #fff; color: var(--tpx-gray-700) !important; border-color: var(--tpx-gray-300); }
.tpx-btn-gray:hover { border-color: var(--tpx-blue-500); color: var(--tpx-blue-600) !important; }
.tpx-btn-sm { padding: 6px 14px; font-size: 14px; }
.tpx-btn-block { width: 100%; }

/* ---------- Hero（同產品介紹頁） ---------- */
.tpx-hero { background: var(--tpx-grad-hero); color: #fff; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.tpx-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(255,255,255,.14), transparent 70%), radial-gradient(500px 260px at 10% 100%, rgba(255,255,255,.08), transparent 70%); pointer-events: none; }
.tpx-hero .tpx-wrap { position: relative; }
.tpx-hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.tpx-hero h1 { font-size: clamp(34px, 4.6vw, 48px); font-weight: 700; line-height: 1.25; margin-bottom: 20px; }
.tpx-hero p { font-size: 20px; color: var(--tpx-blue-100); max-width: 820px; margin: 0 auto; line-height: 1.65; }
.tpx-hero .tpx-hero-sub { color: #fff; font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.tpx-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- 篩選區（同「篩選產品」） ---------- */
.tpx-filter { background: var(--tpx-gray-50); padding: 40px 0; text-align: center; }
.tpx-filter h2 { font-size: 20px; font-weight: 700; color: var(--tpx-gray-900); }
.tpx-filter p.tpx-filter-sub { font-size: 14px; color: var(--tpx-gray-600); margin-top: 6px; }
.tpx-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.tpx-pill { padding: 8px 16px; border-radius: var(--tpx-radius); font-weight: 500; font-size: 15px; cursor: pointer; background: #fff; border: 2px solid var(--tpx-gray-300); color: var(--tpx-gray-700); transition: all .15s; }
.tpx-pill:hover { border-color: var(--tpx-blue-500); color: var(--tpx-blue-600); }
.tpx-pill.is-active { background: var(--tpx-blue-500); border-color: var(--tpx-blue-500); color: #fff; }
.tpx-filter-note { margin: 16px auto 0; max-width: 680px; font-size: 14px; color: var(--tpx-gray-600); }

/* ---------- 區段標題 ---------- */
.tpx-section { padding: 64px 0; }
.tpx-section-gray { background: var(--tpx-gray-50); }
.tpx-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.tpx-head h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: var(--tpx-gray-900); }
.tpx-head p { margin-top: 10px; color: var(--tpx-gray-600); font-size: 17px; }
.tpx-head .tpx-grad-text { background: var(--tpx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tpx-quote { max-width: 900px; margin: 0 auto; background: linear-gradient(to bottom right, var(--tpx-blue-50), var(--tpx-cyan-50)); border: 1px solid var(--tpx-blue-100); border-radius: 16px; padding: 24px 28px; font-size: 17px; color: var(--tpx-gray-700); text-align: center; }

/* ---------- 卡片（同產品卡） ---------- */
.tpx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px 24px; }
.tpx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tpx-card { background: #fff; border: 2px solid var(--tpx-gray-200); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; position: relative; transition: box-shadow .25s, border-color .25s, transform .25s; color: inherit !important; }
.tpx-card:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,.18); border-color: var(--tpx-blue-600); }
.tpx-card.is-hot { border-color: var(--tpx-blue-600); }
.tpx-card-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--tpx-grad); color: #fff; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; display: flex; gap: 4px; align-items: center; z-index: 3; }
.tpx-card-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.tpx-card-icon { width: 56px; height: 56px; border-radius: 12px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--tpx-grad); color: #fff; font-size: 24px; font-weight: 700; }
.tpx-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.tpx-card-eyebrow { font-size: 12px; color: var(--tpx-blue-600); font-weight: 500; margin-bottom: 2px; }
.tpx-card h3 { font-size: 18px; font-weight: 700; color: var(--tpx-gray-900); }
.tpx-card-desc { font-size: 14px; color: var(--tpx-gray-600); margin-bottom: 20px; flex-grow: 1; }
.tpx-card h4 { font-size: 12px; font-weight: 600; color: var(--tpx-gray-900); margin-bottom: 10px; }
.tpx-checks { margin-bottom: 22px; display: grid; gap: 8px; }
.tpx-checks li { display: flex; gap: 8px; font-size: 13px; color: var(--tpx-gray-700); align-items: flex-start; }
.tpx-checks svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tpx-green-500); }
.tpx-card .tpx-btn { margin-top: auto; }
.tpx-card-art { margin: -24px -24px 20px; aspect-ratio: 31 / 10; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--tpx-grad-hero); position: relative; }
.tpx-card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 體驗播放器 ---------- */
.tpx-player { display: grid; grid-template-columns: 270px 1fr; background: #fff; border: 2px solid var(--tpx-gray-200); border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.12); }
.tpx-stages { background: var(--tpx-gray-50); border-right: 1px solid var(--tpx-gray-200); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.tpx-stages-title { font-size: 12px; font-weight: 600; color: var(--tpx-gray-900); padding: 0 10px 8px; }
.tpx-stage-btn { text-align: left; border: 2px solid transparent; background: transparent; padding: 10px 12px; border-radius: 12px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; color: var(--tpx-gray-700); transition: all .15s; }
.tpx-stage-btn:hover { background: #fff; border-color: var(--tpx-gray-200); }
.tpx-stage-btn.is-active { background: #fff; border-color: var(--tpx-blue-600); }
.tpx-stage-num { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--tpx-gray-200); color: var(--tpx-gray-600); }
.tpx-stage-btn.is-active .tpx-stage-num { background: var(--tpx-grad); color: #fff; }
.tpx-stage-btn.is-done .tpx-stage-num { background: var(--tpx-green-500); color: #fff; }
.tpx-stage-btn b { display: block; font-size: 15px; color: var(--tpx-gray-900); }
.tpx-stage-btn small { display: block; color: var(--tpx-gray-600); font-size: 12px; line-height: 1.4; margin-top: 2px; }

.tpx-stage-main { display: flex; flex-direction: column; min-width: 0; }
.tpx-scene { position: relative; min-height: 420px; color: #fff; overflow: hidden;
  background: radial-gradient(520px 260px at 80% 0%, rgba(0,184,219,.28), transparent 70%), radial-gradient(520px 260px at 0% 100%, rgba(21,93,252,.3), transparent 70%), var(--tpx-gray-900); }
.tpx-scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 36px 36px; }
.tpx-scene-3d { position: absolute; inset: 0; }
.tpx-scene-hud { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 3; font-size: 12px; gap: 8px; }
.tpx-scene-tag { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(6px); color: #fff; font-size: 12px; }
.tpx-scene-tag i { font-style: normal; color: #7ee3f5; font-weight: 600; }
.tpx-voice { cursor: pointer; }
.tpx-voice[aria-pressed="true"] { background: var(--tpx-blue-600); border-color: var(--tpx-blue-600); }

.tpx-stage-art { position: absolute; inset: 52px 0 0 0; display: flex; align-items: center; justify-content: center; gap: 40px; padding: 10px 24px 64px; }
.tpx-pc { width: min(420px, 58%); }
.tpx-monitor { aspect-ratio: 16/10; background: var(--tpx-gray-800); border: 3px solid #364153; border-radius: 12px; position: relative; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.tpx-monitor-stand { width: 22%; height: 18px; margin: 0 auto; background: #364153; clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.tpx-screen { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; }
.tpx-screen-title { font-size: 12px; opacity: .65; position: absolute; top: 8px; left: 12px; }
.tpx-qr { width: 86px; height: 86px; background: #fff; border-radius: 6px; position: relative; padding: 6px; }
.tpx-qr::before { content: ""; position: absolute; inset: 6px; background: linear-gradient(90deg, #101828 50%, transparent 0) 0 0/10px 10px, linear-gradient(#101828 50%, transparent 0) 5px 5px/10px 10px; opacity: .85; }
.tpx-qr::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--tpx-cyan-500); box-shadow: 0 0 12px var(--tpx-cyan-500); top: 0; animation: tpx-scan 1.6s ease-in-out infinite; }
@keyframes tpx-scan { 0%,100% { top: 6% } 50% { top: 92% } }
.tpx-icons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.tpx-ico { width: 68px; text-align: center; font-size: 11px; opacity: .92; }
.tpx-ico span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 4px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 22px; border: 1px solid rgba(255,255,255,.14); transition: all .35s; }
.tpx-ico.is-threat span { border-color: var(--tpx-amber-500); box-shadow: 0 0 0 4px rgba(249,156,0,.2); }
.tpx-ico.is-blocked span { border-color: var(--tpx-red-500); background: rgba(251,44,54,.18); box-shadow: 0 0 0 4px rgba(251,44,54,.22); }
.tpx-ico.is-ok span { border-color: var(--tpx-green-500); background: rgba(0,201,80,.16); box-shadow: 0 0 0 4px rgba(0,201,80,.2); }

.tpx-phone { width: 120px; aspect-ratio: 9/18; background: #0b1220; border: 3px solid #364153; border-radius: 22px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; text-align: center; transition: transform .5s, box-shadow .4s, opacity .3s; box-shadow: 0 30px 50px -20px rgba(0,0,0,.7); }
.tpx-phone-notch { width: 40%; height: 5px; border-radius: 3px; background: #364153; }
.tpx-phone-app { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #7ee3f5; font-size: 11px; }
.tpx-phone-app img { width: 18px; height: 18px; border-radius: 4px; }
.tpx-phone-body { flex: 1; display: grid; place-items: center; width: 100%; border-radius: 12px; background: rgba(255,255,255,.06); padding: 6px; line-height: 1.4; }
.tpx-phone.is-active { transform: translateY(-8px) rotate(-3deg); box-shadow: 0 0 0 3px var(--tpx-cyan-500), 0 30px 50px -20px rgba(0,0,0,.7); }
.tpx-phone.is-hidden { opacity: .22; }

.tpx-badge { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); opacity: 0; z-index: 4; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .4s; white-space: nowrap; color: #fff; }
.tpx-badge.is-show { opacity: 1; transform: translate(-50%, 0); }
.tpx-badge.ok { background: var(--tpx-green-500); } .tpx-badge.block { background: var(--tpx-red-500); } .tpx-badge.info { background: var(--tpx-grad); }

.tpx-story { padding: 22px 26px; display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.tpx-story h3 { font-size: 20px; font-weight: 700; color: var(--tpx-gray-900); }
.tpx-narr { margin-top: 8px; color: var(--tpx-gray-600); min-height: 56px; }
.tpx-mods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tpx-mod { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 4px 10px 4px 4px; border-radius: 8px; border: 1px solid var(--tpx-gray-200); color: var(--tpx-gray-700) !important; background: #fff; transition: all .15s; }
.tpx-mod img, .tpx-mod .tpx-mod-ph { width: 22px; height: 22px; border-radius: 6px; }
.tpx-mod .tpx-mod-ph { display: grid; place-items: center; background: var(--tpx-grad); color: #fff; font-size: 11px; }
.tpx-mod:hover { border-color: var(--tpx-blue-600); color: var(--tpx-blue-600) !important; }
.tpx-log { background: var(--tpx-gray-900); color: #d1e3ff; border-radius: 12px; padding: 12px 14px; font: 12px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; height: 150px; overflow: auto; }
.tpx-log div { opacity: 0; animation: tpx-in .35s forwards; }
.tpx-log .ok { color: #5ee69a; } .tpx-log .block { color: #ff8a8f; } .tpx-log .warn { color: #fcd34d; }
@keyframes tpx-in { to { opacity: 1; } }
.tpx-controls { display: flex; gap: 10px; align-items: center; padding: 0 26px 22px; flex-wrap: wrap; }
.tpx-progress { flex: 1; min-width: 120px; height: 6px; border-radius: 3px; background: var(--tpx-gray-200); overflow: hidden; }
.tpx-progress i { display: block; height: 100%; width: 0; background: var(--tpx-grad); transition: width .4s; }

.tpx-recap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(620px, 100%); }
.tpx-recap div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 14px; font-size: 13px; opacity: 0; transform: translateY(10px); transition: all .5s; }
.tpx-recap div.is-show { opacity: 1; transform: none; border-color: var(--tpx-green-500); }
.tpx-recap b { display: block; font-size: 15px; margin: 4px 0; } .tpx-recap em { font-style: normal; font-size: 22px; }
.tpx-dash { width: min(640px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tpx-dash div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 12px; transition: opacity .4s; }
.tpx-dash small { display: block; font-size: 11px; opacity: .7; } .tpx-dash b { font-size: 26px; }
.tpx-dash .wide { grid-column: span 4; font-size: 12px; text-align: left; }

/* ---------- CTA（同「方案產品對比」漸層區塊） ---------- */
.tpx-cta { background: var(--tpx-grad-hero); color: #fff; border-radius: 16px; padding: 44px 40px; text-align: center; }
.tpx-cta h3 { font-size: 28px; font-weight: 700; }
.tpx-cta p { color: var(--tpx-blue-100); margin-top: 8px; font-size: 17px; }
.tpx-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.tpx-crosslink { text-align: center; padding: 0 0 56px; font-size: 15px; }
.tpx-crosslink a { color: var(--tpx-blue-600); font-weight: 500; }
.tpx-crosslink a:hover { text-decoration: underline; }

/* ---------- 官網頁尾 ---------- */
.tpx-footer { background: var(--tpx-gray-900); color: var(--tpx-gray-300); }
.tpx-footer .tpx-wrap { padding-top: 48px; padding-bottom: 24px; }
.tpx-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.tpx-footer h3 { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.tpx-footer li { margin-bottom: 8px; font-size: 14px; }
.tpx-footer a:hover { color: #fff; }
.tpx-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tpx-footer-brand img { height: 40px; } .tpx-footer-brand img + img { height: 28px; }
.tpx-footer p { font-size: 14px; color: var(--tpx-gray-400); }
.tpx-social { display: flex; gap: 10px; margin-top: 16px; }
.tpx-social a { padding: 8px; background: var(--tpx-gray-800); border-radius: 8px; font-size: 12px; color: var(--tpx-gray-300); }
.tpx-social a:hover { background: #fff; color: var(--tpx-gray-900); }
.tpx-copy { border-top: 1px solid var(--tpx-gray-800); margin-top: 32px; padding-top: 22px; font-size: 13px; color: var(--tpx-gray-400); text-align: center; }

/* ---------- 響應式 ---------- */
@media (max-width: 1080px) { .tpx-nav a.tpx-hide-md { display: none; } }
@media (max-width: 900px) {
  .tpx-wrap { padding: 0 20px; }
  .tpx-nav { display: none; }
  .tpx-grid-2 { grid-template-columns: 1fr; }
  .tpx-player { grid-template-columns: 1fr; }
  .tpx-stages { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--tpx-gray-200); }
  .tpx-stages-title { display: none; }
  .tpx-stage-btn { flex: none; min-width: 170px; }
  .tpx-story { grid-template-columns: 1fr; }
  .tpx-dash { grid-template-columns: repeat(2, 1fr); } .tpx-dash .wide { grid-column: span 2; }
  .tpx-recap { grid-template-columns: 1fr; }
  .tpx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tpx-hero { padding: 56px 0; } .tpx-hero p { font-size: 17px; }
  .tpx-dealer { display: none; }
  .tpx-scene { min-height: 0; }
  .tpx-scene-hud { position: relative; top: 0; left: 0; right: 0; padding: 12px 12px 0; }
  .tpx-scene-name { display: none; }
  .tpx-voice { white-space: nowrap; }
  .tpx-stage-art { position: relative; inset: auto; flex-direction: column; gap: 14px; padding: 16px 12px 70px; }
  .tpx-pc { width: 100%; }
  .tpx-monitor { aspect-ratio: auto; min-height: 180px; }
  .tpx-monitor .tpx-screen { padding: 30px 8px 10px; }
  .tpx-ico { width: 62px; font-size: 10px; } .tpx-ico span { width: 40px; height: 40px; font-size: 19px; }
  .tpx-icons { gap: 6px; }
  .tpx-phone { width: auto; aspect-ratio: auto; flex-direction: row; border-radius: 16px; padding: 8px 12px; gap: 10px; }
  .tpx-phone.is-hidden, .tpx-phone-notch { display: none; }
  .tpx-phone-body { padding: 4px 10px; }
  .tpx-phone.is-active { transform: none; }
  .tpx-dash b { font-size: 20px; } .tpx-dash div { padding: 8px 10px; } .tpx-dash .wide { font-size: 11px; }
  .tpx-cta { padding: 30px 22px; }
  .tpx-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tpx *, .tpx *::before, .tpx *::after { animation: none !important; transition: none !important; } }
.tpx-mod-ph { display: inline-grid; place-items: center; width: 100%; height: 100%; min-width: 18px; min-height: 18px; background: var(--tpx-grad); color: #fff; font-weight: 700; border-radius: 6px; font-size: 12px; }
.tpx-phone-app .tpx-mod-ph { width: 18px; height: 18px; font-size: 10px; }
.tpx-card-icon .tpx-mod-ph { font-size: 22px; border-radius: 0; }

/* 3D 體驗連結 */
.tpx-mt8 { margin-top: 10px !important; }
.tpx-3d-list { display: grid; gap: 28px; }
.tpx-3d-banner { flex-direction: row; gap: 28px; align-items: center; padding: 20px; }
.tpx-3d-art { flex: 0 0 52%; aspect-ratio: 31 / 10; border-radius: 12px; overflow: hidden; }
.tpx-3d-art svg { width: 100%; height: 100%; display: block; }
.tpx-3d-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.tpx-3d-body h3 { font-size: 24px; margin-bottom: 8px; }
.tpx-3d-body .tpx-card-desc { flex-grow: 0; }
@media (max-width: 900px) { .tpx-3d-banner { flex-direction: column; align-items: stretch; } .tpx-3d-art { flex: none; width: 100%; } .tpx-3d-body .tpx-btn { width: 100%; } }
.tpx-3d-sub { display: block; text-align: center; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--tpx-blue-600) !important; }
.tpx-3d-sub:hover { text-decoration: underline; }
.tpx-3d-subs { display: flex; justify-content: center; gap: 4px 20px; flex-wrap: wrap; margin-top: 2px; }

/* 3D 場景展示 */
.tpx-hall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tpx-hall-card { cursor: pointer; }
.tpx-hall-card .tpx-card-art { position: relative; }
.tpx-play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--tpx-blue-600); display: grid; place-items: center; font-size: 16px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4); transition: transform .2s; }
.tpx-hall-card:hover .tpx-play { transform: scale(1.12); }
@media (max-width: 900px) { .tpx-hall { grid-template-columns: 1fr; } }

/* 頁內 3D 檢視器 */
html.tpx-noscroll, html.tpx-noscroll body { overflow: hidden; }
.tpx-viewer { position: fixed; inset: 0; z-index: 1000; background: #06101d; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.tpx-viewer.is-open { opacity: 1; visibility: visible; }
.tpx-viewer-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--tpx-grad-hero); color: #fff; }
.tpx-viewer-brand { font-size: 14px; white-space: nowrap; }
.tpx-viewer-tabs { display: flex; gap: 4px; margin: 0 auto; background: rgba(255,255,255,.14); padding: 3px; border-radius: 10px; overflow-x: auto; max-width: 100%; }
.tpx-viewer-tabs button { border: 0; background: transparent; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tpx-viewer-tabs button:hover { background: rgba(255,255,255,.16); }
.tpx-viewer-tabs button.is-active { background: #fff; color: var(--tpx-blue-600); }
.tpx-viewer-actions { display: flex; gap: 6px; }
.tpx-viewer-btn { border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff !important; padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tpx-viewer-btn:hover { background: rgba(255,255,255,.25); }
.tpx-viewer-stage { position: relative; flex: 1; }
.tpx-viewer-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #06101d; }
.tpx-viewer-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #cfe3ff; font-size: 14px; z-index: 1; pointer-events: none; transition: opacity .3s; }
.tpx-viewer-loading span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--tpx-cyan-500); animation: tpx-spin 0.9s linear infinite; }
.tpx-viewer.is-loaded .tpx-viewer-loading { opacity: 0; }
@keyframes tpx-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .tpx-viewer-bar { flex-wrap: wrap; } .tpx-viewer-brand, #tpx-v-newtab { display: none; } .tpx-viewer-tabs { order: 3; width: 100%; margin: 0; } .tpx-viewer-actions { margin-left: auto; } }

/* 互動導覽目錄 */
.tpx-tourtabs { margin: 0 0 28px; }
.tpx-tourgroup { margin-bottom: 26px; }
.tpx-tourgroup h4 { font-size: 15px; font-weight: 700; color: var(--tpx-gray-900); margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--tpx-blue-600); }
.tpx-chaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tpx-chap { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 2px solid var(--tpx-gray-200); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tpx-chap:hover, .tpx-chap:focus-visible { border-color: var(--tpx-blue-600); box-shadow: 0 10px 24px -14px rgba(21,93,252,.55); transform: translateY(-1px); outline: none; }
.tpx-chap.is-full { background: linear-gradient(to bottom right, var(--tpx-blue-50), var(--tpx-cyan-50)); border-color: var(--tpx-blue-100); }
.tpx-chap-no { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--tpx-gray-100); color: var(--tpx-gray-600); }
.tpx-chap.is-full .tpx-chap-no { background: var(--tpx-grad); color: #fff; }
.tpx-chap-body { flex: 1; min-width: 0; }
.tpx-chap-body b { display: block; font-size: 14.5px; font-weight: 600; color: var(--tpx-gray-900); line-height: 1.45; }
.tpx-chap-body small { display: block; font-size: 12px; color: var(--tpx-blue-600); margin-top: 2px; }
.tpx-chap-play { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tpx-blue-50); color: var(--tpx-blue-600); transition: all .15s; }
.tpx-chap:hover .tpx-chap-play { background: var(--tpx-blue-600); color: #fff; }
.tpx-tourpanel[hidden] { display: none !important; }
@media (max-width: 600px) { .tpx-chaps { grid-template-columns: 1fr; } }

/* 檢視器章節選單 */
.tpx-viewer-chap { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.tpx-viewer-chap select { max-width: 260px; font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.95); color: var(--tpx-gray-900); }
@media (max-width: 1100px) { .tpx-viewer-chap span { display: none; } .tpx-viewer-chap select { max-width: 180px; } }
@media (max-width: 700px) { .tpx-viewer-chap { order: 4; width: 100%; } .tpx-viewer-chap select { max-width: none; width: 100%; } }

/* TP-ACC 主題介紹 */
.tpx-tourintro { background: linear-gradient(to bottom right, var(--tpx-blue-50), var(--tpx-cyan-50)); border: 1px solid var(--tpx-blue-100); border-radius: 16px; padding: 22px 24px; margin-bottom: 28px; display: grid; gap: 14px; }
.tpx-tourintro-head { display: flex; gap: 14px; align-items: center; }
.tpx-tourintro h3 { font-size: 20px; color: var(--tpx-gray-900); }
.tpx-tourintro p { color: var(--tpx-gray-600); font-size: 15px; }
.tpx-tourintro-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tpx-tourintro-steps div { background: #fff; border: 1px solid var(--tpx-gray-200); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.tpx-tourintro-steps span { font-size: 12px; font-weight: 600; color: var(--tpx-blue-600); }
.tpx-tourintro-steps b { color: var(--tpx-gray-900); }
.tpx-tourintro-steps small { color: var(--tpx-gray-600); font-size: 13px; }
.tpx-tourintro .tpx-btn { justify-self: start; }
@media (max-width: 700px) { .tpx-tourintro-steps { grid-template-columns: 1fr; } }

.tpx-mb8 { margin-bottom: 8px; }

/* =========================================================
   互動體驗場景：活潑配色主題（居家工作室 home／辦公室 office）
   ========================================================= */
.tpx-scene[data-theme] { background: #1e1b4b; }
.tpx-scene[data-theme]::before { display: none; }
.tpx-backdrop { position: absolute; inset: 0; z-index: 0; }
.tpx-backdrop svg { width: 100%; height: 100%; display: block; }
.tpx-scene[data-theme] .tpx-scene-3d { z-index: 1; }
.tpx-scene[data-theme] .tpx-stage-art { z-index: 2; }
.tpx-scene[data-theme] .tpx-scene-hud { z-index: 3; }
.tpx-scene[data-theme] .tpx-scene-tag { background: rgba(15, 23, 42, .55); border-color: rgba(255, 255, 255, .35); }

/* 螢幕：外框、桌布、工作列 */
.tpx-scene[data-theme] .tpx-monitor { border-width: 8px; border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(15, 23, 42, .65), inset 0 0 0 1px rgba(255,255,255,.08); }
.tpx-scene[data-theme] .tpx-screen { padding-bottom: 26px; }
.tpx-scene[data-theme] .tpx-screen-title { font-weight: 600; opacity: .9; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tpx-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.tpx-taskbar i { width: 10px; height: 10px; border-radius: 3px; background: #fff; opacity: .9; }
.tpx-taskbar i:nth-child(1) { background: #38bdf8; } .tpx-taskbar i:nth-child(2) { background: #f472b6; } .tpx-taskbar i:nth-child(3) { background: #fbbf24; } .tpx-taskbar i:nth-child(4) { background: #34d399; }
.tpx-taskbar span { margin-left: auto; font-size: 10px; font-weight: 600; color: #fff; }
.tpx-scene[data-theme] .tpx-monitor-stand { height: 22px; width: 18%; clip-path: none; border-radius: 0 0 4px 4px; }
.tpx-monitor-foot { display: none; }
.tpx-scene[data-theme] .tpx-monitor-foot { display: block; width: 34%; height: 8px; margin: 0 auto; border-radius: 6px; }

/* 桌面圖示：每個顏色不同 */
.tpx-scene[data-theme] .tpx-ico { color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.tpx-scene[data-theme] .tpx-ico span { border: 0; box-shadow: 0 6px 14px -6px rgba(0,0,0,.55); }
.tpx-scene[data-theme] .tpx-ico:nth-child(1) span { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.tpx-scene[data-theme] .tpx-ico:nth-child(2) span { background: linear-gradient(135deg, #f472b6, #f97316); }
.tpx-scene[data-theme] .tpx-ico:nth-child(3) span { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.tpx-scene[data-theme] .tpx-ico:nth-child(4) span { background: linear-gradient(135deg, #fbbf24, #ef4444); }
.tpx-scene[data-theme] .tpx-ico.is-threat span { box-shadow: 0 0 0 4px #fbbf24, 0 0 18px 4px rgba(251,191,36,.7); }
.tpx-scene[data-theme] .tpx-ico.is-blocked span { background: linear-gradient(135deg, #ef4444, #991b1b); box-shadow: 0 0 0 4px #fecaca, 0 0 18px 4px rgba(239,68,68,.7); }
.tpx-scene[data-theme] .tpx-ico.is-ok span { box-shadow: 0 0 0 4px #bbf7d0, 0 0 18px 4px rgba(34,197,94,.7); }
.tpx-scene[data-theme] .tpx-qr { box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); border-radius: 10px; }

/* 手機：彩色外殼、白色 App 畫面 */
.tpx-scene[data-theme] .tpx-phone { border: 0; padding: 10px 8px 12px; border-radius: 26px; gap: 6px; box-shadow: 0 24px 40px -16px rgba(15,23,42,.7), inset 0 0 0 2px rgba(255,255,255,.35); }
.tpx-scene[data-theme] .tpx-phone-notch { background: rgba(15,23,42,.65); width: 34%; height: 6px; }
.tpx-phone-status { display: none; }
.tpx-scene[data-theme] .tpx-phone-status { display: flex; justify-content: space-between; width: 100%; padding: 0 6px; font-size: 9px; font-weight: 700; color: #fff; }
.tpx-scene[data-theme] .tpx-phone-app { width: 100%; justify-content: center; padding: 6px 4px; border-radius: 10px 10px 0 0; color: #fff; background: linear-gradient(90deg, #155dfc, #00b8db); }
.tpx-scene[data-theme] .tpx-phone-body { background: #fff; color: #0f172a; border-radius: 0 0 12px 12px; font-weight: 600; margin-top: -6px; }
.tpx-scene[data-theme] .tpx-phone.is-active { box-shadow: 0 0 0 4px #fde047, 0 0 30px 6px rgba(253,224,71,.55), 0 24px 40px -16px rgba(15,23,42,.7); }
.tpx-scene[data-theme] .tpx-phone.is-hidden { opacity: .35; }

/* 總覽卡、ezMIS 儀表：亮色卡片 */
.tpx-scene[data-theme] .tpx-recap div, .tpx-scene[data-theme] .tpx-dash div { background: rgba(255,255,255,.92); color: #0f172a; border: 0; box-shadow: 0 10px 24px -12px rgba(15,23,42,.6); }
.tpx-scene[data-theme] .tpx-recap div.is-show { box-shadow: 0 0 0 3px #22c55e, 0 10px 24px -12px rgba(15,23,42,.6); }
.tpx-scene[data-theme] .tpx-recap div:nth-child(1) { border-top: 6px solid #6366f1; } .tpx-scene[data-theme] .tpx-recap div:nth-child(2) { border-top: 6px solid #f97316; } .tpx-scene[data-theme] .tpx-recap div:nth-child(3) { border-top: 6px solid #10b981; }
.tpx-scene[data-theme] .tpx-dash small { color: #475569; opacity: 1; }
.tpx-scene[data-theme] .tpx-dash b[style] { filter: saturate(1.4) brightness(.8); }

/* ----- 居家工作室：白色螢幕外框、夕陽桌布、珊瑚粉手機 ----- */
.tpx-scene[data-theme="home"] .tpx-monitor { border-color: #f8fafc; background: linear-gradient(135deg, #7c3aed 0%, #db2777 55%, #f59e0b 100%); }
.tpx-scene[data-theme="home"] .tpx-monitor-stand, .tpx-scene[data-theme="home"] .tpx-monitor-foot { background: linear-gradient(180deg, #f1f5f9, #cbd5e1); }
.tpx-scene[data-theme="home"] .tpx-phone { background: linear-gradient(160deg, #fb7185, #f472b6 50%, #c084fc); }

/* ----- 辦公室：深色外框、藍青桌布、藍紫手機 ----- */
.tpx-scene[data-theme="office"] .tpx-monitor { border-color: #1e293b; background: linear-gradient(135deg, #2563eb 0%, #06b6d4 60%, #10b981 100%); }
.tpx-scene[data-theme="office"] .tpx-monitor-stand, .tpx-scene[data-theme="office"] .tpx-monitor-foot { background: linear-gradient(180deg, #475569, #1e293b); }
.tpx-scene[data-theme="office"] .tpx-phone { background: linear-gradient(160deg, #6366f1, #3b82f6 50%, #06b6d4); }

@media (max-width: 600px) {
  .tpx-scene[data-theme] .tpx-phone { border-radius: 16px; padding: 6px 10px; }
  .tpx-scene[data-theme] .tpx-phone-status { display: none; }
  .tpx-scene[data-theme] .tpx-phone-app { border-radius: 8px; width: auto; }
  .tpx-scene[data-theme] .tpx-phone-body { margin-top: 0; border-radius: 8px; }
}

/* Windows 登入畫面（MFA 第 1 因子） */
.tpx-login { display: grid; justify-items: center; gap: 6px; }
.tpx-login-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.9); box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); }
.tpx-login b { font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tpx-login-pw { display: flex; align-items: center; gap: 8px; min-width: 150px; justify-content: space-between; padding: 5px 6px 5px 12px; border-radius: 8px; background: rgba(255,255,255,.92); color: #94a3b8; font-size: 12px; letter-spacing: 1px; }
.tpx-login-pw.is-filled { color: #0f172a; letter-spacing: 3px; box-shadow: 0 0 0 3px rgba(34,197,94,.75); }
.tpx-login-pw span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #155dfc; color: #fff; letter-spacing: 0; font-size: 12px; }
.tpx-login-f { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(15,23,42,.45); color: #fff; }

/* 頁尾：社群圖示、聯絡資訊圖示 */
.tpx-social { gap: 12px; }
.tpx-social a.tpx-social-ic { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border-radius: 10px; background: var(--tpx-gray-800); transition: background .2s, transform .2s; }
.tpx-social a.tpx-social-ic:hover { background: #fff; transform: translateY(-2px); }
.tpx-social a.tpx-social-ic svg { display: block; }
.tpx-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--tpx-gray-300); }
.tpx-contact svg { flex: none; color: #51a2ff; margin-top: 1px; }
.tpx-contact a:hover { color: #fff; }
