/* ============================================================
 * 蜜蜂職涯諮詢室 — 視覺系統
 * 蜂蜜金 × 曜石黑 × 六角蜂巢；玻璃質感、未來感、專業
 * ============================================================ */
:root {
  --honey: #FFB800;
  --honey-hi: #FFD25A;
  --honey-lo: #C98A00;
  --honey-tint: rgba(255, 184, 0, .1);
  --honey-glow: rgba(255, 184, 0, .35);
  --ink: #08090B;
  --ink-2: #0F1014;
  --ink-3: #16171C;
  --ink-4: #22242B;
  --glass: rgba(14, 15, 19, .74);
  --line: rgba(255, 196, 64, .15);
  --line-hi: rgba(255, 196, 64, .42);
  --text: #F5F2EA;
  --text-2: #C8C3B7;
  --muted: #8E897E;
  --ok: #5BD49A;
  --err: #FF7A66;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --top-h: 76px;
  --tab-h: 0px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --hexbg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='41.57' height='72' viewBox='0 0 41.57 72'%3E%3Cpath d='M20.78 0 41.57 12v24L20.78 48 0 36V12zM20.78 48v24' fill='none' stroke='%23FFB800' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}
body.app { overflow: hidden; height: 100dvh; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--honey-hi); }
svg { width: 1em; height: 1em; flex: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--honey); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 230, 170, .06);
}

