/* ==============================
   Design Tokens — 翔耀 AI Agent 商品頁
   色調：深夜藍底 × 電光靛藍 × 柔紫
   風格對齊翔耀實業官網 — 專業企業 B2B 風格
   保留品牌藍紫色系 + 精緻動效
   ============================== */
:root {
  /* 底色 — 深色區 */
  --bg-primary: #060c1e;
  --bg-card: rgba(10, 16, 36, 0.75);
  --bg-card-hover: rgba(18, 26, 56, 0.85);

  /* 淺色區背景 — 對齊翔耀官網的淺灰白內容區 */
  --bg-light: #f3f4f8;
  --bg-card-light: #ffffff;
  --bg-card-light-hover: #fafbff;

  /* 主色系 — 保持品牌藍紫色 */
  --accent-primary: #818cf8;
  /* 靛藍 — 主強調 */
  --accent-secondary: #60a5fa;
  /* 亮藍 — 副色 */
  --accent-violet: #a78bfa;
  /* 柔紫 — 第三色 */
  --accent-orange: #fb923c;
  --accent-gold: #fcd34d;

  /* 漸層 */
  --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
  --cta-gradient: linear-gradient(135deg, #5b5bd6 0%, #6e6ef0 40%, #818cf8 100%);
  --footer-gradient: linear-gradient(180deg, #1e1158 0%, #2a1870 100%);

  /* 文字 */
  --text-primary: #eaefff;
  --text-secondary: #a0aed0;
  --text-muted: #566088;
  --text-dark: #1a1e36;
  --text-dark-secondary: #4a5070;
  --text-dark-muted: #8890aa;

  /* 邊框 */
  --border-color: rgba(129, 140, 248, 0.12);
  --border-light: rgba(0, 0, 0, 0.08);

  /* 結構 */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* 字型 — 改為更企業化的搭配 */
  --font-display: 'Inter', 'Noto Sans TC', sans-serif;
  --font-heading: 'Inter', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', 'Inter', sans-serif;

  /* 動效 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

/* ====== Reset ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ====== 靜態背景 — 微粒紋理 ====== */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* 光球改為靜態氛圍暈（不動畫，純背景光） */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.06);
  top: 5%;
  left: -8%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(56, 189, 248, 0.04);
  top: 40%;
  right: -10%;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(167, 139, 250, 0.04);
  bottom: 5%;
  left: 25%;
}

/* ====== Utilities ====== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.section-lead-center {
  margin: 0 auto;
  text-align: center;
}

/* 淺色區文字顏色覆寫 */
.light-section .section-lead {
  color: var(--text-dark-secondary);
}

.light-section .section-label {
  color: var(--accent-primary);
  text-shadow: none;
}

.light-section .section-label::after {
  box-shadow: none;
}

.light-section .section-title {
  color: var(--text-dark);
  text-shadow: none;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  margin-top: 12px;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #60a5fa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 恢復稍微明顯的漸層流動，增加活力 */
  animation: shimmerGradient 4s ease-in-out infinite;
}

@keyframes shimmerGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ====== 吸引眼球的動態分隔線 (優雅版) ====== */
.section-divider {
  position: relative;
  height: 1px;
  width: 100%;
  background: rgba(129, 140, 248, 0.1);
  overflow: hidden;
  display: block;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), rgba(167, 139, 250, 0.8), transparent);
  animation: elegantSlide 6s ease-in-out infinite;
}

@keyframes elegantSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* ====== Buttons — 注入購買慾的高級光澤 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: shimmerGradient 4s ease-in-out infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: premiumSheen 5s infinite;
}

@keyframes premiumSheen {

  0%,
  70% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6), 0 0 15px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  background-size: 200% 200%;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* 淺色區的按鈕變體 */
.light-section .btn-outline {
  color: var(--text-dark);
  border-color: rgba(99, 102, 241, 0.3);
}

.light-section .btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--accent-primary);
}

/* ====== Animations — 精緻淡入 ====== */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ====== Navbar — 透明起始，滾動變深色 ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(6, 12, 30, 0.95);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(129, 140, 248, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-right: 4px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  margin-top: -2px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  display: block;
}

