/* ==========================================================================
   Minxi 命析 - 官方網站樣式表 (Modern Celestial Design System)
   ========================================================================== */

:root {
  --font-main: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Cinzel', 'Noto Serif TC', Georgia, serif;
  
  /* 宇宙星曜深邃色彩體系 */
  --bg-space-deep: #060814;
  --bg-space-dark: #0b0f24;
  --bg-space-surface: #111738;
  --bg-card: rgba(16, 23, 52, 0.72);
  --bg-card-hover: rgba(26, 36, 78, 0.88);
  --bg-card-solid: #131a3d;
  --bg-glass-overlay: rgba(10, 14, 34, 0.85);

  /* 曜金與星曜高光 */
  --gold-primary: #f5be58;
  --gold-light: #fce396;
  --gold-dark: #c69426;
  --gold-glow: rgba(245, 190, 88, 0.38);
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #f5be58 50%, #c69426 100%);
  --gold-gradient-hover: linear-gradient(135deg, #fff2b2 0%, #ffd06b 50%, #d8a230 100%);

  /* 藍星、星雲與天象光暈 */
  --blue-stellar: #3b82f6;
  --blue-stellar-light: #60a5fa;
  --blue-stellar-glow: rgba(59, 130, 246, 0.35);
  --purple-nebula: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.28);
  --teal-cosmic: #14b8a6;
  --teal-glow: rgba(20, 184, 166, 0.28);

  /* 文字顏色 */
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8493a8;
  --text-gold: #fae4a4;
  
  /* 邊框與分隔線 */
  --border-subtle: rgba(245, 190, 88, 0.16);
  --border-highlight: rgba(245, 190, 88, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(59, 130, 246, 0.3);

  /* 陰影與光效 */
  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.65), 0 0 1px 1px var(--border-subtle);
  --shadow-card-hover: 0 20px 48px -12px rgba(59, 130, 246, 0.3), 0 0 24px 0 var(--gold-glow), 0 0 1px 1px var(--border-highlight);
  --shadow-button-gold: 0 4px 20px var(--gold-glow);
  --shadow-button-blue: 0 4px 20px var(--blue-stellar-glow);

  /* 尺寸與半徑 */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --nav-height: 76px;
}

/* ==========================================================================
   基礎重置與排版
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-space-deep);
  color: var(--text-primary);
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 動態 Canvas 星空背景 */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* 宇宙星雲背景漸層光層 */
.cosmic-nebula-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(245, 190, 88, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* 容器寬度 */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

img, svg {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   導航列 Header & Nav
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 8, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  background: rgba(6, 8, 20, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(245, 190, 88, 0.25);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.logo-icon-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.logo-glow-effect {
  position: absolute;
  inset: -2px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold-primary), var(--blue-stellar));
  opacity: 0.45;
  filter: blur(6px);
  z-index: 0;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-glow-effect {
  opacity: 0.8;
  filter: blur(8px);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: 1.8px;
  margin-top: 1px;
  font-family: var(--font-serif);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

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

/* 頂部導航主要動作按鈕 */
.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--gold-gradient);
  color: #060814;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-button-gold);
}

.btn-nav-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(245, 190, 88, 0.55);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-subtle);
}

/* ==========================================================================
   Hero 主視覺區塊
   ========================================================================== */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 440px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24) 0%, rgba(245, 190, 88, 0.15) 40%, rgba(139, 92, 246, 0.08) 60%, transparent 75%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
  100% { transform: translate(-50%, -46%) scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  background: rgba(245, 190, 88, 0.1);
  border: 1px solid rgba(245, 190, 88, 0.35);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  box-shadow: 0 0 20px rgba(245, 190, 88, 0.18);
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: badgeDotBlink 2s ease-in-out infinite;
}

@keyframes badgeDotBlink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 1.4rem;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, var(--gold-light) 60%, var(--blue-stellar-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(245, 190, 88, 0.25));
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 3.5rem;
}

.hero-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--gold-gradient);
  color: #060814;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.15rem;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(245, 190, 88, 0.45);
  position: relative;
  overflow: hidden;
}

.hero-main-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.hero-main-btn:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 42px rgba(245, 190, 88, 0.65);
}

.hero-main-btn:hover::before {
  left: 100%;
}

.hero-app-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-app-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.hero-app-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.hero-trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 0.5rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--gold-primary);
}

/* ==========================================================================
   Hero 互動式六大排盤實時展示器 (Interactive Chart Showcase)
   ========================================================================== */
.chart-showcase-wrapper {
  margin: 1.5rem auto 0;
  max-width: 1060px;
  position: relative;
  z-index: 3;
}