/* ---------- 按鈕 ---------- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font-weight: 700; font-size: 14.5px; letter-spacing: .04em; white-space: nowrap;
  text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .2s var(--ease), filter .2s, background .2s, color .2s;
}
.btn svg { font-size: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, var(--honey-hi), var(--honey) 55%, #F29E00); color: #120D02; }
.btn-primary:hover { filter: brightness(1.08) drop-shadow(0 0 14px var(--honey-glow)); }
.btn-ghost { background: rgba(255, 184, 0, .07); color: var(--honey-hi); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn-ghost:hover { background: rgba(255, 184, 0, .14); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; --cut: 8px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.is-loading span { opacity: .6; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .2s, background .2s, box-shadow .2s;
}
.icon-btn svg { font-size: 19px; }
.icon-btn:hover { color: var(--honey-hi); background: var(--honey-tint); box-shadow: inset 0 0 0 1px var(--line-hi); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.icon-btn[aria-pressed="true"] { color: var(--honey); }
.link { color: var(--honey-hi); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 210, 90, .4); }

.chip {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--honey-hi);
  background: rgba(255, 184, 0, .06);
  box-shadow: inset 0 0 0 1px var(--line-hi);
  transition: background .2s, color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.chip:hover { background: rgba(255, 184, 0, .16); }
.chip.is-on { background: var(--honey); color: #120D02; box-shadow: none; }

/* ---------- 頭像（六角形相片） ---------- */
.av {
  display: inline-block; flex: none; padding: 1.5px;
  background: linear-gradient(160deg, var(--honey-hi), var(--honey-lo));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.av img { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: inherit; background: var(--ink-3); }

/* ---------- 載入 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  background: radial-gradient(60% 50% at 50% 45%, rgba(255, 184, 0, .08), transparent 70%), var(--ink);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-hive { position: relative; width: 120px; height: 112px; margin-bottom: 18px; }
.loader-hive i {
  position: absolute; width: 34px; height: 39px;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: hexPulse 1.6s var(--ease) infinite;
  left: 43px; top: 36px;
}
.loader-hive i:nth-child(2) { transform: translate(36px, 0); animation-delay: .1s; }
.loader-hive i:nth-child(3) { transform: translate(18px, -30px); animation-delay: .2s; }
.loader-hive i:nth-child(4) { transform: translate(-18px, -30px); animation-delay: .3s; }
.loader-hive i:nth-child(5) { transform: translate(-36px, 0); animation-delay: .4s; }
.loader-hive i:nth-child(6) { transform: translate(-18px, 30px); animation-delay: .5s; }
.loader-hive i:nth-child(7) { transform: translate(18px, 30px); animation-delay: .6s; }
@keyframes hexPulse { 0%, 100% { opacity: .15; } 40% { opacity: 1; filter: drop-shadow(0 0 10px var(--honey)); } }
.loader-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .12em; }
.loader-sub { margin: 0; color: var(--muted); font-size: 13px; }
.loader-bar { width: 180px; height: 2px; margin-top: 18px; background: rgba(255, 184, 0, .15); overflow: hidden; border-radius: 2px; }
.loader-retry { margin-top: 22px; }
.loader-bar span { display: block; width: 0; height: 100%; background: var(--honey); box-shadow: 0 0 10px var(--honey); transition: width .3s; }

/* ---------- 場景 ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, .75) 0, transparent 140px),
    linear-gradient(0deg, rgba(8, 9, 11, .6) 0, transparent 180px),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55));
}
.fallback-hero { display: none; }
.no-webgl #scene { display: none; }
.no-webgl { background: radial-gradient(50% 40% at 50% 40%, rgba(255, 184, 0, .14), transparent 70%), var(--hexbg), var(--ink); }
.no-webgl .fallback-hero { display: grid; place-items: center; position: fixed; inset: 0 0 30%; color: var(--honey); font-size: min(34vw, 220px); opacity: .9; filter: drop-shadow(0 0 40px var(--honey-glow)); pointer-events: none; }
.no-webgl .hotspots { display: none; }

/* ---------- 場景標籤 ---------- */
.hotspots { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity 1s .8s; }
.is-ready .hotspots { opacity: 1; }
.hotspot { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; transition: opacity .3s; }
.hotspot.is-off { opacity: 0; pointer-events: none; }
.hs-in { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); }
.hs-label {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 14px 7px; border-radius: 12px;
  background: rgba(10, 11, 14, .72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; white-space: nowrap;
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.hs-label small { font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.hs-label:has(.av) { flex-direction: row; gap: 9px; padding: 5px 14px 5px 6px; }
.hs-text { display: flex; flex-direction: column; align-items: flex-start; }
.hs-av { width: 28px; height: 32px; }
.hs-stem { width: 1px; height: 18px; background: linear-gradient(var(--line-hi), var(--honey)); }
.hs-dot { position: relative; width: 12px; height: 14px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hs-dot::after { content: ""; position: absolute; inset: 3px; background: #fff3cf; clip-path: inherit; }
.hs-in::after {
  content: ""; position: absolute; bottom: -9px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--honey); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.hotspot:hover .hs-label, .hotspot.is-hover .hs-label, .hotspot:focus-visible .hs-label { border-color: var(--honey); transform: translateY(-3px); background: rgba(30, 24, 8, .8); }
.hs-mini .hs-label { font-size: 12.5px; }
[data-panel="files"] [data-hs="archive"] .hs-label, [data-panel="booking"] [data-hs="terminal"] .hs-label { border-color: var(--honey); color: var(--honey-hi); }

/* ---------- 頂部導覽 ---------- */
.topbar {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-logo { font-size: 42px; color: var(--honey); filter: drop-shadow(0 0 12px rgba(255, 184, 0, .4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 17px; letter-spacing: .1em; }
.brand-text small { font: 600 10px/1.4 var(--font-en); letter-spacing: .32em; color: var(--honey); opacity: .85; }
.nav {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(14, 15, 19, .6); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav button { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s; }
.nav button:hover { color: var(--honey-hi); }
.nav button.is-active { background: var(--honey); color: #120D02; font-weight: 700; }

/* ---------- 對話區 ---------- */
.chat {
  position: fixed; z-index: 20; left: 24px; bottom: 24px;
  width: 384px; height: min(560px, calc(100dvh - var(--top-h) - 48px));
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s, height .35s var(--ease), width .35s var(--ease);
}
.is-ready .chat { opacity: 1; transform: none; }
.chat::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--honey), transparent); opacity: .6; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 10px; border-bottom: 1px solid var(--line); }
.chat-cast { display: flex; gap: 4px; min-width: 0; }
.cast { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 14px; text-align: left; transition: background .2s, box-shadow .2s; min-width: 0; }
.cast:hover { background: rgba(255, 255, 255, .04); }
.cast.is-active { background: var(--honey-tint); box-shadow: inset 0 0 0 1px var(--line-hi); }
.cast-av { width: 34px; height: 39px; transition: filter .3s; }
.cast.is-speaking .cast-av { filter: drop-shadow(0 0 8px var(--honey)); animation: talk .5s ease-in-out infinite alternate; }
@keyframes talk { to { transform: scale(1.06); } }
.cast b { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.cast small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.chat-tools { display: flex; gap: 6px; }
.only-mobile { display: none !important; }

.chat-log {
  flex: 1; overflow-y: auto; padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px);
  mask-image: linear-gradient(180deg, transparent 0, #000 18px);
}
.chat-log::-webkit-scrollbar, .drawer-body::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb, .drawer-body::-webkit-scrollbar-thumb { background: rgba(255, 184, 0, .2); border-radius: 6px; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg-av { width: 30px; height: 35px; margin-top: 2px; }
.msg-name { font-size: 11.5px; color: var(--muted); margin: 0 0 3px 2px; letter-spacing: .04em; }
.bubble {
  padding: 10px 13px; border-radius: 4px 16px 16px 16px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06);
  font-size: 14.5px; line-height: 1.7; color: var(--text);
  width: fit-content; max-width: 100%;
}
.msg-teacher .bubble { border-left: 2px solid var(--honey); }
.msg-xiaomi .bubble { background: rgba(255, 184, 0, .07); border-color: rgba(255, 184, 0, .14); }
.msg-user { grid-template-columns: 1fr; justify-items: end; }
.msg-user .bubble { background: linear-gradient(135deg, var(--honey-hi), var(--honey)); color: #160F02; border: 0; border-radius: 16px 4px 16px 16px; font-weight: 500; max-width: 82%; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--honey); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 12px 52px; }
.chat-options:empty { display: none; }
.chat-options .chip { animation: msgIn .4s var(--ease) both; }
.chat-options .chip:nth-child(2) { animation-delay: .05s; }
.chat-options .chip:nth-child(3) { animation-delay: .1s; }
.chat-options .chip:nth-child(4) { animation-delay: .15s; }
.chat-options .chip:nth-child(5) { animation-delay: .2s; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); outline: none;
  font-size: 15px; transition: border-color .2s, background .2s;
}
.chat-input input::placeholder { color: var(--muted); }
.chat-input input:focus { border-color: var(--honey); background: rgba(255, 184, 0, .05); }
.chat.is-min { height: 62px; width: 300px; }
.chat.is-min .chat-log, .chat.is-min .chat-options, .chat.is-min .chat-input { display: none; }
.chat.is-min [data-min] svg { transform: rotate(90deg); }

/* ---------- 抽屜面板 ---------- */
.drawer {
  position: fixed; z-index: 30;
  top: calc(var(--top-h) + var(--safe-t)); right: 24px; bottom: 24px;
  width: 460px; max-width: calc(100vw - 48px);
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  transform: translateX(calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform .55s var(--ease), opacity .4s, visibility 0s .55s;
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .4s; }
.drawer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--honey), transparent); }
.drawer::after { content: ""; position: absolute; inset: 0; background: var(--hexbg); opacity: .6; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 220px); mask-image: linear-gradient(180deg, #000, transparent 220px); }
.drawer-head { position: relative; z-index: 1; padding: 24px 24px 16px; }
.eyebrow { display: block; font: 600 11px/1 var(--font-en); letter-spacing: .26em; color: var(--honey); margin-bottom: 10px; }
.drawer-head h2 { margin: 0; font-size: 23px; line-height: 1.35; letter-spacing: .04em; outline: none; }
.drawer-head p { margin: 6px 0 0; color: var(--text-2); font-size: 13.5px; }
.drawer-close { position: absolute; top: 18px; right: 18px; }
.drawer-body { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 4px 24px 24px; overscroll-behavior: contain; }
.drawer-foot { position: relative; z-index: 1; padding: 14px 24px 18px; border-top: 1px solid var(--line); }

/* 檔案室 */
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.search input {
  width: 100%; height: 46px; padding: 0 14px 0 42px; border-radius: 12px; outline: none;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 15px;
}
.search input:focus { border-color: var(--honey); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .2s, background .2s, transform .25s var(--ease);
}
.file:hover { border-color: var(--line-hi); background: rgba(255, 184, 0, .04); transform: translateY(-1px); }
.ficon {
  position: relative; display: grid; place-items: center; width: 44px; height: 50px;
  background: var(--c);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ficon::before { content: ""; position: absolute; inset: 1.5px; background: color-mix(in srgb, var(--c) 14%, #121318); clip-path: inherit; }
.ficon b { position: relative; font: 700 10px/1 var(--font-en); letter-spacing: .06em; color: var(--c); }
.finfo { min-width: 0; }
.finfo h3 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.finfo p { margin: 2px 0 4px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fmeta { font-size: 11.5px; color: var(--muted); }
.factions { display: flex; gap: 6px; align-items: center; }
.file.is-skeleton { height: 78px; display: block; background: linear-gradient(90deg, rgba(255, 255, 255, .03) 25%, rgba(255, 184, 0, .07) 50%, rgba(255, 255, 255, .03) 75%) 0 0 / 200% 100%; animation: shimmer 1.4s infinite; border-color: transparent; }
.file.is-skeleton span { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* 預約 */
.steps { list-style: none; display: flex; gap: 6px; margin: 18px 0 0; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 2px solid rgba(255, 255, 255, .08); transition: color .3s, border-color .3s; }
.steps i { display: grid; place-items: center; width: 22px; height: 25px; font: 700 11px/1 var(--font-en); font-style: normal; background: rgba(255, 255, 255, .06); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps li.is-on { color: var(--text); border-color: var(--honey); }
.steps li.is-on i { background: var(--honey); color: #120D02; }
.steps li.is-done { color: var(--honey-hi); border-color: var(--honey-lo); }
.steps li.is-done i { background: var(--honey-lo); color: #120D02; }
.demo-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; color: var(--text-2); background: rgba(255, 184, 0, .08); border: 1px dashed var(--line-hi); }
.demo-note b { color: var(--honey-hi); }

.cal { padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font: 600 16px var(--font-en); letter-spacing: .06em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .3s; }
.cal-grid.is-loading { opacity: .4; pointer-events: none; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 10px; font: 500 14px var(--font-en); color: rgba(245, 242, 234, .28);
  transition: background .2s, color .2s;
}
.cal-day.has-slots { color: var(--text); background: rgba(255, 184, 0, .06); }
.cal-day.has-slots::after { content: ""; position: absolute; bottom: 5px; width: 6px; height: 7px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.cal-day.has-slots:hover { background: rgba(255, 184, 0, .16); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--line-hi); }
.cal-day.is-selected { background: var(--honey); color: #120D02; font-weight: 700; }
.cal-day.is-selected::after { background: #120D02; }
.cal-day:disabled { cursor: default; }
.cal-legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.lg-dot { width: 8px; height: 9px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lg-today { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-hi); margin-left: 8px; }
.times-title { margin: 20px 0 10px; font-size: 15px; font-weight: 700; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.time {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s, transform .2s var(--ease);
  animation: msgIn .35s var(--ease) both;
}
.time b { font: 600 17px var(--font-en); letter-spacing: .04em; }
.time span { font-size: 12px; color: var(--muted); font-family: var(--font-en); }
.time:hover { background: rgba(255, 184, 0, .12); box-shadow: inset 0 0 0 1px var(--honey); transform: translateY(-2px); }

.summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--r-md); background: linear-gradient(90deg, rgba(255, 184, 0, .14), rgba(255, 184, 0, .03)); border-left: 3px solid var(--honey); }
.summary > svg { font-size: 22px; color: var(--honey); }
.summary div { flex: 1; display: flex; flex-direction: column; }
.summary b { font-size: 15px; }
.summary span { font: 500 13px var(--font-en); color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-size: 13px; font-weight: 700; color: var(--text-2); padding: 0; }
.field em { color: var(--honey); font-style: normal; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; outline: none;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23FFB800' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select option { background: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--honey); background: rgba(255, 184, 0, .04); box-shadow: 0 0 0 3px rgba(255, 184, 0, .12); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--err); }
.err { font-size: 12px; color: var(--err); min-height: 0; }
.err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: grid; place-items: center; min-height: 46px; padding: 8px; border-radius: 12px; text-align: center; font-size: 13.5px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: all .2s; }
.seg-opt input:checked + span { background: var(--honey-tint); box-shadow: inset 0 0 0 1.5px var(--honey); color: var(--honey-hi); font-weight: 700; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); font-weight: 400 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--honey); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 6px; }

.done { text-align: center; padding: 16px 0; display: flex; flex-direction: column; align-items: center; }
.done-hex { width: 84px; height: 96px; display: grid; place-items: center; background: var(--honey); color: #120D02; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation: pop .6s var(--ease) both; filter: drop-shadow(0 0 24px var(--honey-glow)); }
.done-hex svg { font-size: 40px; }
@keyframes pop { from { transform: scale(.4) rotate(-30deg); opacity: 0; } }
.done h3 { margin: 18px 0 4px; font-size: 22px; }
.done > p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.done-card { width: 100%; margin: 0 0 18px; padding: 4px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .035); border: 1px solid var(--line); text-align: left; }
.done-card div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; }
.done-card div + div { border-top: 1px solid rgba(255, 255, 255, .06); }
.done-card dt { color: var(--muted); font-size: 13px; }
.done-card dd { margin: 0; font: 600 14px var(--font-en); text-align: right; }
.done-actions { display: grid; gap: 10px; width: 100%; margin-bottom: 16px; }

/* 關於 */
.lead { margin: 0 0 22px; font-size: 15px; line-height: 1.85; color: var(--text-2); }
.portrait { position: relative; margin: 0 0 20px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.portrait img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 18%; }
.portrait figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 14px; display: flex; flex-direction: column; background: linear-gradient(transparent, rgba(8, 9, 11, .88)); }
.portrait figcaption b { font-size: 18px; letter-spacing: .08em; }
.portrait figcaption span { font: 600 11px var(--font-en); letter-spacing: .2em; color: var(--honey); }
.assistant { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 184, 0, .06); border: 1px solid var(--line); }
.assistant p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.assistant b { color: var(--text); }
.assistant-av { width: 52px; height: 60px; }
.sec-title { margin: 22px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--honey); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.services li { padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 4px; }
.services i { font: 700 12px var(--font-en); font-style: normal; color: var(--honey); letter-spacing: .1em; }
.services b { font-size: 15px; }
.services span { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.process { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.process li { position: relative; padding: 0 0 18px 44px; counter-increment: p; display: flex; flex-direction: column; }
.process li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 28px; height: 32px; display: grid; place-items: center; font: 700 13px var(--font-en); background: var(--honey); color: #120D02; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.process li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: 4px; width: 1px; background: var(--line-hi); }
.process b { font-size: 15px; }
.process span { font-size: 13px; color: var(--text-2); }
.about-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.fine { margin: 26px 0 0; text-align: center; font-size: 12px; }
.fine a { color: var(--muted); }

/* ---------- 底部導覽（手機） ---------- */
.tabbar { display: none; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; z-index: 120; top: calc(var(--top-h) + var(--safe-t) + 4px); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 14px; font-size: 14px; background: rgba(20, 21, 26, .92); border: 1px solid var(--line-hi); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(-10px); transition: all .35s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast-error { border-color: rgba(255, 122, 102, .6); }
.toast-ok { border-color: rgba(91, 212, 154, .6); }

/* ============================================================
 * RWD
 * ============================================================ */
@media (max-width: 1180px) {
  .nav button { padding: 8px 14px; }
  .chat { width: 352px; }
  .drawer { width: 420px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .topbar { padding-left: 18px; padding-right: 18px; }
  .brand-text small { display: none; }
  .btn-cta { display: none; }
  .chat { left: 16px; bottom: 16px; width: 330px; }
  .drawer { right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); }
  [data-panel] .chat { opacity: .0; pointer-events: none; }
}

@media (max-width: 767px) {
  :root { --top-h: 60px; --tab-h: calc(64px + var(--safe-b)); }
  body { font-size: 14.5px; }
  .topbar { padding: var(--safe-t) 16px 0; }
  .brand { gap: 10px; }
  .brand-logo { font-size: 34px; }
  .brand-text b { font-size: 15.5px; }
  .brand-text small { font-size: 8.5px; letter-spacing: .26em; }
  .nav { display: none; }
  .btn-cta { min-height: 38px; padding: 0 14px; font-size: 13px; --cut: 8px; }
  .btn-cta svg { display: none; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    height: var(--tab-h); padding-bottom: var(--safe-b);
    background: rgba(10, 11, 14, .88); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); position: relative; }
  .tabbar svg { font-size: 23px; }
  .tabbar .is-active { color: var(--honey); }
  .tabbar .is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; background: var(--honey); box-shadow: 0 0 10px var(--honey); }

  .only-desk { display: none !important; }
  .only-mobile { display: inline-grid !important; }
  .chat {
    left: 10px; right: 10px; bottom: calc(var(--tab-h) + 10px); width: auto;
    height: auto; max-height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - 24px);
  }
  .chat-head { padding: 8px; }
  .cast { padding: 4px 10px 4px 4px; }
  .cast-av { width: 30px; height: 34px; }
  .cast small { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .chat-log { flex: none; max-height: 118px; padding: 10px 12px 4px; }
  .chat-log .msg:not(:nth-last-child(-n+1)) { display: none; }
  .chat-options { flex-wrap: nowrap; overflow-x: auto; padding: 4px 12px 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .chat-options::-webkit-scrollbar { display: none; }
  .chat-input { display: none; }
  .chat-expand svg { transition: transform .3s var(--ease); }
  .chat.is-expanded { height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - 24px); }
  .chat.is-expanded .chat-log { flex: 1; max-height: none; }
  .chat.is-expanded .chat-log .msg { display: grid; }
  .chat.is-expanded .chat-options { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .chat.is-expanded .chat-input { display: flex; }
  .chat.is-expanded .chat-expand svg { transform: rotate(180deg); }
  .msg { grid-template-columns: 26px 1fr; }
  .msg-av { width: 26px; height: 30px; }
  .bubble { font-size: 14px; padding: 9px 12px; }
  [data-panel] .chat { opacity: 0; pointer-events: none; transform: translateY(20px); }

  .drawer {
    top: 0; right: 0; left: 0; bottom: var(--tab-h);
    width: 100%; max-width: none; border-radius: 0; border-width: 0;
    padding-top: var(--safe-t);
    transform: translateY(40px); z-index: 45;
  }
  .drawer-head { padding: 20px 18px 14px; }
  .drawer-head h2 { font-size: 21px; padding-right: 44px; }
  .drawer-close { top: calc(14px + var(--safe-t)); right: 14px; }
  .drawer-body { padding: 4px 18px 20px; }
  .drawer-foot { padding: 12px 18px 14px; }
  .file { grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; }
  .ficon { width: 40px; height: 46px; }
  .factions { grid-column: 1 / -1; justify-content: flex-end; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .services { grid-template-columns: 1fr; }
  .hs-label { font-size: 12px; padding: 4px 10px 5px; }
  .hs-label small { display: none; }
  .hs-av { width: 22px; height: 25px; }
  .hs-label:has(.av) { padding: 3px 10px 3px 4px; gap: 6px; }
  .hs-stem { height: 12px; }
  .chat-open .hotspots, [data-panel] .hotspots { opacity: 0; pointer-events: none; }
  .chat-open .hotspot { pointer-events: none; }
}

@media (max-width: 360px) {
  .brand-text small { display: none; }
  .cast b { font-size: 13px; }
  .about-cta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
