/* ============================================================
   KIOTECH — 共用樣式表
   ============================================================ */

/* ============ 全域重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #05060f;
  --bg-soft: #0a0d1f;
  --accent: #00e5ff;
  --accent-2: #b14bff;
  --accent-3: #ff2e9a;
  --text: #e8ecff;
  --text-dim: #8b91b8;
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ============ 滾動進度條 ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 9998;
  box-shadow: 0 0 10px rgba(0,229,255,0.6);
  transition: width 0.1s ease-out;
}

/* ============ 頁面載入動畫 ============ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.loader-logo .logo-mark { animation: spin 1.2s linear infinite; }
.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: loader-slide 1s ease-in-out infinite;
}
@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ============ 背景透視網格 ============ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  transform: perspective(500px) rotateX(0deg);
  opacity: 0.5;
}

/* ============ 浮動光球 ============ */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.bg-orb.o1 { width: 400px; height: 400px; background: var(--accent); top: -100px; left: -100px; animation: orb-float1 18s ease-in-out infinite; }
.bg-orb.o2 { width: 350px; height: 350px; background: var(--accent-2); bottom: -80px; right: -80px; animation: orb-float2 22s ease-in-out infinite; }
.bg-orb.o3 { width: 300px; height: 300px; background: var(--accent-3); top: 50%; left: 60%; animation: orb-float3 26s ease-in-out infinite; }
@keyframes orb-float1 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(80px,60px);} }
@keyframes orb-float2 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-60px,-80px);} }
@keyframes orb-float3 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-90px,50px);} }

/* ============ 滑鼠光暈 ============ */
.cursor-glow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ============ 粒子背景層 ============ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(177, 75, 255, 0.12), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 46, 154, 0.06), transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* ============ 自訂滑鼠游標 ============ */
.cursor {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
  mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent);
}
.cursor.hover { width: 70px; height: 70px; border-color: var(--accent-2); }

/* ============ 導航欄 ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 15, 0.5);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 28px; height: 28px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  border-radius: 8px;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: none;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
}

/* ============ 通用按鈕 ============ */
.btn-primary, .btn-ghost {
  padding: 16px 38px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: none;
  border: none;
  transition: all 0.35s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.5);
}
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  color: var(--text);
}

/* ============ Hero 區 ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}
.hero.small { min-height: 60vh; padding-top: 140px; padding-bottom: 60px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--glass);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 32px;
  animation: float 4s ease-in-out infinite;
}
.badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero.small h1 { font-size: clamp(40px, 7vw, 84px); }
.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shift 6s ease infinite;
}
@keyframes shift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p {
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.7;
  margin-bottom: 44px;
}
.hero.small p { margin-bottom: 30px; }
.hero-btns { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: 40px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  animation: float 2.5s ease-in-out infinite;
}

/* ============ 數據統計 ============ */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}
.stat {
  text-align: center;
  padding: 30px 15px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s, border-color 0.4s;
}
.stat:hover { transform: translateY(-6px); border-color: var(--accent); }
.stat .num {
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label { color: var(--text-dim); font-size: 13px; letter-spacing: 1px; margin-top: 6px; }

/* ============ 通用區塊 ============ */
.section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}
.section-head { text-align: center; margin-bottom: 70px; }
.section-head .tag {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  margin-top: 16px;
  letter-spacing: -1px;
}
.section-head .sub { color: var(--text-dim); margin-top: 14px; font-size: 16px; }

/* ============ 功能/服務卡 ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature {
  padding: 40px 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.08), transparent);
  transition: left 0.7s;
}
.feature:hover::before { left: 100%; }
.feature:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.04);
}
.feature .icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(177,75,255,0.15));
  border: 1px solid var(--border);
}
.feature h3 { font-size: 21px; margin-bottom: 12px; font-weight: 700; }
.feature p { color: var(--text-dim); line-height: 1.7; font-size: 15px; }
.feature .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.feature .tags span {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.2);
  letter-spacing: 0.5px;
}
.feature .link-more {
  margin-top: 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.feature:hover .link-more { gap: 12px; }

/* ============ 流程區 ============ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.step {
  text-align: center;
  padding: 36px 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
}
.step .step-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.step h4 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ============ CTA ============ */
.cta-wrap {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 60px auto;
  padding: 70px 40px;
  text-align: center;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(177,75,255,0.08));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.cta-wrap h2 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; margin-bottom: 18px; }
