/* ============================================================
   現場即時字幕官網 — Soft UI Evolution
   亮色專業風：navy 主色 / sky 藍 CTA / 柔和層次陰影
   ============================================================ */

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --accent: #0369A1;
  --accent-deep: #075985;
  --accent-soft: #E0F2FE;
  --grad-a: #0EA5E9;
  --grad-b: #4F46E5;
  --danger: #DC2626;
  --ok: #059669;
  --screen-bg: #0B1220;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 48px -16px rgba(15, 23, 42, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-sans: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

[hidden] { display: none !important; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 3px solid rgba(14, 165, 233, .55); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { scroll-margin-top: 84px; }

.ic {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.25em; flex-shrink: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- 按鈕 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  font: inherit; font-weight: 700; font-size: 15.5px;
  border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  box-shadow: 0 2px 6px rgba(14, 165, 233, .3), 0 10px 24px -8px rgba(79, 70, 229, .45);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(14, 165, 233, .35), 0 16px 32px -8px rgba(79, 70, 229, .5); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--accent-deep); border-color: var(--grad-a); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(2, 6, 23, .5); }

.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: 44px; }
.link-arrow .ic { transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(248, 250, 252, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; display: inline-flex; }
.brand-text { font-size: 18px; line-height: 1.15; display: inline-flex; flex-direction: column; }
.brand-text small { font-size: 9.5px; font-weight: 700; letter-spacing: .22em; color: var(--ink-3); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.btn) {
  color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 2px;
  border-radius: 6px; transition: color .2s;
}
.site-nav > a:not(.btn):hover { color: var(--accent); }
.nav-cta { min-height: 42px; padding: 8px 18px; }

.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */

.hero { position: relative; padding: 150px 0 84px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-a { width: 520px; height: 520px; background: #BAE6FD; top: -180px; right: -80px; animation: drift 22s ease-in-out infinite alternate; }
.blob-b { width: 420px; height: 420px; background: #C7D2FE; top: 30%; left: -180px; animation: drift 26s ease-in-out infinite alternate-reverse; }
.blob-c { width: 320px; height: 320px; background: #A5F3FC; bottom: -140px; right: 26%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}

.hero-wrap { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-wrap > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.hero h1 { font-size: clamp(34px, 3.2vw, 46px); font-weight: 900; letter-spacing: .015em; margin: 20px 0 18px; }
.nowrap { white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
.grad-text {
  background: linear-gradient(120deg, var(--grad-a) 10%, var(--grad-b) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17.5px; color: var(--ink-2); max-width: 34em; }

.hero-points { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15.5px; }
.hero-points .ic { color: var(--ok); width: 1.15em; height: 1.15em; position: absolute; left: 0; top: .3em; }
.hero-points strong { color: var(--ink); }
.tw-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; vertical-align: 1px;
  color: #059669; border: 1px solid rgba(5, 150, 105, .45); background: rgba(5, 150, 105, .08);
  border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; letter-spacing: .05em;
  white-space: nowrap;
}
.tw-chip .tw-ic {
  width: 12px; height: 12px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-scenes { margin-top: 22px; font-size: 13.5px; letter-spacing: .06em; color: var(--ink-3); }

/* ---- Hero 視覺：大螢幕字幕模擬 ---- */

.hero-visual { position: relative; padding: 0 76px 84px 0; }

.screen-mock {
  position: relative;
  background: linear-gradient(160deg, #101A30, var(--screen-bg) 55%);
  border: 1px solid #1E293B;
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(148, 163, 184, .08);
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.screen-mock::after { /* 螢幕反光 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0%, transparent 30%);
  pointer-events: none;
}

.screen-top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
  background: linear-gradient(90deg, rgba(14, 165, 233, .12), rgba(79, 70, 229, .1));
}
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239, 68, 68, .16); color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, .35);
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  border-radius: 999px; padding: 3px 10px;
}
.screen-title { color: #E2E8F0; font-weight: 700; font-size: 14.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-langs { display: flex; gap: 6px; }
.lang-chip {
  font-size: 11px; font-weight: 700; color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, .3); border-radius: 999px; padding: 2px 9px;
}
.lang-chip.on { color: #7DD3FC; border-color: rgba(125, 211, 252, .5); background: rgba(14, 165, 233, .12); }

.screen-caps { flex: 1; padding: 24px 118px 16px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.cap-row { display: flex; align-items: flex-start; gap: 10px; }
.cap-speaker {
  flex-shrink: 0; margin-top: 6px;
  font-size: 11.5px; font-weight: 700; color: #93C5FD;
  background: rgba(59, 130, 246, .14); border: 1px solid rgba(93, 143, 246, .35);
  border-radius: 7px; padding: 2px 8px; white-space: nowrap;
}
.cap-zh { margin: 0; color: #F8FAFC; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; line-height: 1.55; min-height: 2.6em; }
.cap-caret { display: inline-block; width: 2px; height: 1.05em; background: #7DD3FC; margin-left: 3px; vertical-align: -0.15em; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.cap-en { margin: 0; color: rgba(226, 232, 240, .82); font-size: clamp(13px, 1.3vw, 15.5px); line-height: 1.6; min-height: 3.1em; display: flex; gap: 8px; align-items: baseline; }
.cap-lang-tag { flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #67E8F9; border: 1px solid rgba(103, 232, 249, .4); border-radius: 6px; padding: 1px 6px; }

.glossary-wrong { color: #FCD34D; text-decoration: underline wavy rgba(252, 211, 77, .6) 1.5px; text-underline-offset: 4px; }
.glossary-fixed { color: #6EE7B7; border-radius: 4px; animation: fixflash .9s var(--ease); }
@keyframes fixflash {
  0% { background: rgba(110, 231, 183, .35); }
  100% { background: transparent; }
}

.screen-brandbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(248, 250, 252, .06);
  border-top: 1px solid rgba(148, 163, 184, .14);
}
.bb-label { font-size: 10.5px; color: #64748B; font-weight: 700; }
.bb-logo { width: 58px; height: 16px; border-radius: 4px; background: rgba(203, 213, 225, .35); }
.bb-logo.w2 { width: 42px; }
.bb-note { margin-left: auto; font-size: 10.5px; color: #475569; letter-spacing: .05em; }

.fix-toast {
  position: absolute; top: 56px; right: 14px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 12.5px; font-weight: 600;
  padding: 8px 12px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none; z-index: 3;
}
.fix-toast .ic { color: var(--accent); }
.fix-toast s { color: var(--ink-3); }
.fix-toast strong { color: var(--ok); }
.fix-toast.show { opacity: 1; transform: translateY(0); }

.phone-mock {
  position: absolute; right: 0; bottom: 0;
  width: 208px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 14px 14px 12px;
  animation: floaty 7s ease-in-out infinite;
  z-index: 4;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.phone-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.phone-langs { margin-left: auto; display: flex; gap: 4px; }
.pl-chip { font-size: 10px; font-weight: 700; border: 1px solid var(--border); color: var(--ink-3); border-radius: 999px; padding: 1px 7px; }
.pl-chip.on { color: var(--accent); border-color: var(--grad-a); background: var(--accent-soft); }

.phone-lines { padding: 10px 2px 4px; min-height: 96px; }
.pl-line { margin: 0 0 8px; font-size: 12.5px; line-height: 1.55; color: var(--ink); font-weight: 600; }
.pl-line.ja { color: var(--ink-3); font-weight: 500; }

.phone-qr { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 8px 10px; }
.phone-qr svg { width: 38px; height: 38px; }
.phone-qr svg rect { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.phone-qr svg rect.f { fill: var(--ink-2); stroke: none; }
.phone-qr span { font-size: 10.5px; line-height: 1.5; color: var(--ink-3); font-weight: 600; }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  padding: 7px 14px; z-index: 5;
}
.float-chip .ic { color: var(--accent); }
.chip-latency { top: -14px; left: -10px; animation: floaty 6s ease-in-out infinite; }
.chip-export { bottom: 56px; left: -22px; animation: floaty 8s ease-in-out infinite reverse; }

/* ---------------- Stats ---------------- */

.stats { background: var(--surface); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 24px; }
.stat { text-align: center; }
.stat-num {
  margin: 0; font-size: 40px; font-weight: 900; letter-spacing: .01em;
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 17px; font-weight: 800; margin-left: 2px; }
.stat-label { margin: 2px 0 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.stat-label span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }

/* ---------------- 通用 Section ---------------- */

.section { padding: 92px 0; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.kicker.light { color: #7DD3FC; background: rgba(14, 165, 233, .15); }
.section-head h2, .partner-copy h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; }
.section-sub { color: var(--ink-3); font-size: 16.5px; margin-top: 12px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #BAE6FD; }
.card h3 { font-size: 17.5px; margin: 0 0 8px; }
.card p { color: var(--ink-3); font-size: 14.5px; margin: 0; }

/* ---------------- Pain / Feature 卡片 ---------------- */

.pain-ic, .feat-ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px;
}
.pain-ic { background: #FFF1F2; color: #E11D48; }
.feat-ic { background: linear-gradient(135deg, var(--accent-soft), #EDE9FE); color: var(--accent); }

/* ---------------- Flow ---------------- */

.flow { background: linear-gradient(180deg, var(--surface), var(--bg)); border-block: 1px solid var(--border); }

.flow-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  counter-reset: step;
}
.flow-steps li { position: relative; text-align: center; padding: 0 8px; }
.flow-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: calc(50% + 40px); width: calc(100% - 80px); height: 2px;
  background-image: linear-gradient(90deg, var(--border-strong) 55%, transparent 45%);
  background-size: 10px 2px;
  animation: march 1.2s linear infinite;
}
@keyframes march { to { background-position: 10px 0; } }

.flow-ic {
  width: 62px; height: 62px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--accent);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 23px; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.flow-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -4px; left: calc(50% + 16px);
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; font-size: 11.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.flow-steps h3 { font-size: 15.5px; margin-bottom: 4px; }
.flow-steps p { font-size: 13px; color: var(--ink-3); margin: 0; }

.flow-note {
  margin: 40px auto 0; max-width: 640px; text-align: center;
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid #BAE6FD; border-radius: 12px;
  color: var(--accent-deep); font-size: 14px; font-weight: 600;
  padding: 12px 20px;
}
.flow-note .ic { position: relative; top: .18em; }

/* ---------------- Use cases ---------------- */

.uc-card { padding: 30px; }
.uc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.uc-head h3 { margin: 0; font-size: 20px; }
.uc-ic {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 23px;
}
.uc-ic.edu { background: var(--accent-soft); color: var(--accent); }
.uc-ic.biz { background: #EEF2FF; color: #4F46E5; }
.uc-ic.hotel { background: #FEF3C7; color: #B45309; }
.uc-ic.sec { background: #D1FAE5; color: #047857; }
.uc-card > p { margin-bottom: 16px; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px;
}

/* ---------------- Deployment ---------------- */

.deploy-card { text-align: left; position: relative; padding: 30px; }
.deploy-ic {
  width: 50px; height: 50px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); color: var(--ink-2);
  font-size: 22px; margin-bottom: 16px;
}
.deploy-card h3 { font-size: 21px; display: flex; align-items: baseline; gap: 10px; }
.deploy-card h3 small { font-size: 13.5px; color: var(--ink-3); font-weight: 700; }
.deploy-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
  border-radius: 999px; padding: 4px 12px;
}
/* 三種部署等權重強調：各自的優勢色（頂框＋圖示＋徽章） */
.deploy-card { border-top: 3px solid var(--border); }
.dc-cloud { border-top-color: #0EA5E9; }
.dc-onprem { border-top-color: #10B981; }
.dc-hybrid { border-top-color: #6366F1; }
.dc-cloud .deploy-badge { color: #075985; background: var(--accent-soft); }
.dc-cloud .deploy-ic { background: var(--accent-soft); border-color: #BAE6FD; color: var(--accent); }
.dc-onprem .deploy-badge { color: #047857; background: #D1FAE5; }
.dc-onprem .deploy-ic { background: #D1FAE5; border-color: #A7F3D0; color: #047857; }
.dc-hybrid .deploy-badge { color: #4338CA; background: #EEF2FF; }
.dc-hybrid .deploy-ic { background: #EEF2FF; border-color: #C7D2FE; color: #4F46E5; }

.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369A1' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

/* ---------------- Plans ---------------- */

.plan-card { display: flex; flex-direction: column; padding: 30px; }
.plan-card h3 { font-size: 21px; display: flex; flex-direction: column; gap: 2px; }
.plan-card h3 small { font-size: 13.5px; color: var(--ink-3); font-weight: 700; }
.plan-for { font-size: 13px; color: var(--accent-deep); background: var(--accent-soft); border-radius: 9px; padding: 7px 12px; font-weight: 600; margin: 10px 0 4px; }
.plan-card .check-list { margin-bottom: 24px; flex: 1; }
.plan-card.featured { border-color: #BAE6FD; box-shadow: 0 0 0 4px rgba(14, 165, 233, .1), var(--shadow-md); }
.plan-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 5px 13px; margin-bottom: 14px;
}

/* 技術支援方式：現場／遠端 兩卡等權重 */
.support-head { text-align: center; margin: 56px auto 24px; max-width: 560px; }
.support-head h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.support-head p { color: var(--ink-3); font-size: 14.5px; margin: 0; }

.support-card { display: flex; gap: 18px; align-items: flex-start; padding: 28px; }
.support-ic {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 23px;
}
.support-ic.onsite { background: #EEF2FF; color: #4F46E5; }
.support-ic.remote { background: var(--accent-soft); color: var(--accent); }
.support-body { min-width: 0; }
.support-card h4 { font-size: 18px; margin: 2px 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.support-card h4 small { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; }
.support-card p { color: var(--ink-3); font-size: 14px; margin-bottom: 4px; }
.support-card .check-list { margin-top: 12px; }

.plans-note {
  margin: 34px auto 0; max-width: 620px; text-align: center;
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px;
  color: #92400E; font-size: 14px; font-weight: 600;
  padding: 12px 20px;
}
.plans-note .ic { position: relative; top: .18em; flex-shrink: 0; }

/* ---------------- Partner ---------------- */

.partner-panel {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 85% -10%, #1D4ED8 0%, #0F172A 55%);
  border-radius: var(--radius-lg);
  color: #E2E8F0;
  padding: 56px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.partner-panel::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: rgba(14, 165, 233, .25); filter: blur(80px); top: -120px; right: -60px;
}
.partner-copy { position: relative; }
.partner-copy h2 { color: #fff; }
.partner-copy > p { color: #CBD5E1; font-size: 16px; max-width: 34em; }

.partner-points { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.partner-points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: #E2E8F0; }
.partner-points .ic { color: #7DD3FC; }

.partner-visual { position: relative; height: 240px; }
.pv-card {
  position: absolute; inset: 12px 0 auto 36px;
  background: rgba(255, 255, 255, .97); border-radius: 16px;
  padding: 20px; width: min(300px, 90%);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 10px;
  transform: rotate(2deg);
}
.pv-card.back { transform: rotate(-4deg) translate(-26px, 26px); z-index: -1; opacity: .6; }
.pv-logo {
  align-self: flex-start; font-size: 12px; font-weight: 900; letter-spacing: .08em; line-height: 1.2;
  color: var(--ink-2); border: 2px dashed var(--border-strong); border-radius: 10px; padding: 8px 12px;
}
.pv-card p { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pv-line { height: 10px; border-radius: 5px; background: var(--border); }
.pv-line.w1 { width: 82%; } .pv-line.w2 { width: 58%; }

/* ---------------- FAQ ---------------- */

.faq-wrap .section-head { margin-bottom: 36px; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: #BAE6FD; box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none;
  padding: 18px 22px;
  font-weight: 700; font-size: 15.5px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--ink-3); transition: transform .25s var(--ease); }
.faq-item[open] .chev { transform: rotate(180deg); color: var(--accent); }
.faq-body { padding: 0 22px 18px; }
.faq-body p { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.faq-item[open] .faq-body { animation: faqin .3s var(--ease); }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------- Contact ---------------- */

.contact {
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(186, 230, 253, .4) 0%, transparent 55%),
    radial-gradient(70% 100% at 90% 100%, rgba(199, 210, 254, .35) 0%, transparent 60%),
    var(--surface);
  border-top: 1px solid var(--border);
}
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }

.contact-info { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.ci-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); box-shadow: var(--shadow-sm); font-size: 19px;
}
.contact-info strong { display: block; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.contact-info a, .contact-info div > span { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.contact-info a:hover { color: var(--accent); }

.contact-trust {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; max-width: 420px;
}
.contact-trust .ic { color: var(--ok); margin-top: 2px; }
.contact-trust p { margin: 0; font-size: 13px; color: var(--ink-3); }

.contact-form { position: relative; padding: 32px; }
.contact-form h3 { font-size: 20px; margin-bottom: 20px; }
.contact-form:hover { transform: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.req { color: var(--danger); margin-left: 2px; }

.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 14px; min-height: 46px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--grad-a);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .15);
}
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }
.helper { margin: 0; font-size: 12px; color: var(--ink-3); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error {
  margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--danger);
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 10px 14px;
}

#formSubmit { margin-top: 18px; position: relative; }
.btn-spinner {
  display: none; width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#formSubmit.loading { pointer-events: none; opacity: .85; }
#formSubmit.loading .btn-spinner { display: inline-block; }

.form-success {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; gap: 6px;
  animation: fadein .4s var(--ease);
}
@keyframes fadein { from { opacity: 0; } }
.fs-ic {
  width: 62px; height: 62px; border-radius: 50%;
  background: #D1FAE5; color: #047857;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 10px;
  animation: pop .45s var(--ease);
}
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
.form-success h4 { font-size: 20px; margin: 0; }
.form-success p { color: var(--ink-3); font-size: 14.5px; margin: 6px 0 0; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--ink); color: #CBD5E1; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 48px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: 14px; color: #94A3B8; max-width: 30em; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .04em; }
.footer-nav a { display: block; color: #94A3B8; font-size: 14px; padding: 5px 0; }
.footer-nav a:hover { color: #7DD3FC; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 22px; padding-bottom: 26px;
  font-size: 13px; color: #64748B;
}
.footer-bottom p { margin: 0; }
.footer-fine a { color: #64748B; }
.footer-fine a:hover { color: #7DD3FC; }
.footer-fine .dot { margin: 0 4px; }

/* ---------------- Reveal 動畫 ---------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .08s; }
[data-d="2"] { transition-delay: .16s; }
[data-d="3"] { transition-delay: .24s; }
[data-d="4"] { transition-delay: .32s; }
[data-d="5"] { transition-delay: .4s; }
[data-d="6"] { transition-delay: .48s; }

/* ---------------- RWD ---------------- */

@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 128px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(3, 1fr); gap: 32px 12px; }
  .flow-steps li:nth-child(3n)::after { display: none; }
  .partner-panel { grid-template-columns: 1fr; padding: 40px; }
  .partner-visual { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(248, 250, 252, .98);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav > a:not(.btn) { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; justify-content: center; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: none; cursor: pointer; border-radius: 10px;
  }
  .nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .section { padding: 64px 0; }
  .hero { padding: 88px 0 56px; }
  .hero h1 { font-size: clamp(30px, 8vw, 38px); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-steps li::after { display: none !important; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .phone-mock { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; animation: none; }
  .screen-caps { padding: 22px 20px 14px; }
  .hero-visual { padding: 0; }
  .hero-visual { padding-bottom: 0; }
  .chip-export { display: none; }
  .chip-latency { top: -12px; left: 8px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  /* 手機版數據帶：隱藏第三行小字（右欄換行造成左右不對稱）、
     拉開上下留白、兩欄等高置中 */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; padding: 34px 20px 38px; }
  .stat-num { font-size: 32px; }
  .stat-label span { display: none; }
  .stat { display: flex; flex-direction: column; justify-content: flex-start; }
  .flow-steps { grid-template-columns: 1fr; }
  .partner-panel { padding: 30px 22px; }
  .partner-points { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
}

/* ---------------- 支援語言頁 ---------------- */

.site-nav > a.active { color: var(--accent); }

.lang-hero { position: relative; padding: 140px 0 34px; overflow: hidden; text-align: center; }
/* 子頁頁首後的第一個區塊：收緊上方留白（.section 預設 92px 對緊接頁首太空） */
.lang-hero + .section { padding-top: 30px; }
/* 底部淡出：裝飾色塊在區塊邊緣以漸層融入頁面底色，避免背景硬切一條線 */
.lang-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--bg));
  pointer-events: none; z-index: 0;
}
.lang-hero .container { position: relative; z-index: 1; }  /* 內容浮在裝飾 blob 與底部淡出層之上 */
.lang-hero h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; margin: 16px auto 0; max-width: 20em; }
.lang-hero .section-sub { max-width: 40em; margin: 14px auto 0; color: var(--ink-2); font-weight: 500; }

.lang-stats { display: flex; justify-content: center; gap: 56px; margin-top: 36px; flex-wrap: wrap; }
.lang-stat { text-align: center; }
.lang-stat .stat-label { margin-top: 2px; font-weight: 700; font-size: 14px; color: var(--ink-2); }

.lang-core { padding-top: 36px; }
.core-card { position: relative; padding: 26px; }
.core-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border-radius: 999px; padding: 3px 11px;
}
.core-card h3 { display: flex; flex-direction: column; gap: 2px; font-size: 19px; padding-right: 52px; }
.core-card h3 small { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }

.engine-note { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.engine-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px;
}
.engine-ic {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.engine-ic.cloud { background: var(--accent-soft); color: var(--accent); }
.engine-ic.onprem { background: #D1FAE5; color: #047857; }
.engine-ic.glossary { background: #EEF2FF; color: #4F46E5; }
.engine-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.engine-item div > span { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

.lang-list-section { padding-top: 24px; }
.lang-toolbar {
  display: flex; gap: 16px 24px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 30px;
}
.lang-search {
  flex: 1 1 320px; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 0 16px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.lang-search .ic { color: var(--ink-3); flex-shrink: 0; }
.lang-search input { border: none; outline: none; background: none; font: inherit; font-size: 15px; width: 100%; min-height: 46px; }
.lang-search:focus-within { border-color: var(--grad-a); box-shadow: 0 0 0 4px rgba(14, 165, 233, .15); }

.lang-mic-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.lang-mic-toggle input {
  width: 42px; height: 24px; appearance: none; -webkit-appearance: none;
  background: var(--border-strong); border-radius: 999px; position: relative;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.lang-mic-toggle input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: var(--shadow-sm);
}
.lang-mic-toggle input:checked { background: var(--accent); }
.lang-mic-toggle input:checked::after { transform: translateX(18px); }

.legend-mic {
  display: inline-flex; width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  align-items: center; justify-content: center; vertical-align: -5px;
}
.legend-mic .ic { width: 13px; height: 13px; }

.lang-region { margin-bottom: 36px; }
.lang-region h3 {
  display: flex; align-items: baseline; gap: 10px; font-size: 17px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.lang-count { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lang-card {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  padding: 10px 14px; min-height: 62px;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.lang-card:hover { border-color: #BAE6FD; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.lang-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lang-zh {
  font-weight: 700; font-size: 14px; color: var(--ink); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lang-en {
  font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lang-mic {
  display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; margin-left: auto;
  border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  align-items: center; justify-content: center;
}
.lang-mic .ic { width: 12px; height: 12px; }

.lang-empty { text-align: center; color: var(--ink-3); padding: 34px 0; font-weight: 600; }
.lang-disclaimer { margin: 28px auto 0; max-width: 640px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.lang-cta { padding-top: 0; }

@media (max-width: 1024px) {
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .engine-note { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .lang-hero { padding: 110px 0 40px; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; max-width: 420px; margin: 30px auto 0;
  }
  .lang-stat .stat-num { font-size: 30px; }
  .lang-stat .stat-num small { font-size: 14px; }
  .lang-stat .stat-label { font-size: 12px; }
}
@media (max-width: 480px) {
  .lang-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lang-card { padding: 9px 12px; min-height: 58px; }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .phone-mock, .float-chip { animation: none; }
}


/* ============ 實測展示（showcase） ============ */
.showcase .sc-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 26px 0 18px; }
.sc-tab {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: all .18s ease;
}
.sc-tab:hover { border-color: var(--accent); color: var(--accent); }
.sc-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-player { max-width: 1120px; margin: 0 auto; }
/* 舞台固定高度：面板從第一秒就是完整大小，內容在裡面捲動（不隨播放長高跳動） */
.sc-stage { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; height: clamp(340px, 52vh, 560px); }
@media (max-width: 920px) { .sc-stage { grid-template-columns: 1fr; height: auto; } }
/* 右側：三語同屏字幕（重現現場大螢幕；歷史保留、自動捲動） */
.sc-screen {
  background: var(--screen-bg); border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; overflow: hidden; min-height: 260px;
}
.sc-screen-head {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  color: #E2E8F0; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.sc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: scPulse 1.4s ease-in-out infinite; }
@keyframes scPulse { 50% { opacity: .35; } }
.sc-screen-note { margin-left: auto; color: #64748B; font-weight: 500; font-size: 11.5px; letter-spacing: 0; }
.sc-screen-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 16px; scrollbar-width: thin; }
.sc-screen { min-height: 0; height: 100%; }
@media (max-width: 920px) { .sc-screen { height: 320px; } }
.sc-row { margin-bottom: 12px; }
.sc-row .src { color: #F8FAFC; font-size: 15px; line-height: 1.5; }
.sc-row .tr { font-size: 13.5px; line-height: 1.5; margin-top: 3px; display: flex; gap: 7px; align-items: baseline; }
.sc-row .tr .tag {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; opacity: .85;
}
.sc-row .tr.draft { opacity: .6; font-style: italic; }
.sc-row.live .src { color: #CBD5E1; }
.sc-cursor {
  display: inline-block; width: 2px; height: 1em; background: #38BDF8;
  vertical-align: text-bottom; margin-left: 3px; animation: scBlink 1s step-end infinite;
}
@keyframes scBlink { 50% { opacity: 0; } }
.sc-video-wrap {
  position: relative; background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); cursor: pointer;
}
.sc-video-wrap { height: 100%; display: flex; align-items: stretch; }
.sc-video-wrap video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 920px) { .sc-video-wrap { height: auto; } .sc-video-wrap video { height: auto; } }
.sc-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 20px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; text-align: left;
}
#scSrc { color: #fff; font-size: clamp(15px, 2.4vw, 20px); line-height: 1.45; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.sc-tr { color: #FDE68A; font-size: clamp(13px, 2vw, 17px); line-height: 1.45; margin-top: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.sc-tr.draft { opacity: .72; font-style: italic; }
.sc-tr span { font-size: .72em; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-right: 7px; vertical-align: 1px; }
#scTailNote {
  display: none; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  align-items: center; gap: 7px; white-space: nowrap;
  background: rgba(11, 18, 32, .82); color: #CBD5E1; font-size: 12px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,.25);
  backdrop-filter: blur(6px);
}
.sc-tail-dot { width: 7px; height: 7px; border-radius: 50%; background: #FBBF24; animation: scPulse 1.2s ease-in-out infinite; }
#scPlay {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); color: var(--accent-deep); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: transform .15s ease;
}
#scPlay:hover { transform: scale(1.06); }
#scPlay svg { width: 34px; height: 34px; margin-left: 4px; }
.sc-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
#scProg { flex: 1; height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; cursor: pointer; }
#scProg > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }
#scClock { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 13px; min-width: 96px; text-align: right; }
.sc-langnote { text-align: center; color: var(--ink-2); font-size: 14.5px; margin: -4px 0 16px; }
.sc-langnote strong { color: var(--accent); }
.sc-source { max-width: 760px; margin: 16px auto 0; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.showcase .section-head { margin-bottom: 16px; }
.sc-engines {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0 0 18px; color: var(--ink-3); font-size: 13.5px;
}
.sc-eng { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-weight: 700; font-size: 16px; }
.sc-logo { width: 24px; height: 24px; }
.sc-eng-list { display: inline-flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.sc-disclaimer {
  max-width: 760px; margin: 18px auto 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.8;
  border-top: 1px solid var(--border); padding-top: 14px; text-align: center;
}


/* ============ 畫面輸出案例合成圖（outputs） ============ */
.ov-visual {
  display: grid; grid-template-columns: 1.55fr 1fr .95fr; grid-template-rows: auto auto;
  gap: 18px; margin: 8px 0 34px; align-items: stretch;
}
.ov-screen { grid-column: 1 / 3; }
.ov-scan { grid-column: 3; grid-row: 1 / 3; }
.ov-visual > div { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.ov-label {
  position: absolute; top: -12px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.ov-label .ic { width: 13px; height: 13px; color: var(--accent); }

/* 大螢幕 */
.ov-screen { background: var(--screen-bg); padding: 18px 20px 20px; color: #E2E8F0; }
.ov-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ov-title { font-weight: 700; font-size: 14.5px; color: #CBD5E1; }
.ov-zh { color: #F8FAFC; font-size: clamp(17px, 2vw, 21px); font-weight: 700; line-height: 1.5; }
.ov-en { color: #93C5FD; font-size: clamp(13px, 1.5vw, 15.5px); line-height: 1.5; margin-top: 6px; display: flex; gap: 8px; align-items: baseline; }

/* 簡報 + 浮動字幕窗 */
.ov-slide { background: #FFFFFF; border: 1px solid var(--border); padding: 16px 16px 14px; display: flex; flex-direction: column; }
.ov-slide-body { flex: 1; display: grid; gap: 8px; align-content: start; padding-top: 6px; }
.ov-slide-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.ov-slide-text { font-size: 11.5px; color: var(--ink-3); }
.ov-slide-chart {
  width: 60%; height: 42px; margin-top: 6px; display: flex; align-items: flex-end; gap: 6px;
  border-bottom: 1.5px solid var(--border-strong); padding: 0 2px;
}
.ov-slide-chart i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); opacity: .75;
}
.ov-float {
  margin-top: 10px; background: rgba(11, 18, 32, .92); color: #fff; border-radius: 10px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
.ov-float-en { display: block; color: #FDE68A; font-weight: 500; font-size: 11.5px; }

/* OBS 直播 */
.ov-obs { background: #0F172A; padding: 14px; display: flex; }
.ov-obs-frame {
  position: relative; flex: 1; border-radius: 10px; overflow: hidden; min-height: 132px;
  background: linear-gradient(135deg, #1E293B, #0B1220);
}
.ov-rec {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(220, 38, 38, .18); border: 1px solid rgba(248, 113, 113, .5); color: #FCA5A5;
  font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px;
}
.ov-rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #EF4444; animation: scPulse 1.2s infinite; }
.ov-obs-person {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 58px; border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #334155, #1E293B);
}
.ov-obs-person::before {
  content: ""; position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: #334155;
}
.ov-obs-cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, .62); color: #fff; border-radius: 6px;
  font-size: 10.5px; line-height: 1.45; padding: 4px 8px;
}

/* 現場掃描（右欄） */
.ov-scan {
  background: var(--surface); border: 1px solid var(--border);
  padding: 18px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.ov-scan-head { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: var(--ink); }
.ov-scan-qr { border: 1.5px dashed var(--border-strong); border-radius: 14px; padding: 14px; }
.ov-scan-qr svg { width: 96px; height: 96px; display: block; }
.ov-scan-qr svg rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.ov-scan-qr svg rect.f { fill: var(--ink); stroke: none; }
.ov-scan-note { color: var(--ink-3); font-size: 12.5px; line-height: 1.7; margin: 0; }
.ov-scan-langs { display: flex; gap: 6px; }

@media (max-width: 920px) {
  .ov-visual { grid-template-columns: 1fr 1fr; }
  .ov-screen { grid-column: 1 / 3; }
  .ov-scan { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 560px) {
  .ov-visual { grid-template-columns: 1fr; }
  .ov-screen, .ov-scan { grid-column: 1; }
}


/* ============ 手機版文字瘦身 ============ */
@media (max-width: 640px) {
  .hide-m { display: none !important; }
  .hero-copy .lead { font-size: 15.5px; }
  .hero-points { gap: 8px; margin: 18px 0 20px; }
  .hero-points li { font-size: 14px; }
}

/* ---------------- AI 抽詞展示（首頁） ---------------- */
.gdemo .section-head { margin-bottom: 26px; }
.gd-wrap { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: 18px; align-items: stretch; }
.gd-doc, .gd-out {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
  display: flex; flex-direction: column;
}
.gd-phead {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  border-bottom: 1px solid var(--border); background: #F8FAFC;
}
.gd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); opacity: .55; box-shadow: 14px 0 0 #F59E0B88, 28px 0 0 #10B98188; margin-right: 22px; }
.gd-count { font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.gd-doc-body { padding: 16px 18px 18px; font-size: 13.5px; line-height: 2.05; color: var(--ink-2); }
.gd-line.gd-t { font-weight: 800; color: var(--ink); }
.gd-doc-body mark {
  background: transparent; color: inherit; border-radius: 4px; padding: 1px 2px;
  transition: background .35s var(--ease), color .35s;
}
.gd-doc-body mark.lit { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.gd-scan {
  position: absolute; left: 0; right: 0; top: 42px; height: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--grad-a), var(--grad-b), transparent);
}
.gd-scan.run { animation: gdscan 1.9s var(--ease) forwards; }
@keyframes gdscan { 0% { opacity: 0; transform: translateY(0); } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(200px); } }
.gd-arrow {
  align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .08em;
}
.gd-arrow svg { width: 26px; height: 26px; }
.gd-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 232px; }
.gd-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  background: #F8FAFC; border: 1px solid var(--border); font-size: 13px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gd-row.on { opacity: 1; transform: none; }
.gd-row b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.gd-ck { color: var(--ok); font-weight: 800; flex: none; }
.gd-tag {
  flex: none; font-size: 10.5px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 999px; padding: 1px 8px;
}
.gd-tr { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-done {
  margin: 0 12px 12px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  color: var(--ok); background: #ECFDF5; border: 1px solid rgba(5, 150, 105, .35);
  opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s;
}
.gd-done.show { opacity: 1; transform: none; }
.gd-caption {
  margin: 18px auto 0; max-width: 660px; display: flex; align-items: center; gap: 12px;
  background: var(--screen-bg); color: #fff; border-radius: 14px; padding: 13px 18px;
  font-size: 15.5px; font-weight: 600; opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease); box-shadow: var(--shadow-md);
}
.gd-caption.show { opacity: 1; transform: none; }
.gd-cap-label { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #7DD3FC; border: 1px solid rgba(125, 211, 252, .45); border-radius: 999px; padding: 2px 9px; }
.gd-caption b { color: #FCA5A5; font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; }
.gd-caption i { color: #6EE7B7; font-style: normal; font-weight: 800; }
.gd-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) {
  .gd-wrap { grid-template-columns: 1fr; }
  .gd-arrow { flex-direction: row; padding: 2px 0; }
  .gd-arrow svg { transform: rotate(90deg); }
  .gd-list { min-height: 0; }
  .gd-caption { font-size: 14px; }
}
