/* Orange 全產品導覽（官網版）2026-11-15。只作用在 #otour 內，不影響網站其他頁面。
   樣式取自 Artifact「Orange 系統 3D 導覽」，拿掉互動探索相關規則，字型改用網站的 DM Sans。 */
.tour-page { padding-block: 56px 72px; }
.tour-page .section-head { margin-bottom: 28px; }
.tour-page h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }

#otour { --o: #ea6000; position: relative; display: flex; flex-direction: column; height: min(78vh, 760px); min-height: 460px;
  border: 1px solid var(--line, #e4e7ec); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  color: #1c1f23; font-family: "Noto Sans TC", "DM Sans", "Microsoft JhengHei", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
#otour:fullscreen { height: 100vh; border-radius: 0; border: 0; }
#otour *, #otour *::before, #otour *::after { box-sizing: border-box; }
#ot-view { flex: 1; position: relative; overflow: hidden; outline: none; cursor: pointer;
  background: radial-gradient(120% 90% at 70% 10%, #fff 0%, #f1f2f3 45%, #e3e6e9 100%); }
#ot-view:focus-visible { box-shadow: inset 0 0 0 3px var(--o); }
#ot-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ot-labels { position: absolute; inset: 0; pointer-events: none; --k: 1; }

#otour .hdr { position: absolute; left: 3.2%; top: 3.4%; max-width: 62%; pointer-events: none; }
#otour .kicker { font: 800 calc(13px * var(--k)) "DM Sans", "Noto Sans TC", sans-serif; letter-spacing: .2em; color: #e15f00; margin: 0 0 .5em; }
#otour .title { font-weight: 900; font-size: calc(30px * var(--k)); line-height: 1.2; margin: 0; color: #1c1f23; letter-spacing: 0; }
#otour .cap { position: absolute; left: 3.2%; right: 3.2%; bottom: 3.2%; margin: 0; font-size: calc(16.5px * var(--k)); line-height: 1.6; color: #2a2f36;
  background: rgba(255,255,255,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-left: 4px solid var(--o); border-radius: 0 10px 10px 0;
  padding: .65em 1em; box-shadow: 0 6px 24px rgba(30,40,60,.08); }
#otour .fadein { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s ease; }
#otour .fadein.show { opacity: 1; transform: none; }

#otour .lab { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .45s ease; will-change: transform; }
#otour .lab.show { opacity: 1; }
#otour .lab .pin { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--o); box-shadow: 0 0 0 3px rgba(234,96,0,.22); }
#otour .lab .stem { position: absolute; left: -1px; bottom: 0; width: 2px; background: var(--o); opacity: .8; }
#otour .lab .bub { position: absolute; bottom: 0; transform: translateX(-50%); background: #fff; border: 2px solid var(--o); border-radius: 10px; padding: .42em .75em .45em; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(30,40,60,.14); font-size: calc(14.5px * var(--k)); line-height: 1.25; text-align: center; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
#otour .lab:not(.show) .bub { transform: translateX(-50%) scale(.7); }
#otour .lab .bub b { display: block; font-weight: 700; color: #1c1f23; }
#otour .lab .bub span { display: block; font-size: .8em; color: #5e6670; margin-top: .15em; }
#otour .lab .bub i { font-style: normal; display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--o); color: #fff;
  font: 800 .85em "DM Sans", sans-serif; margin-right: .4em; vertical-align: .08em; }
#otour .lab.g .bub { border-color: #0e9f75; }
#otour .lab.g .pin { background: #0e9f75; box-shadow: 0 0 0 3px rgba(14,159,117,.22); }
#otour .lab.g .stem { background: #0e9f75; }
#otour .lab .chip { display: inline-block; font-size: .72em; font-weight: 700; color: #b34a00; background: #fdebdc; border-radius: 99px; padding: .1em .6em; margin-bottom: .25em; }
#otour .lab.tag .bub { background: var(--o); border-color: var(--o); color: #fff; font: 800 calc(14px * var(--k)) "DM Sans", "Noto Sans TC", sans-serif; letter-spacing: .12em; padding: .35em .9em; }
#otour .lab.tag .bub b { color: #fff; font-weight: 800; }
#otour .lab.tag .stem, #otour .lab.tag .pin { display: none; }

#otour .center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; padding: 16px; }
#otour .center.top { align-items: flex-start; padding-top: 3.5%; }
#otour .center.top .panel { padding: 1.2em 2em; background: rgba(255,255,255,.82); }
#otour .center.top .panel h1 { font-size: 2.3em; margin-bottom: .25em; }
#otour .panel { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px; box-shadow: 0 20px 60px rgba(30,40,60,.18);
  padding: 2em 2.4em; max-width: min(980px, 100%); max-height: 100%; overflow: auto; text-align: center; font-size: calc(16px * var(--k)); }