.cta-wrap p { color: var(--text-dim); margin-bottom: 36px; font-size: 17px; }

/* ============ 主打產品 (Spotlight) ============ */
.spotlight {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}
.spotlight-card {
  position: relative;
  border-radius: 30px;
  padding: 60px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,229,255,0.10), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(177,75,255,0.10), transparent 50%),
    var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 30px;
  z-index: -1;
  opacity: 0.35;
  filter: blur(1px);
  pointer-events: none;
}
.spotlight-inner { position: relative; z-index: 1; }
.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(177,75,255,0.2));
  border: 1px solid rgba(0,229,255,0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.spotlight-badge .spark {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s infinite;
}
.spotlight-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}
.spotlight h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.spotlight .lead {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.spotlight-features {
  list-style: none;
  margin-bottom: 32px;
}
.spotlight-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text);
}
.spotlight-features li .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000;
  font-weight: 900;
  margin-top: 2px;
}
.spotlight-features li b { color: var(--text); font-weight: 700; }
.spotlight-features li span { color: var(--text-dim); }

.spotlight-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* AI 模型 chips */
.spotlight-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.spotlight-models .label {
  width: 100%;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.spotlight-models .chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* 產品預覽 mockup */
.spotlight-visual {
  position: relative;
}
.product-mock {
  background: linear-gradient(160deg, #0d1130, #07091a);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.1);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.mock-bar .traffic { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .traffic:nth-child(1) { background: #ff5f57; }
.mock-bar .traffic:nth-child(2) { background: #febc2e; }
.mock-bar .traffic:nth-child(3) { background: #28c840; }
.mock-bar .url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.mock-body { padding: 0; display: flex; flex-direction: column; }

/* === 功能切換 tab === */
.mode-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.mode-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  letter-spacing: 0.3px;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* 對話顯示區 */
.chat-area {
  min-height: 340px;
  max-height: 420px;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-area::-webkit-scrollbar { width: 6px; }
.chat-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* 空狀態 */
.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
}
.chat-empty-icon { font-size: 40px; margin-bottom: 14px; opacity: 0.7; }
.chat-empty p { font-size: 14px; line-height: 1.7; }
.chat-empty small { color: var(--text-dim); opacity: 0.7; }

/* 用戶訊息氣泡 */
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: msg-in 0.4s ease;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg .ava {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.chat-msg.user .ava { background: rgba(255,255,255,0.1); }
.chat-msg.ai .ava { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #000; font-weight: 700; }
.chat-msg .bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.user .bubble { background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.25); border-top-right-radius: 4px; }
.chat-msg.ai .bubble { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-top-left-radius: 4px; }

/* AI 思考中嘅 typing indicator */
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing-bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* 生成中嘅圖片網格 */
.gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  width: 280px;
}
.mock-art {
  aspect-ratio: 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #07091a;
}
.mock-art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  z-index: 2;
  transition: opacity 0.1s linear;
}
.mock-art .art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: 1;
  opacity: 0.25;
  filter: blur(24px) saturate(1.8);
  transition: opacity 0.05s linear;
}
.mock-art .progress {
  position: absolute;
  top: 6px; right: 7px;
  z-index: 3;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(5,6,15,0.75);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(0,229,255,0.3);
}
.mock-art.gen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.28), transparent);
  background-size: 100% 30%;
  background-repeat: no-repeat;
  animation: gen-scan 1.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes gen-scan {
  from { background-position: 0 -30%; }
  to   { background-position: 0 130%; }
}
.gen-caption { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }

/* === 真實影片元素 === */
.mock-art .art-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
  filter: blur(18px);
  background: #07091a;
}
.mock-art.video-ready .art-video { z-index: 3; }
/* 影片角標：完成後顯示「影片」標籤 */
.mock-art.video-ready::before {
  content: '🎬 影片';
  position: absolute;
  bottom: 6px; left: 7px;
  z-index: 4;
  font-size: 9px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* === AI 設計：LOGO / 海報 === */
.gen-grid.design-grid { grid-template-columns: 1fr 1fr; }
/* 海報單格：佔滿成行，直身比例 */
.gen-grid.design-grid.single {
  grid-template-columns: 1fr;
  width: 180px;
  margin: 10px auto 0;
}
.gen-grid.design-grid.single .mock-art {
  aspect-ratio: 3 / 4;
}
.design-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: blur(6px);
}
.design-tag {
  position: absolute;
  bottom: 6px; left: 7px;
  z-index: 4;
  font-size: 9px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: opacity 0.4s;
}
.design-cell .progress { z-index: 3; }

