/* 展示模式（步驟 8）：展示入口、展示列；2026-10-16 改為淺色 SaaS 風（抽象線條背景見 theme-light.css 的 .ho-deco） */
.demo-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; background: var(--ho-bg); color: var(--ho-text); overflow-x: hidden; }
.demo-page > header, .demo-page > main, .demo-page > footer { position: relative; z-index: 1; }
.demo-page a { color: var(--ho-primary); }
/* 主視覺 */
.demo-header { padding: 3.5rem 1rem 1.75rem; text-align: center; }
.demo-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--ho-line); border-radius: 999px; padding: 0.3rem 0.4rem 0.3rem 0.4rem; font-size: 0.85rem; color: var(--ho-muted); box-shadow: var(--ho-shadow); margin-bottom: 1.25rem; }
.demo-eyebrow .demo-eyebrow-text { padding-right: 0.6rem; }
.demo-eyebrow .demo-eyebrow-text i { color: var(--ho-primary); margin-right: 0.35rem; }
.demo-header h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.6rem; color: var(--ho-ink); }
.demo-header h1 .demo-h1-grad { background: linear-gradient(120deg, #4f46e5 10%, #0ea5e9 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-header .demo-site { font-size: 1.15rem; color: var(--ho-muted); max-width: 720px; margin: 0 auto; line-height: 1.7; }
/* 流程示意：移交人 → 主管 → 接任人 */
.demo-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 2rem auto 0; max-width: 820px; list-style: none; padding: 0; }
.demo-flow-step { display: flex; align-items: center; gap: 0.6rem; background: var(--ho-surface); border: 1px solid var(--ho-line); border-radius: 14px; padding: 0.6rem 1rem 0.6rem 0.6rem; box-shadow: var(--ho-shadow); }
.demo-flow-step .demo-flow-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
.demo-flow-step strong { display: block; color: var(--ho-ink); font-size: 0.95rem; line-height: 1.2; }
.demo-flow-step small { display: block; color: var(--ho-muted); font-size: 0.78rem; text-align: left; }
.demo-flow-arrow { color: var(--ho-faint); font-size: 0.9rem; padding: 0 0.25rem; }
/* 特色標籤 */
.demo-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-top: 1.5rem; font-size: 0.9rem; color: var(--ho-muted); }
.demo-features span { display: inline-flex; align-items: center; gap: 0.4rem; }
.demo-features i { color: var(--ho-success); }
.demo-main { flex: 1 1 auto; padding: 0 1rem 2.5rem; }
/* 角色色調 */
.demo-tone-outgoing { --demo-tone: #4f46e5; --demo-tone-soft: #eef2ff; }
.demo-tone-supervisor { --demo-tone: #d97706; --demo-tone-soft: #fef3c7; }
.demo-tone-incoming { --demo-tone: #0891b2; --demo-tone-soft: #cffafe; }
.demo-tone-position { --demo-tone: #7c3aed; --demo-tone-soft: #ede9fe; }
.demo-tone-hr { --demo-tone: #16a34a; --demo-tone-soft: #dcfce7; }
.demo-flow-icon.demo-tone-outgoing, .demo-flow-icon.demo-tone-supervisor, .demo-flow-icon.demo-tone-incoming { background: var(--demo-tone-soft); color: var(--demo-tone); }
/* 角色卡、職位卡 */
.demo-roles { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; max-width: 1240px; margin: 0 auto; }
.demo-role { position: relative; flex: 1 1 260px; max-width: 300px; background: rgba(255, 255, 255, 0.92); color: var(--ho-text); border: 1px solid var(--ho-line); border-radius: 18px; padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--ho-shadow-lg); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-role::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--demo-tone, var(--ho-primary)); }
.demo-role::after { content: ""; position: absolute; z-index: 0; width: 150px; height: 150px; right: -60px; top: -60px; border-radius: 50%; border: 18px solid var(--demo-tone-soft, var(--ho-primary-soft)); opacity: 0.7; pointer-events: none; }
.demo-role > * { position: relative; z-index: 1; }
.demo-role:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12); border-color: var(--demo-tone-soft, var(--ho-primary-line)); }
.demo-role-icon { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px; background: var(--demo-tone-soft, var(--ho-primary-soft)); color: var(--demo-tone, var(--ho-primary)); font-size: 1.35rem; margin-bottom: 1rem; }
.demo-role.demo-role-primary { border-color: var(--demo-tone); }
.demo-role > .demo-role-tag { position: absolute; z-index: 2; top: 1.25rem; right: 1.25rem; background: var(--demo-tone); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.6rem; }
.demo-role h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; }
.demo-role .demo-persona { color: var(--ho-muted); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.6; }
.demo-role .demo-persona i { color: var(--demo-tone, var(--ho-primary)); margin-right: 0.3rem; }
.demo-role ol { list-style: none; counter-reset: demo-step; padding-left: 0; font-size: 0.92rem; flex: 1 1 auto; margin-bottom: 1.25rem; }
.demo-role ol li { counter-increment: demo-step; position: relative; padding: 0.4rem 0 0.4rem 2.1rem; line-height: 1.55; }
.demo-role ol li + li { border-top: 1px dashed var(--ho-line-soft); }
.demo-role ol li::before { content: counter(demo-step); position: absolute; left: 0; top: 0.42rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--demo-tone-soft, var(--ho-primary-soft)); color: var(--demo-tone, var(--ho-primary)); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.demo-role .btn { font-size: 1.02rem; font-weight: 600; padding: 0.75rem; border-radius: 12px; border: 0; background: var(--demo-tone, var(--ho-primary)); color: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12); }
.demo-role .btn:hover, .demo-role .btn:focus { filter: brightness(0.93); color: #fff; }
.demo-role .btn i { margin-left: 0.4rem; transition: transform 0.15s ease; }
.demo-role .btn:hover i { transform: translateX(3px); }
.demo-role .btn.disabled, .demo-role .btn:disabled { background: var(--ho-line); color: var(--ho-muted); box-shadow: none; }
/* 區塊標題（職位選擇、架構） */
.demo-section-title { display: flex; align-items: center; justify-content: center; gap: 0.6rem; text-align: center; font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--ho-ink); }
.demo-positions-title { text-align: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
.demo-position .demo-position-desc { font-size: 0.93rem; color: var(--ho-text); flex: 1 1 auto; margin-bottom: 1.25rem; line-height: 1.65; }
.demo-position .demo-degraded { margin-top: 0.75rem; }
.demo-selected-position { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.75rem; max-width: 1140px; margin: 0 auto 1.5rem; font-size: 1rem; }
.demo-selected-position .demo-selected-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ho-surface); border: 1px solid var(--ho-line); border-radius: 999px; padding: 0.35rem 1rem 0.35rem 0.4rem; box-shadow: var(--ho-shadow); color: var(--ho-ink); }
.demo-selected-position .demo-selected-chip .ho-card-icon { width: 28px; height: 28px; margin: 0; border-radius: 50%; }
/* 提示與狀態 */
.demo-notice { max-width: 1140px; margin: 1.75rem auto 0; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--ho-line); border-radius: 16px; padding: 1.1rem 1.4rem; font-size: 0.93rem; display: flex; gap: 1rem; align-items: flex-start; }
.demo-notice .ho-card-icon { margin: 0.1rem 0 0; }
.demo-notice strong { color: var(--ho-ink); }
.demo-notice ul { margin: 0.35rem 0 0; padding-left: 1.2rem; color: var(--ho-text); line-height: 1.7; }
.demo-footer { padding: 1.25rem 1rem 1.5rem; text-align: center; font-size: 0.82rem; color: var(--ho-faint); }
.demo-continue { max-width: 760px; margin: 0 auto 1.5rem; background: var(--ho-surface); color: var(--ho-ink); border: 1px solid var(--ho-primary-line); border-left: 4px solid var(--ho-primary); border-radius: 14px; padding: 0.9rem 1.2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; box-shadow: var(--ho-shadow-lg); }
.demo-continue .btn-dark { background: var(--ho-primary); border-color: var(--ho-primary); }
.demo-badge-mock { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--ho-danger-soft); color: var(--ho-danger-ink); border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.demo-degraded { background: var(--ho-warning-soft); color: var(--ho-warning-ink); border: 1px solid #fde68a; border-radius: 12px; padding: 0.6rem 1rem; max-width: 760px; margin: 0 auto 1rem; text-align: center; font-weight: 600; }
/* 展示入口控管：通行碼、開放時段 */
.demo-gate { max-width: 520px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); color: var(--ho-text); border: 1px solid var(--ho-line); border-radius: 20px; padding: 2.25rem 2rem; text-align: center; box-shadow: var(--ho-shadow-lg); }
.demo-gate .demo-gate-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--ho-primary), var(--ho-accent)); color: #fff; font-size: 1.6rem; margin-bottom: 1rem; box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3); }
.demo-gate h2 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.demo-gate p { color: var(--ho-muted); font-size: 0.95rem; line-height: 1.7; }
.demo-gate-form { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.demo-gate-form input { max-width: 260px; text-align: center; letter-spacing: 0.15em; text-transform: uppercase; }
/* 展示入口：系統架構簡介（地端、Web 與 AI 可同一台） */
.demo-arch { max-width: 1140px; margin: 2.5rem auto 0; background: rgba(255, 255, 255, 0.95); color: var(--ho-text); border: 1px solid var(--ho-line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--ho-shadow-lg); }
.demo-arch h2 { display: flex; align-items: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.demo-arch-text ul { list-style: none; padding-left: 0; margin-bottom: 1.25rem; font-size: 0.93rem; line-height: 1.7; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.demo-arch-text li { margin: 0; background: var(--ho-bg); border: 1px solid var(--ho-line-soft); border-radius: 14px; padding: 1rem 1.1rem; }
.demo-arch-text li .demo-arch-li-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 0.6rem; background: var(--ho-primary-soft); color: var(--ho-primary); }
.demo-arch-text li strong { display: block; color: var(--ho-ink); margin-bottom: 0.2rem; }
.demo-arch-svg { display: block; width: 100%; height: auto; max-width: 960px; margin: 0 auto; font-family: inherit; }
.demo-arch-svg .arch-box { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 1.5; }
.demo-arch-svg .arch-web { fill: #eef2ff; stroke: #818cf8; }
.demo-arch-svg .arch-ai { fill: #ecfeff; stroke: #22d3ee; }
.demo-arch-svg .arch-host-box { fill: #fafbff; stroke: #a5b4fc; stroke-width: 1.5; stroke-dasharray: 6 6; }
.demo-arch-svg .arch-host-title { font-size: 15px; font-weight: 700; fill: #4338ca; }
.demo-arch-svg .arch-label { font-size: 15px; font-weight: 700; fill: #0f172a; }
.demo-arch-svg .arch-sub { font-size: 11px; fill: #64748b; }
.demo-arch-svg .arch-item { font-size: 12px; fill: #334155; }
.demo-arch-svg .arch-icon { fill: #fff; stroke: #475569; stroke-width: 1.5; }
.demo-arch-svg .arch-icon-fill { fill: #475569; }
.demo-arch-svg .arch-dot { fill: #22c55e; }
.demo-arch-svg .arch-pin { stroke: #475569; stroke-width: 1.5; }
.demo-arch-svg .arch-line { stroke: #6366f1; stroke-width: 2; }
.demo-arch-svg .arch-arrowhead { fill: #6366f1; }
.demo-arch-svg .arch-note-box { fill: #f0fdf4; stroke: #86efac; stroke-width: 1.5; }
.demo-arch-svg .arch-note { font-size: 12px; font-weight: 700; fill: #15803d; }
.demo-arch-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; margin-top: 1rem; font-size: 0.88rem; color: var(--ho-muted); }
.demo-arch-legend i { margin-right: 0.35rem; color: var(--ho-primary); }
@media (max-width: 991px) { .demo-arch-text ul { grid-template-columns: 1fr; } }
/* 後台展示列（固定於頂端選單下方）：白底細條、左側漸層色線 */
.demo-bar { position: sticky; top: 0; z-index: 1040; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--ho-line); box-shadow: inset 0 3px 0 0 #6366f1, 0 2px 8px rgba(15, 23, 42, 0.04); padding: 0.55rem 1rem 0.45rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.88rem; color: var(--ho-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-bar .demo-bar-title { font-weight: 700; color: var(--ho-ink); }
.demo-bar .demo-bar-title i { color: var(--ho-primary); margin-right: 0.3rem; }
.demo-bar .demo-bar-role { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--ho-primary-soft); color: var(--ho-primary); border-radius: 999px; padding: 0.15rem 0.7rem; font-weight: 600; }
.demo-bar form { display: inline; margin: 0; }
.demo-bar .demo-bar-roles { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--ho-muted); }
.demo-bar .demo-bar-roles .btn { margin-right: 0; border-radius: 999px; padding: 0.15rem 0.65rem; }
.demo-bar .btn-xs { border-radius: 999px; padding: 0.15rem 0.65rem; }
.demo-bar .demo-bar-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.demo-bar .demo-idle { color: var(--ho-warning-ink); min-width: 8rem; text-align: right; }
.demo-bar .demo-idle.demo-idle-warn { color: var(--ho-danger); font-weight: 700; }
/* AI 問答排隊與降級 */
.ai-chat-queued { color: var(--ho-warning-ink); }
.ai-chat-degraded-banner { background: var(--ho-warning-soft); border: 1px solid #fde68a; border-radius: 10px; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
@media (max-width: 767px) { .demo-header { padding-top: 2.25rem; } .demo-header h1 { font-size: 2rem; } .demo-flow-arrow { display: none; } .demo-bar .demo-bar-right { margin-left: 0; width: 100%; } }
/* 展示列蓋住固定的上方列與側欄品牌區時，品牌圖示不留陰影，避免邊緣露出 */
.wrapper:has(> .demo-bar) .ho-sidebar .ho-brand-mark { box-shadow: none; visibility: hidden; }