#otour .panel .brand { font: 800 1.35em "DM Sans", sans-serif; letter-spacing: .3em; color: var(--o); margin-bottom: .8em; }
#otour .panel .brand b { color: #1c1f23; }
#otour .panel h1 { font-size: 2.9em; font-weight: 900; line-height: 1.15; margin: 0 0 .45em; letter-spacing: 0; }
#otour .panel p { font-size: 1.25em; line-height: 1.6; color: #4a515b; margin: 0; }
#otour .panel .stmt { font-size: 1.75em; font-weight: 700; line-height: 1.45; color: #1c1f23; margin: 0 0 1em; }
#otour .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; text-align: left; }
#otour .cols div { border-top: 3px solid var(--o); padding-top: .7em; }
#otour .cols b { display: block; color: #e15f00; font-size: 1em; margin-bottom: .3em; }
#otour .cols span { font-size: 1.05em; line-height: 1.5; color: #2a2f36; }
#otour .panel .more { margin-top: 1.2em; font-size: 1.1em; font-weight: 700; color: #1c1f23; }
#otour .acts { margin-top: 1em; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; pointer-events: auto; }
#otour .acts .btn { font-size: 15px; padding: 10px 22px; }

#ot-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-top: 1px solid #dde1e6; }
#ot-bar button { flex: none; width: 40px; height: 40px; border-radius: 20px; border: 1px solid #d3d8de; background: #f6f7f8; color: #1c1f23; font-size: 15px; cursor: pointer; display: grid; place-items: center; padding: 0; font-family: inherit; }
#ot-bar button:hover { border-color: var(--o); }
#ot-segs { flex: 1; display: flex; gap: 4px; min-width: 0; }
#otour .seg { position: relative; height: 30px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
#otour .seg .tr { height: 5px; border-radius: 3px; background: #e3e6ea; overflow: hidden; }
#otour .seg .fi { height: 100%; width: 0; background: var(--o); }
#otour .seg .nm { font-size: 11px; color: #8a919a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
#otour .seg.cur .nm { color: #e15f00; font-weight: 700; }
#ot-time { flex: none; font: 500 12px ui-monospace, Menlo, Consolas, monospace; color: #8a919a; min-width: 84px; text-align: right; }
#ot-hint { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; font-size: 13px; color: #8a919a; display: none; pointer-events: none; }

@media (max-width: 700px) {
  .tour-page { padding-block: 36px 48px; }
  #otour { height: 72vh; min-height: 420px; border-radius: 14px; }
  #otour .hdr { max-width: 94%; }
  #otour .title { font-size: calc(24px * var(--k)); }
  #otour .cap { font-size: calc(15px * var(--k)); }
  #otour .panel { padding: 1.2em 1.1em; }
  #otour .panel h1 { font-size: 2.2em; }
  #otour .panel .stmt { font-size: 1.3em; }
  #otour .cols { display: none; }
  #otour .panel .more { margin-top: .4em; }
  #ot-bar { gap: 6px; padding: 8px 10px; }
  #ot-bar button { width: 36px; height: 36px; }
  #otour .seg { height: 18px; }
  #otour .seg .nm { display: none; }
  #ot-time { min-width: 0; }
}
@media (orientation: portrait) and (max-width: 700px) { #otour.c0 #ot-hint { display: block; } }
/* 窄畫面：標籤只留標題、結語面板只留主句與按鈕 */
#otour.narrow .lab .bub span { display: none; }
#otour.narrow .lab .bub { padding: .32em .6em; }