/* === 聲音克隆 === */
/* 錄音波形 */
.voice-record {
  background: rgba(255,46,154,0.06);
  border: 1px solid rgba(255,46,154,0.2);
  border-radius: 12px;
  padding: 16px;
}
.rec-status { font-size: 12px; color: var(--accent-3); margin-bottom: 12px; font-weight: 600; }
.rec-status.done { color: var(--accent); }
.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 50px;
}
.voice-waveform span {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: wave-bar 0.9s ease-in-out infinite alternate;
}
@keyframes wave-bar {
  from { height: 8px; opacity: 0.5; }
  to   { height: 46px; opacity: 1; }
}

/* 聲紋可視化 */
.voiceprint-wrap {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.voiceprint-canvas { width: 100%; height: 90px; display: block; border-radius: 8px; }

/* 聲音列表 */
.voice-list { display: flex; flex-direction: column; gap: 8px; width: 280px; }
.voice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, background 0.3s;
}
.voice-item.cloned {
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.06);
}
.voice-item.playing { border-color: var(--accent); background: rgba(0,229,255,0.12); }
.vi-icon { font-size: 22px; flex-shrink: 0; }
.vi-info { flex: 1; min-width: 0; }
.vi-name { font-size: 12px; font-weight: 600; color: var(--text); }
.voice-item.cloned .vi-name { color: var(--accent); }
.vi-text { font-size: 11px; color: var(--text-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vi-play {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.vi-play:hover { transform: scale(1.05); }


/* 輸入框 */
.chat-input {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chat-input input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input input::placeholder { color: var(--text-dim); }
.chat-input button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
}
.chat-input button:hover:not(:disabled) { transform: translateY(-1px); }
.chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 快速範例 */
.chat-suggest {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  flex-wrap: wrap;
}
.chat-suggest button {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
}
.chat-suggest button:hover { border-color: var(--accent); color: var(--text); background: rgba(0,229,255,0.08); }

/* === 自動播放嘅假輸入框 === */
.chat-input.fake { pointer-events: none; }
.fake-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.chat-input.fake .fake-input { border-color: var(--accent); }
.fake-cursor {
  color: var(--accent);
  font-weight: 100;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.fake-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}
.fake-btn.active { opacity: 1; transform: scale(1.03); }

/* === AI 生成中 徽章 === */
.mock-bar .badge-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s infinite;
}

@media (max-width: 860px) {
  .spotlight-card { padding: 36px 24px; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ 頁尾 ============ */
footer {
  position: relative;
  z-index: 2;
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 14px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ============ 進場動畫 ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s, transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ 作品集 ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  color: var(--text);
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.4);
}
.portfolio-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
  overflow: hidden;
}
.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,6,15,0.6));
}
.portfolio-info { padding: 26px; }
.portfolio-info .cat {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.portfolio-info h3 { font-size: 20px; margin-bottom: 6px; }
.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.portfolio-meta .client { color: var(--text); font-weight: 600; }
.portfolio-meta .dot { width: 3px; height: 3px; background: var(--text-dim); border-radius: 50%; }
.portfolio-info p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* 技術棧標籤 */
.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.portfolio-stack span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.2);
  letter-spacing: 0.3px;
}