/* ====== Hero — 深色，大氣專業 ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: linear-gradient(170deg, rgba(6, 12, 34, 0.8) 0%, rgba(10, 16, 53, 0.6) 40%, rgba(6, 12, 34, 0.85) 100%);
}

/* 新增：Hero 背景圖層，加上緩慢呼吸放大效果，視覺具備震撼感而不吵雜 */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./hero-bg.png') center/cover no-repeat;
  z-index: -2;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  100% {
    transform: scale(1.08);
    filter: brightness(1.15);
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* 底部網格 — 靜態透視感（保留科技氛圍） */
.hero-grid {
  position: absolute;
  bottom: -20%;
  left: -50%;
  width: 200%;
  height: 70%;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(600px) rotateX(75deg);
  z-index: 1;
  mask-image: linear-gradient(transparent, black 30%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(transparent, black 30%, black 80%, transparent);
  /* 保留慢速移動 — 增加活力 */
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: perspective(600px) rotateX(75deg) translateY(0);
  }

  100% {
    transform: perspective(600px) rotateX(75deg) translateY(80px);
  }
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 820px;
}

.hero-label {
  display: inline-block;
  padding: 8px 22px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-subtitle em {
  color: #93c5fd;
  font-style: normal;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ====== 流光分隔線改為靜態裝飾 ====== */
.section-divider {
  display: none;
}

/* ====== HOW 架構區塊 — 淺色區 ====== */
.how-section {
  padding: var(--section-padding);
  background: var(--bg-light);
  position: relative;
}

/* 移除圓弧過渡，改為乾淨的直線切換，保持企業專業感並避免蓋到上方文字 */

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.arch-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.arch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.4s ease;
}

.arch-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.arch-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.arch-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.arch-card:hover .arch-icon {
  transform: scale(1.15);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
}

.arch-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.arch-desc {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 14px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ====== WHAT 工具箱 — 深色區 ====== */
.tools-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-primary) 0%, #080e24 50%, var(--bg-primary) 100%);
  position: relative;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  background: rgba(14, 20, 44, 0.6);
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2), inset 0 0 20px rgba(129, 140, 248, 0.05);
  background: rgba(20, 26, 60, 0.85);
}

/* 主推卡片佔 2 欄 — 絕對吸睛設計 */
.tool-card-featured {
  grid-column: span 2;
  border-color: rgba(251, 146, 60, 0.4);
  background: linear-gradient(145deg, rgba(20, 22, 45, 0.9), rgba(40, 25, 15, 0.8));
  box-shadow: 0 0 30px rgba(251, 146, 60, 0.1);
}

.tool-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.15), transparent 60%);
  pointer-events: none;
}

.tool-card-featured:hover {
  border-color: rgba(251, 146, 60, 0.8);
  box-shadow: 0 15px 50px rgba(251, 146, 60, 0.25), inset 0 0 30px rgba(251, 146, 60, 0.1);
  transform: translateY(-8px) scale(1.02);
}

.tool-card-featured .tool-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  color: #111;
  font-weight: 800;
  cursor: pointer;
}

.tool-card-featured .tool-cta:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fb923c 0%, #fcd34d 100%);
}

.tool-badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 500;
}

.tool-badge-gold {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
}

.tool-icon-wrap {
  font-size: 2rem;
  margin-bottom: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  color: var(--accent-primary);
  transition: var(--transition);
}

.tool-card:hover .tool-icon-wrap {
  background: rgba(129, 140, 248, 0.14);
  transform: scale(1.05);
}

.tool-orange {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.08) 100%);
  border-color: rgba(96, 165, 250, 0.2);
  color: #93b4fd;
}

.tool-gold {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(252, 211, 77, 0.08) 100%);
  border-color: rgba(252, 211, 77, 0.25);
  color: var(--accent-gold);
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.tool-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.tool-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-features li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
}

.tool-cta {
  margin-top: 20px;
  width: 100%;
}

/* LLM 支援 */
.llm-section {
  margin-top: 64px;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
}