.chart-showcase-card {
  background: linear-gradient(180deg, rgba(20, 28, 64, 0.85) 0%, rgba(11, 15, 38, 0.92) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px 0 rgba(59, 130, 246, 0.18);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.chart-showcase-card:hover {
  border-color: var(--border-highlight);
}

.showcase-header {
  padding: 1.25rem 1.8rem;
  background: rgba(6, 8, 20, 0.65);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.showcase-dots {
  display: flex;
  gap: 8px;
}

.showcase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.showcase-dot.red { background: #ff5f56; }
.showcase-dot.yellow { background: #ffbd2e; }
.showcase-dot.green { background: #27c93f; }

.showcase-title-bar {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-tabs {
  display: flex;
  background: rgba(6, 8, 20, 0.8);
  padding: 6px;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-glass);
  scrollbar-width: none;
}
.showcase-tabs::-webkit-scrollbar {
  display: none;
}

.showcase-tab-btn {
  flex: 1;
  min-width: 130px;
  padding: 10px 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.showcase-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.showcase-tab-btn.active {
  background: var(--bg-card-solid);
  color: var(--gold-light);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.showcase-tab-btn.active svg {
  color: var(--gold-primary);
}

.showcase-body {
  padding: 2.2rem;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.showcase-panel {
  display: none;
  width: 100%;
  animation: fadeInPanel 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-panel.active {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-preview-box {
  background: rgba(6, 8, 20, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.chart-graphic {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.panel-info-box {
  text-align: left;
}

.panel-tag-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid var(--border-blue);
  color: var(--blue-stellar-light);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.panel-info-box h3 {
  font-size: 1.65rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.panel-info-box p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.panel-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.6rem;
}

.panel-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.panel-feature-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.panel-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.94rem;
  font-weight: 700;
  transition: gap 0.2s ease, color 0.2s ease;
}

.panel-action-link:hover {
  color: #ffffff;
  gap: 12px;
}

/* ==========================================================================
   區塊通用排版
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.8rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
  font-family: var(--font-serif);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   六大核心排盤體系 (6 Core Chart Systems)
   ========================================================================== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.system-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

.system-card:hover::before {
  opacity: 1;
}

.system-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.system-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 190, 88, 0.12);
  border: 1px solid rgba(245, 190, 88, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  transition: all 0.3s ease;
}

.system-card:hover .system-icon-box {
  background: var(--gold-gradient);
  color: #060814;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 4px 18px rgba(245, 190, 88, 0.4);
}

.system-tag {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-stellar-light);
  border: 1px solid var(--border-blue);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.system-card h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.system-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.system-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill-sm {
  font-size: 0.76rem;
  color: var(--text-gold);
  background: rgba(245, 190, 88, 0.08);
  border: 1px solid rgba(245, 190, 88, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all 0.2s ease;
}

.system-card:hover .pill-sm {
  background: rgba(245, 190, 88, 0.16);
  border-color: rgba(245, 190, 88, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   傳統術數、玄學工具與創新功能 (Specialized Tools)
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tool-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.2);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.1rem;
}

.tool-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-stellar-light);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.tool-card:hover .tool-icon-box {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--blue-stellar-light);
  color: #ffffff;
  transform: scale(1.05);
}

.tool-card h4 {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 700;
}

.tool-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* ==========================================================================
   技術優勢與資安保障 (Technical Specs & Security #specs)
   ========================================================================== */
.specs-section {
  background: linear-gradient(180deg, rgba(6, 8, 20, 0.8) 0%, rgba(14, 20, 48, 0.7) 50%, rgba(6, 8, 20, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.spec-box {
  background: rgba(16, 23, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.spec-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: rgba(26, 36, 78, 0.75);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 16px var(--gold-glow);
}

.spec-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(245, 190, 88, 0.1);
  border: 1px solid rgba(245, 190, 88, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin: 0 auto 1.25rem;
  transition: all 0.25s ease;
}

.spec-box:hover .spec-icon-box {
  transform: scale(1.1);
  background: var(--gold-gradient);
  color: #060814;
}

.spec-box h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.spec-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   常見問題 FAQ (Accordion)
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.faq-item:hover {
  border-color: var(--border-highlight);
}

.faq-item[open] {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.faq-question {
  padding: 1.35rem 1.6rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 190, 88, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold-gradient);
  color: #060814;
}

.faq-answer {
  padding: 0 1.6rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.78;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
}

/* ==========================================================================
   底部 CTA 區塊 (Bottom Grand CTA Banner)
   ========================================================================== */
.cta-banner {
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
}

.cta-banner-box {
  background: linear-gradient(135deg, rgba(26, 36, 88, 0.85) 0%, rgba(14, 20, 48, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 30px var(--gold-glow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.cta-banner-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 190, 88, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-banner-box h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.cta-banner-box p {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 2.4rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ==========================================================================
   法律條款與隱私權頁面 (Legal Pages)
   ========================================================================== */
.legal-content {
  padding: 3.5rem 0 6rem;
  max-width: 880px;
}

.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.legal-header h1 {
  font-size: 2.6rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.legal-header .legal-updated {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.legal-body h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.legal-body ul {
  color: var(--text-secondary);
  padding-left: 1.6rem;
  margin-bottom: 1.4rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.legal-back-nav {
  margin-bottom: 1.5rem;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
}

/* ==========================================================================
   Footer 頁尾
   ========================================================================== */
footer {
  background: var(--bg-space-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.2rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.3rem;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: var(--gold-primary);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 1.8rem;
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   懸浮回到頂部按鈕 (Floating Back to Top)
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 23, 52, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--gold-gradient);
  color: #060814;
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(245, 190, 88, 0.4);
}

/* ==========================================================================
   響應式設計 (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 1080px) {
  .systems-grid, .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-panel.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 66px;
  }
  
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(6, 8, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem 2.2rem;
    gap: 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-actions {
    display: none;
  }
  
  .systems-grid, .tools-grid, .specs-grid {
    grid-template-columns: 1fr;
  }

  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-body {
    padding: 1.4rem;
  }

  .panel-feature-list {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-box {
    padding: 3rem 1.5rem;
  }

  .cta-banner-box h2 {
    font-size: 1.9rem;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
  }
}