/* 成果數據 */
.portfolio-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.portfolio-results .result { text-align: center; }
.portfolio-results .result .figure {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.portfolio-results .result .desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* 年份徽章 */
.portfolio-year {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(5, 6, 15, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: var(--text);
}

/* ============ 聯絡表單 ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.contact-info-card h3 { font-size: 22px; margin-bottom: 20px; }
.contact-info-card .info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-card .info-item .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(177,75,255,0.15));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-card .info-item .tx small { color: var(--text-dim); font-size: 12px; letter-spacing: 1px; display: block; margin-bottom: 4px; }
.contact-info-card .info-item .tx p { font-size: 15px; }

.contact-form {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 20px;
}
.form-success.show { display: block; animation: float 0.5s ease; }

/* ============ 服務詳情區 ============ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 90px;
}
.service-detail:nth-child(even) .sd-text { order: 2; }
.service-detail .sd-text h3 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 18px;
}
.service-detail .sd-text p { color: var(--text-dim); line-height: 1.8; font-size: 16px; margin-bottom: 24px; }
.service-detail .sd-list { list-style: none; }
.service-detail .sd-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}
.service-detail .sd-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.service-detail .sd-visual {
  height: 340px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(177,75,255,0.1));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-detail .sd-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.2), transparent 60%);
}

/* ============ 定價 ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.price-card {
  padding: 44px 34px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
  position: relative;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.price-card.popular {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
}
.price-card.popular::before {
  content: '最受歡迎';
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.price-card h4 { font-size: 20px; margin-bottom: 10px; }
.price-card .price { font-size: 42px; font-weight: 900; margin-bottom: 6px; }
.price-card .price small { font-size: 15px; color: var(--text-dim); font-weight: 400; }
.price-card .desc { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 30px; }
.price-card ul li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 14px;
  color: var(--text-dim);
}
.price-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ 響應式 ============ */
@media (max-width: 860px) {
  nav { padding: 16px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features, .portfolio-grid, .pricing { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .sd-text { order: 0; }
  .service-detail .sd-visual { height: 240px; font-size: 70px; }
  .form-row { grid-template-columns: 1fr; }
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  button, a, input, textarea, select { cursor: pointer; }
  .btn-primary, .btn-ghost, .nav-cta { cursor: pointer; }
  .form-group input, .form-group textarea, .form-group select { cursor: text; }
  .bg-grid { display: none; }
  .cursor-glow { display: none; }
}

/* ============================================================
   Mars Stock 介紹區
   ============================================================ */
.mars-body { padding: 18px; }
.mars-stock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,180,60,0.06);
  border: 1px solid rgba(255,180,60,0.2);
  border-radius: 12px;
  margin-bottom: 12px;
}
.mars-ticker { display: flex; flex-direction: column; }
.mars-code { font-size: 15px; font-weight: 700; color: var(--text); }
.mars-name { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.mars-price { display: flex; align-items: baseline; gap: 8px; }
.mars-num { font-size: 20px; font-weight: 800; color: #ffb43c; }
.mars-change { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.mars-change.up { color: #28c840; background: rgba(40,200,64,0.12); }
.mars-change.down { color: #ff5f57; background: rgba(255,95,87,0.12); }

.mars-chart {
  height: 90px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.mars-svg { width: 100%; height: 100%; display: block; }

.mars-ai-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.mars-ai-head {
  font-size: 12px;
  font-weight: 700;
  color: #ffb43c;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.mars-agents { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mars-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.mars-agent .verdict {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.verdict.buy { color: #28c840; background: rgba(40,200,64,0.15); }
.verdict.hold { color: #ffb43c; background: rgba(255,180,60,0.15); }
.verdict.sell { color: #ff5f57; background: rgba(255,95,87,0.15); }

.mars-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mars-score span { font-size: 11px; color: var(--text-dim); }
.mars-score b { font-size: 16px; font-weight: 800; color: #ffb43c; justify-self: end; }
.mars-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.mars-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb43c, #ff2e9a);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,180,60,0.5);
}

/* ============================================================
   服務子菜單
   ============================================================ */
.nav-item-has-children { position: relative; }
.nav-children {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: rgba(10,13,31,0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  list-style: none;
  z-index: 200;
}
.nav-item-has-children:hover .nav-children {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-children li { margin: 0; }
.nav-children a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-children a:hover { background: rgba(0,229,255,0.08); color: var(--text); }
.nav-children a .child-icon { font-size: 16px; }
.nav-children a .child-text { display: flex; flex-direction: column; }
.nav-children a .child-text small { font-size: 10px; color: var(--text-dim); opacity: 0.7; margin-top: 1px; }
.nav-services-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-services-toggle::after { content: '▾'; font-size: 9px; opacity: 0.6; }

/* ============================================================
   關於我們頁
   ============================================================ */

/* 公司簡介 — 雙欄 */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-intro .tag {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.about-intro h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 800;
  margin: 14px 0 24px;
  letter-spacing: -1px;
}
.about-intro p {
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: 16px;
}
.about-intro p.lead { font-size: 17px; color: var(--text); }
.about-intro p b { color: var(--text); font-weight: 700; }

/* 公司資訊卡 */
.about-intro-visual { display: flex; justify-content: center; }
.ai-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 44px 36px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,229,255,0.1), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(177,75,255,0.1), transparent 50%),
    var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.ai-card-glow {
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 24px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(1px);
  pointer-events: none;
}
.ai-card-content { position: relative; z-index: 1; text-align: center; }
.ai-logo-mark { display: flex; justify-content: center; margin-bottom: 20px; }
.ai-logo-mark .logo-mark { width: 56px; height: 56px; }
.ai-card-content h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.ai-card-content .en-name {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.ai-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.ai-meta div { text-align: center; }
.ai-meta span { display: block; font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; margin-bottom: 4px; }
.ai-meta b {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 使命願景價值 */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.mvv-card {
  padding: 40px 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  text-align: center;
}
.mvv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.04);
}
.mvv-icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(177,75,255,0.15));
  border: 1px solid var(--border);
}
.mvv-card h3 { font-size: 20px; margin-bottom: 14px; font-weight: 700; }
.mvv-card p { color: var(--text-dim); line-height: 1.75; font-size: 15px; }

/* 時間軸 */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0.4;
}
.t-item {
  position: relative;
  padding-bottom: 40px;
}
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: '';
  position: absolute;
  left: -39px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(0,229,255,0.5);
}
.t-year {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.t-content h4 { font-size: 19px; margin-bottom: 8px; font-weight: 700; }
.t-content p { color: var(--text-dim); line-height: 1.75; font-size: 15px; }

/* 響應式 */
@media (max-width: 860px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .mvv-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WhatsApp 浮動按鈕
   ============================================================ */
.float-contact {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fc-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.fc-btn:hover { transform: scale(1.1) translateY(-2px); }
.fc-whatsapp { background: #25D366; }
.fc-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: fc-pulse 2s ease-out infinite;
}
@keyframes fc-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fc-top {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.float-contact.show-top .fc-top { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) {
  .float-contact { bottom: 18px; right: 18px; }
  .fc-btn { width: 50px; height: 50px; font-size: 23px; }
}

/* ============================================================
   手機漢堡菜單
   ============================================================ */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  nav { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .nav-cta { padding: 8px 16px; font-size: 12px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 80%; max-width: 320px;
    height: 100vh;
    background: rgba(5,6,15,0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
    overflow-y: auto;
    z-index: 100;
    display: flex;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 0; font-size: 15px; }
  .nav-links a::after, .nav-links a::before { display: none !important; }
  /* 子菜單喺手機變成展開式 */
  .nav-item-has-children { position: static; }
  .nav-children {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: rgba(255,255,255,0.03);
    border: none;
    box-shadow: none;
    padding: 0 0 8px 16px;
    display: none;
  }
  .nav-item-has-children.expanded .nav-children { display: block; }
  .nav-children li { border: none; }
  .nav-children a { padding: 10px 0; font-size: 13px; }
  .nav-services-toggle::after { content: ' +'; }
  .nav-item-has-children.expanded .nav-services-toggle::after { content: ' −'; }
}

/* ============================================================
   專業強化特效
   ============================================================ */

/* ============ 卡片 3D 傾斜 + 光暈跟隨 ============ */
.feature, .portfolio-card, .price-card, .step {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
}
.feature .tilt-inner, .portfolio-card .tilt-inner {
  transform: translateZ(40px);
}
/* 卡片內嘅跟隨光暈 */
.spotlight-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,0.15), transparent 60%);
  z-index: 1;
  border-radius: inherit;
}
.feature:hover .spotlight-card-glow,
.portfolio-card:hover .spotlight-card-glow { opacity: 1; }

/* ============ 磁吸按鈕 ============ */
.btn-primary, .btn-ghost, .nav-cta, .vi-play, .credits-recharge {
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, background 0.3s, border-color 0.3s, opacity 0.3s;
  will-change: transform;
}

/* ============ 按鈕漣漪 ============ */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-expand 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* ============ 文字流光 shimmer ============ */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer-sweep 3.5s ease-in-out infinite;
}
@keyframes shimmer-sweep {
  0% { transform: translateX(-100%); }
  60%,100% { transform: translateX(100%); }
}

/* ============ 發光呼吸 ============ */
.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { text-shadow: 0 0 20px rgba(0,229,255,0.3), 0 0 40px rgba(177,75,255,0.2); }
  50% { text-shadow: 0 0 30px rgba(0,229,255,0.6), 0 0 60px rgba(177,75,255,0.4); }
}

/* ============ 元素交錯入場 ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
/* 每個 reveal 元素可以有 data-delay 控制延遲 */
.reveal[style*="--d"] { transition-delay: var(--d); }

/* ============ 導航欄滾動收縮 ============ */
nav.scrolled {
  padding: 14px 60px;
  background: rgba(5,6,15,0.85);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
nav.scrolled .logo { font-size: 20px; }
nav.scrolled .nav-cta { padding: 8px 20px; font-size: 13px; }
nav { transition: padding 0.4s, background 0.4s, box-shadow 0.4s; }

/* ============ 數字彈跳 ============ */
.stat .num.bounce { animation: num-bounce 0.6s cubic-bezier(.34,1.56,.64,1); }
@keyframes num-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============ 連結下劃線動畫 ============ */
.nav-links a { position: relative; }
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s, left 0.3s;
}
.nav-links a:hover::before, .nav-links a.active::before { width: 100%; left: 0; }

/* ============ 作品卡 hover 浮層 ============ */
.portfolio-card .pf-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,6,15,0.7);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
  border-radius: inherit;
}
.portfolio-card:hover .pf-overlay { opacity: 1; }
.pf-overlay span {
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: 30px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============ 減少動態偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  .bg-orb, .shimmer::after, .glow-pulse { animation: none !important; }
  .feature, .portfolio-card { transform: none !important; }
  .spotlight-card-glow { display: none; }
}

/* ============================================================
   全面手機優化（860px 以下）
   ============================================================ */
@media (max-width: 860px) {
  /* Hero 區 */
  .hero { padding: 0 20px; min-height: 90vh; }
  .hero h1 { font-size: clamp(36px, 11vw, 64px); letter-spacing: -1px; }
  .hero p { font-size: 15px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { width: 100%; justify-content: center; }
  .hero.small { min-height: auto; padding: 120px 20px 60px; }

  /* 通用區塊 padding 細化 */
  .section { padding: 60px 20px; }
  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 38px); }
  .section-head .sub { font-size: 14px; }
  .section-head .tag { font-size: 11px; }

  /* 統計區 */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 40px 16px; }
  .stat { padding: 22px 10px; }
  .stat .num { font-size: 32px; }
  .stat .label { font-size: 11px; }

  /* 卡片 */
  .feature, .mvv-card { padding: 28px 22px; }
  .feature h3, .mvv-card h3 { font-size: 18px; }
  .feature p, .mvv-card p { font-size: 14px; }

  /* Spotlight（Zeus AI / Mars Stock）*/
  .spotlight { padding: 40px 16px; }
  .spotlight-card { padding: 28px 18px; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 32px; }
  .spotlight h2 { font-size: clamp(26px, 8vw, 36px); }
  .spotlight .lead { font-size: 14px; }
  .spotlight-features li { font-size: 14px; gap: 10px; }
  .spotlight-features li .check { width: 20px; height: 20px; font-size: 11px; }
  .spotlight-actions { flex-direction: column; }
  .spotlight-actions .btn-primary, .spotlight-actions .btn-ghost { width: 100%; justify-content: center; }
  .spotlight-models .chip { font-size: 11px; padding: 4px 10px; }

  /* 產品 mockup（Zeus AI 對話框）*/
  .product-mock { max-width: 100%; }
  .mock-body { padding: 0; }
  .chat-area { min-height: 280px; max-height: 340px; padding: 16px; }
  .chat-msg .bubble { font-size: 12px; padding: 9px 12px; }
  .gen-grid { width: 100%; max-width: 260px; }
  .mock-art { border-radius: 10px; }
  .mode-tabs { padding: 8px 10px 0; }
  .mode-tab { padding: 7px 10px; font-size: 11px; }
  .chat-input { padding: 10px; }
  .chat-input input { font-size: 12px; padding: 10px 12px; }
  .chat-input button, .fake-btn { padding: 0 14px; font-size: 12px; }

  /* Mars Stock mockup */
  .mars-body { padding: 14px; }
  .mars-stock-head { padding: 10px 12px; }
  .mars-num { font-size: 17px; }
  .mars-chart { height: 70px; }
  .mars-ai-panel { padding: 12px; }
  .mars-agent { font-size: 11px; }

  /* 流程區 timeline */
  .timeline { padding-left: 32px; }
  .timeline::before { left: 6px; }
  .t-item::before { left: -31px; width: 15px; height: 15px; }
  .t-year { font-size: 22px; }
  .t-content h4 { font-size: 16px; }
  .t-content p { font-size: 13px; }

  /* 流程卡片 */
  .process { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 26px 20px; }
  .step h4 { font-size: 16px; }

  /* CTA */
  .cta-wrap { padding: 48px 24px; margin: 40px 16px; }
  .cta-wrap h2 { font-size: clamp(24px, 6vw, 32px); }
  .cta-wrap p { font-size: 14px; }
  .cta-wrap .btn-primary { width: 100%; justify-content: center; }

  /* 關於頁 */
  .about-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-intro h2 { font-size: clamp(26px, 7vw, 36px); }
  .about-intro p { font-size: 14px; }
  .ai-card { padding: 32px 24px; }
  .ai-meta { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mvv-grid { grid-template-columns: 1fr; }

  /* 作品集 */
  .portfolio-info { padding: 20px; }
  .portfolio-info h3 { font-size: 17px; }
  .portfolio-thumb { height: 160px; font-size: 44px; }
  .portfolio-results { grid-template-columns: 1fr 1fr; gap: 8px; }
  .portfolio-results .result .figure { font-size: 17px; }

  /* 聯絡頁 */
  .contact-info-card { padding: 28px 22px; }
  .contact-form { padding: 28px 22px; }

  /* 頁尾 */
  footer { padding: 40px 20px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { font-size: 11px; }

  /* 浮動按鈕避開內容 */
  .float-contact { bottom: 16px; right: 16px; }

  /* loader */
  .loader-logo { font-size: 28px; }
}

/* ============================================================
   超細螢幕（480px 以下）
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ai-meta { grid-template-columns: 1fr; }
  .spotlight-card { padding: 22px 16px; }
  .section { padding: 50px 16px; }
  .float-contact { bottom: 14px; right: 14px; }
}