.llm-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.llm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.llm-chip {
  padding: 8px 18px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.llm-chip:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* ====== 應用場景 — 淺色區 ====== */
.cases-section {
  padding: var(--section-padding);
  background: var(--bg-light);
  position: relative;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  margin-bottom: 64px;
}

.case-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.case-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.2);
}

.case-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}

.case-card:hover .case-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(167, 139, 250, 0.15) 100%);
}

.case-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.case-desc {
  font-size: 0.875rem;
  color: var(--text-dark-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ====== FAQ — 深色區 ====== */
.faq-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0a1030 50%, var(--bg-primary) 100%);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list-spaced {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.faq-item:hover {
  border-color: rgba(129, 140, 248, 0.2);
  border-left-color: var(--accent-primary);
}

.faq-item.open {
  border-left-color: var(--accent-secondary);
  background: rgba(10, 16, 36, 0.9);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ====== Contact — 淺色區 ====== */
.contact-section {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.contact-info>p {
  font-size: 0.975rem;
  color: var(--text-dark-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-info .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-choose-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.why-item:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.1);
  transform: translateX(4px);
}

.why-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.why-icon svg {
  stroke: currentColor;
  stroke-width: 2px;
}

.why-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.contact-item:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.1);
  transform: translateX(4px);
}

.contact-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: 0;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.contact-icon svg {
  stroke: currentColor;
  stroke-width: 2px;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  font-weight: 500;
}

.contact-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Form — 在淺色區裡的深色表單 */
.contact-form {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(8, 12, 30, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-select option {
  background: #0c1024;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: none;
}

.form-status.success {
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: var(--accent-primary);
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  display: block;
}

.honeypot {
  display: none !important;
}

.turnstile-widget {
  margin-bottom: 24px;
}

/* ====== Footer — 紫色漸層，四欄位，對齊官網 ====== */
.footer {
  padding: 60px 0 40px;
  background: var(--footer-gradient);
  border-top: none;
  color: rgba(255, 255, 255, 0.85);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  margin-bottom: 8px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  font-style: italic;
}

.footer-divider {
  display: none;
}

.footer-company {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.footer-heading {
  color: white;
  margin-bottom: 8px;
  display: block;
  font-size: 0.95rem;
}

.footer-address {
  font-size: 0.85rem;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-contact a, 
.footer-contact span {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #ffffff;
  text-align: center;
  padding-top: 24px;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== Cookie Banner ====== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 700px;
  width: calc(100% - 48px);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: opacity 0.5s, transform 0.5s;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.cookie-banner p {
  flex: 1 1 320px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cookie-banner a {
  color: var(--accent-primary);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-btn {
  padding: 8px 20px;
  background: var(--cta-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-weight: 600;
}

.cookie-btn:hover {
  transform: scale(1.05);
}

/* ====== 滑鼠跟隨光暈 — 隱藏 ====== */
.cursor-glow {
  display: none;
}

/* ====== 精緻 Hover 增強（保留購買慾動效） ====== */

/* 卡片 hover 頂部漸層線出現 */
.arch-card:hover .arch-icon,
.tool-card:hover .tool-icon-wrap {
  transform: scale(1.06);
  transition: transform 0.4s ease;
}

.arch-card:hover .arch-title,
.case-card:hover .case-title {
  color: var(--accent-primary);
  transition: color 0.3s;
}

.tool-card:hover .tool-name {
  color: #fff;
  transition: color 0.3s;
}

/* 數字 hover 微增強 */
.stat-value {
  transition: transform 0.3s, filter 0.3s;
}

.stat-value:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.3));
}

/* 工具卡片角標裝飾（靜態小點） */
.tool-card::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.25;
}

.tool-card:hover::before {
  opacity: 0.6;
}

.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-card-featured::after {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-card-featured {
    grid-column: span 2;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 12, 30, 0.97);
    gap: 0;
    padding: 24px;
    align-items: flex-start;
    z-index: 999;
  }

  .nav-links.open li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.open a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stats .stat-item {
    flex: 1;
    min-width: 80px;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-featured {
    grid-column: span 1;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cookie-banner {
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .llm-chips {
    justify-content: flex-start;
  }

  .cookie-banner {
    width: calc(100% - 32px);
    padding: 16px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}