/* ===== 簡潔的網站樣式系統 ===== */

/* 主題切換按鈕 */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-tooltip);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: var(--transition-normal);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--shadow-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--card-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.theme-toggle-icon {
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

/* 淺色模式 - 完整重寫 */
[data-theme="light"] {
  /* 主色彩系統 */
  --primary: #007BFF !important;
  --primary-light: #4A9EFF !important;
  --primary-dark: #0056CC !important;
  --secondary: #6C757D !important;
  --secondary-light: #8A9199 !important;
  --secondary-dark: #495057 !important;
  --accent: #DC3545 !important;
  --accent-light: #E55A6B !important;
  --accent-dark: #B02A37 !important;
  --success: #28A745 !important;
  --warning: #FFC107 !important;
  --error: #DC3545 !important;
  --info: #17A2B8 !important;
  
  /* 背景系統 */
  --background: #FFFFFF !important;
  --background-secondary: #F8F9FA !important;
  --background-tertiary: #E9ECEF !important;
  --card: rgba(0, 0, 0, 0.05) !important;
  --card-hover: rgba(0, 0, 0, 0.08) !important;
  --overlay: rgba(0, 0, 0, 0.5) !important;
  
  /* 文字系統 */
  --text: #1A202C !important;
  --text-secondary: #4A5568 !important;
  --text-tertiary: #718096 !important;
  --text-inverse: #FFFFFF !important;
  
  /* 邊框系統 */
  --border: rgba(0, 0, 0, 0.1) !important;
  --border-light: rgba(0, 0, 0, 0.05) !important;
  --border-strong: rgba(0, 0, 0, 0.2) !important;
  
  /* 陰影系統 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.25) !important;
  --shadow-glow: 0 0 20px rgba(0, 123, 255, 0.4) !important;
  --shadow-glow-secondary: 0 0 20px rgba(108, 117, 125, 0.4) !important;
  --shadow-glow-accent: 0 0 20px rgba(220, 53, 69, 0.4) !important;
  
  /* 玻璃效果 */
  --glass-bg: rgba(255, 255, 255, 0.8) !important;
  --glass-border: rgba(0, 0, 0, 0.1) !important;
  --glass-backdrop: blur(10px) !important;
  
  /* 強制覆蓋所有背景和文字 */
  body {
    background: #FFFFFF !important;
    color: #1A202C !important;
  }
  
  .nav-redesigned {
    background: rgba(248, 249, 250, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
  
  .nav__brand, .nav__link, .nav__admin-link {
    color: #1A202C !important;
  }
  
  .features-mobile {
    background: #F8F9FA !important;
  }
  
  .feature-item-mobile {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1A202C !important;
  }
  
  .features-header h2,
  .features-header p,
  .feature-title h3,
  .feature-content p {
    color: #1A202C !important;
  }
  
  .hero {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%) !important;
    color: #1A202C !important;
  }
  
  .hero__title,
  .hero__subtitle {
    color: #1A202C !important;
  }
  
  .ecosystem {
    background: #FFFFFF !important;
    color: #1A202C !important;
  }
  
  .cta-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%) !important;
    color: #1A202C !important;
  }
  
  /* 申請表單樣式 */
  .application-page {
    background: #FFFFFF !important;
    color: #1A202C !important;
  }
  
  .form-section {
    background: rgba(248, 249, 250, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1A202C !important;
  }
  
  .form-group label {
    color: #1A202C !important;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    background: #FFFFFF !important;
    color: #1A202C !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
  
  .option-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
  }
  
  .option-title {
    color: #1A202C !important;
  }
  
  .option-desc {
    color: #4A5568 !important;
  }
  
  .summary-label {
    color: #4A5568 !important;
  }
  
  .summary-value {
    color: #1A202C !important;
  }
}

/* 基礎變數 - 現代化設計系統 */
:root {
  /* 主色彩系統 */
  --primary: #00D4FF;
  --primary-light: #4DE5FF;
  --primary-dark: #0099CC;
  --secondary: #A855F7;
  --secondary-light: #C084FC;
  --secondary-dark: #7C3AED;
  --accent: #FF6B9D;
  --accent-light: #FFB3D1;
  --accent-dark: #E91E63;
  
  /* 背景系統 */
  --background: #0A0E1A;
  --background-secondary: #1A202C;
  --background-tertiary: #2D3748;
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.08);
  --overlay: rgba(0, 0, 0, 0.5);
  
  /* 文字系統 */
  --text: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-tertiary: #718096;
  --text-inverse: #1A202C;
  
  /* 邊框系統 */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.2);
  
  /* 陰影系統 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.4);
  --shadow-glow-secondary: 0 0 20px rgba(168, 85, 247, 0.4);
  --shadow-glow-accent: 0 0 20px rgba(255, 107, 157, 0.4);
  
  /* 圓角系統 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* 間距系統 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* 動畫系統 */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 玻璃效果 */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(10px);
  
  /* 漸層系統 */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --gradient-rainbow: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* 字體系統 */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* 導航系統 */
  --nav-height: 80px;
  --nav-height-mobile: 60px;
  
  /* Z-index 系統 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* 響應式設計套件 */
/* 媒體查詢斷點 */
/* 手機優先設計 */
@media (max-width: 767px) {
  :root {
    --nav-height: var(--nav-height-mobile);
    --spacing-md: 12px;
    --spacing-lg: 20px;
    --spacing-xl: 28px;
    --font-size-base: 0.9rem;
    --radius-lg: 12px;
  }
}

/* 平板設計 */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --spacing-md: 18px;
    --spacing-lg: 28px;
    --spacing-xl: 36px;
  }
}

/* 桌面設計 */
@media (min-width: 1024px) {
  :root {
    --spacing-md: 20px;
    --spacing-lg: 32px;
    --spacing-xl: 40px;
  }
}

/* 大螢幕設計 */
@media (min-width: 1440px) {
  :root {
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 48px;
  }
}

/* 重置樣式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 無障礙性套件 */
/* 減少動畫偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 高對比度模式 */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.5);
    --text-secondary: #FFFFFF;
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
  }
}

/* 焦點指示器 */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.3);
}

/* 鍵盤導航優化 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: var(--z-tooltip);
  transition: var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* 屏幕閱讀器專用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 無障礙性改進 */
button, a, input, select, textarea {
  transition: var(--transition-normal);
}

/* 確保最小觸控目標尺寸 */
button, 
a[role="button"], 
input[type="button"], 
input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
}

/* 表單無障礙性 */
label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text);
}

input, select, textarea {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text);
  font-size: var(--font-size-base);
  transition: var(--transition-normal);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* 錯誤狀態 */
input:invalid, select:invalid, textarea:invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 成功狀態 */
input:valid, select:valid, textarea:valid {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 現代化設計組件套件 */
/* 玻璃效果卡片 */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* 漸層按鈕 */
.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-xl);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

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

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-gradient:active {
  transform: translateY(0);
}

/* 發光效果 */
.glow-effect {
  box-shadow: var(--shadow-glow);
  transition: var(--transition-normal);
}

.glow-effect:hover {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  transform: scale(1.05);
}

/* 彈跳動畫 */
.bounce-animation {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* 淡入動畫 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

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

/* 滑入動畫 */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition-normal);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-normal);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 縮放動畫 */
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-normal);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* 旋轉動畫 */
.rotate-in {
  opacity: 0;
  transform: rotate(-180deg);
  transition: var(--transition-slow);
}

.rotate-in.visible {
  opacity: 1;
  transform: rotate(0deg);
}

/* 脈衝效果 */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

/* 波浪效果 */
.wave-effect {
  position: relative;
  overflow: hidden;
}

.wave-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.wave-effect:active::after {
  width: 300px;
  height: 300px;
}

/* 現代化卡片 */
.modern-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.modern-card:hover::before {
  transform: scaleX(1);
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}

/* 現代化輸入框 */
.modern-input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  color: var(--text);
  font-size: var(--font-size-base);
  transition: var(--transition-normal);
  width: 100%;
}

.modern-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: var(--card-hover);
}

.modern-input::placeholder {
  color: var(--text-tertiary);
}

/* 現代化標籤 */
.modern-tag {
  display: inline-block;
  background: var(--gradient-secondary);
  color: var(--text-inverse);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin: var(--spacing-xs);
  transition: var(--transition-fast);
}

.modern-tag:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-secondary);
}

/* 現代化進度條 */
.modern-progress {
  background: var(--background-secondary);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  position: relative;
}

.modern-progress-bar {
  background: var(--gradient-primary);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  position: relative;
}

.modern-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 錯誤訊息樣式 */
.error-message {
  color: var(--accent);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: var(--radius-sm);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 焦點可見樣式 */
.focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.3) !important;
}

/* 導航欄自動隱藏/彈出功能 */
.nav-redesigned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  transition: transform var(--transition-normal), 
              background-color var(--transition-normal),
              backdrop-filter var(--transition-normal),
              box-shadow var(--transition-normal);
  transform: translateY(0);
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

/* 導航欄隱藏狀態 */
.nav-redesigned.nav-hidden {
  transform: translateY(-100%);
}

/* 導航欄顯示狀態 - 使用默認樣式 */

/* 導航欄品牌區域優化 */
.nav__brand-section {
  transition: var(--transition-normal);
}

.nav-hidden .nav__brand-section {
  opacity: 0.8;
}

.nav-visible .nav__brand-section {
  opacity: 1;
}

/* 導航欄按鈕優化 */
.nav__toggle,
.action__btn {
  transition: var(--transition-normal);
}

.nav-hidden .nav__toggle,
.nav-hidden .action__btn {
  opacity: 0.7;
}

.nav-visible .nav__toggle,
.nav-visible .action__btn {
  opacity: 1;
}

/* 移動端導航欄優化 */
@media (max-width: 767px) {
  .nav-redesigned {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
  
  .nav-redesigned.nav-hidden {
    transform: translateY(-100%);
  }
  
  .nav-redesigned.nav-visible {
    transform: translateY(0);
  }
}

/* 導航欄指示器 */
.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
  border-radius: 1px;
}

/* 滾動進度條 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
  z-index: var(--z-tooltip);
  transition: width var(--transition-fast);
  border-radius: 1px;
}

/* 減少動畫偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 手機版功能列表重新設計 ===== */
.features-mobile {
  padding: 40px 0;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.features-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.02) 0%, rgba(255, 107, 157, 0.02) 100%);
  pointer-events: none;
}

.features-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.badge-icon {
  font-size: 1.2rem;
}

.features-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00D4FF, #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.features-header p {
  font-size: 1.1rem;
  color: #E8E8E8;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.features-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.feature-item-mobile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-radius: 20px;
  padding: 28px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-item-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(255, 107, 157, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.feature-item-mobile:hover::before {
  opacity: 1;
}

.feature-item-mobile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.feature-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.feature-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
  position: relative;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.feature-item-mobile:hover .icon-glow {
  opacity: 1;
}

.feature-title {
  flex: 1;
}

.feature-title h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.feature-tag {
  display: inline-block;
  background: linear-gradient(135deg, #00D4FF, #0099CC);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
  letter-spacing: 0.5px;
}

.feature-content {
  position: relative;
  z-index: 2;
}

.feature-content p {
  color: #F0F0F0;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

.feature-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
}

.benefit-item:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
  color: #00D4FF;
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.features-summary {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.summary-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.summary-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.summary-content {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.summary-content h4 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.summary-content p {
  color: #F0F0F0;
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

.summary-btn {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(255, 107, 157, 0.08) 100%);
  color: #FF6B9D;
  border: 2px solid rgba(255, 107, 157, 0.3);
  border-radius: 16px;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.2);
  letter-spacing: 0.5px;
}

.summary-btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(255, 107, 157, 0.15) 100%);
  color: #FFFFFF;
  border-color: rgba(255, 107, 157, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 157, 0.4);
}


/* 平板和桌面適配 */
@media (min-width: 768px) {
  .features-mobile {
    padding: 60px 0;
  }
  
  .features-header h2 {
    font-size: 2.2rem;
  }
  
  .features-container {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
  }
  
  .feature-item-mobile {
    padding: 32px;
  }
  
  .feature-title h3 {
    font-size: 1.4rem;
  }
  
  .summary-card {
    padding: 32px;
  }
  
  .summary-content h4 {
    font-size: 1.6rem;
  }
}

/* ===== 重新設計的導航系統 ===== */
/* 導航欄基礎樣式已在上方自動隱藏功能中定義 */

/* 品牌區域 */
.nav__brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  max-width: 200px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.nav__brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.nav__brand:hover::before {
  opacity: 1;
}

.nav__brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.brand__icon {
  font-size: 1.8rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.brand__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.brand__tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

/* 語言切換器 - 緊湊版 */
.nav__language-compact {
  margin-top: 4px;
}

.language-selector-compact {
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.08) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: #00D4FF;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 100px;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.language-selector-compact:hover {
  border-color: #00D4FF;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 212, 255, 0.15) 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.language-selector-compact:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.language-selector-compact option {
  background: #0A0E1A;
  color: #00D4FF;
  padding: 8px;
  font-weight: 600;
}

/* 導航選單 */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.nav__link:hover::before {
  opacity: 1;
}

.nav__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.nav__icon {
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.nav__text {
  position: relative;
  z-index: 2;
}

/* 管理員登入 - 漢堡選單最下方 */
.nav__admin-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(255, 107, 157, 0.08) 100%);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 12px;
  color: #FF6B9D;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav__admin-link:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(255, 107, 157, 0.15) 100%);
  color: #FFFFFF;
  border-color: rgba(255, 107, 157, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.nav__admin-link .nav__icon {
  font-size: 1.1rem;
}

/* 舊的管理員登入樣式 - 保留備用 */
.nav__admin-mini {
  display: flex;
  align-items: center;
}

.admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 10px;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.admin-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.admin-link:hover::before {
  opacity: 1;
}

.admin-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.admin-icon {
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

/* 行動按鈕 */
.nav__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
}

.action__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.action__btn:hover::before {
  opacity: 1;
}

.action__btn--secondary {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(255, 107, 157, 0.08) 100%);
  border: 1px solid rgba(255, 107, 157, 0.3);
  color: #FF6B9D;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.action__btn--secondary:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(255, 107, 157, 0.15) 100%);
  color: #FFFFFF;
  border-color: rgba(255, 107, 157, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.action__btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  position: relative;
}

.action__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.3);
}

.btn__icon {
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.btn__text {
  position: relative;
  z-index: 2;
}

.btn__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 10px;
  opacity: 0;
  animation: pulse 2s infinite;
  z-index: 1;
}

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

/* 移動端適配 */
@media (max-width: 768px) {
  .nav-redesigned {
    padding: 12px 16px;
    min-height: 70px;
  }
  
  .nav__brand-section {
    max-width: 150px;
  }
  
  .brand__name {
    font-size: 1.1rem;
  }
  
  .brand__tag {
    font-size: 0.75rem;
  }
  
  .language-selector-compact {
    min-width: 80px;
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .nav__menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav__menu[data-open="true"] {
    transform: translateY(0);
  }
  
  .nav__links {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .nav__link {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  
  .nav__actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .action__btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  
  /* 調整主內容區域的padding */
  .main-content {
    padding-top: 90px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== 導航欄 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: var(--nav-height);
  transition: var(--transition);
}

/* 導航欄懸停效果 */
.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav:hover::before {
  opacity: 1;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.nav__brand:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.brand__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.brand__tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 移動端選單按鈕 */
.nav__toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.1);
  z-index: 1001;
}

.nav__toggle .hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__toggle .hamburger span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav__toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 導航選單 */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  font-weight: 500;
}

.nav__link:hover {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.nav__link--admin {
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.2);
  color: var(--accent);
}

.nav__link--admin:hover {
  background: rgba(255, 107, 157, 0.2);
  border-color: rgba(255, 107, 157, 0.4);
}

/* 管理員小卡片 */
.nav__admin-mini {
  display: flex;
  align-items: center;
}

.admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.admin-link:hover {
  background: rgba(255, 107, 157, 0.2);
  border-color: rgba(255, 107, 157, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.admin-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 4px rgba(255, 107, 157, 0.5));
}

.admin-link::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--background);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--border);
}

.admin-link:hover::after {
  opacity: 1;
}

/* 語言切換器 */
.nav__language {
  display: flex;
  align-items: center;
  margin-right: 16px;
}

.language-selector {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-width: 140px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.language-selector::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.language-selector:hover::before {
  left: 100%;
}

.language-selector:hover {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}

.language-selector:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.language-selector option {
  background: var(--background);
  color: var(--text);
  padding: 12px 16px;
  font-weight: 500;
  border: none;
}

.language-selector option:hover {
  background: rgba(0, 212, 255, 0.1);
}

.language-selector option:checked {
  background: var(--primary);
  color: var(--background);
}

/* 行動按鈕 */
.nav__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.action__btn--secondary {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(255, 107, 157, 0.08) 100%);
  border: 1px solid rgba(255, 107, 157, 0.3);
  color: #FF6B9D;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.action__btn--secondary:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(255, 107, 157, 0.15) 100%);
  color: #FFFFFF;
  border-color: rgba(255, 107, 157, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.action__btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 1px solid transparent;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.action__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

/* ===== 主內容 ===== */
.main-content {
  min-height: 100vh;
  padding-top: 100px; /* 適應新的導航欄高度 */
}

/* HERO 區域 */
.hero {
  padding: 60px var(--spacing);
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.1) 0%, 
    rgba(168, 85, 247, 0.1) 50%, 
    rgba(255, 107, 157, 0.1) 100%);
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.title-line {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.title-subtitle {
  display: block;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.feature-item {
  background: var(--card);
  padding: 12px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.action-btn {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  min-height: 56px;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

.action-btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== AI 演示區域 ===== */
.ai-demo {
  padding: 60px var(--spacing);
  background: var(--background);
}

.demo-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.demo-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.demo-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.demo-info p {
  color: var(--text-secondary);
}

.demo-status {
  margin-left: auto;
  color: var(--primary);
  font-weight: 600;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
}

.demo-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.demo-tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.demo-conversation {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 24px;
}

.demo-scenario {
  display: none;
}

.demo-scenario.active {
  display: block;
}

.message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ai-message .message-avatar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  background: var(--card);
  border: 1px solid var(--border);
}

.message-bubble {
  max-width: 80%;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
}

.message-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(255, 107, 157, 0.3));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-message .message-bubble {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.ai-message:hover .message-bubble::before {
  opacity: 1;
}

.user-message .message-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-message:hover .message-bubble::before {
  opacity: 1;
}

.demo-cta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* ===== 功能區域 ===== */
.features,
.ecosystem,
.cta {
  padding: 60px var(--spacing);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 157, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  position: relative;
  z-index: 2;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* 生態支援 */
.ecosystem {
  background: rgba(0, 212, 255, 0.05);
}

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

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(168, 85, 247, 0.4);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.support-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* CTA 區域 */
.cta {
  background: linear-gradient(135deg, 
    rgba(0, 212, 255, 0.1) 0%, 
    rgba(255, 107, 157, 0.1) 100%);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-btn {
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
}

/* ===== 現場優惠活動專區 ===== */
.promotions-section {
  padding: 80px var(--spacing);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(255, 165, 0, 0.02) 100%);
  border-top: 1px solid rgba(255, 140, 0, 0.1);
}

.promotions-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.promotions-header {
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 165, 0, 0.08) 100%);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FF8C00;
}

.badge-icon {
  font-size: 1.1rem;
}

.promotions-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promotions-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.promotions-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.promotions-highlight {
  width: 100%;
  max-width: 500px;
}

.highlight-card {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
  border: 2px solid rgba(255, 140, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 140, 0, 0.2);
  border-color: rgba(255, 140, 0, 0.4);
}

.highlight-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.highlight-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FF8C00;
  margin-bottom: 4px;
}

.highlight-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

.promotions-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.promotions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  cursor: pointer;
  min-height: 56px;
}

.promotions-btn.primary {
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B35 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.promotions-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 140, 0, 0.4);
}

.promotions-btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 2px solid rgba(255, 140, 0, 0.3);
}

.promotions-btn.secondary:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: rgba(255, 140, 0, 0.5);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.2rem;
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.promotions-btn:hover .btn-arrow {
  transform: translateX(4px);
}


/* ===== 模態框 ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--background);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text);
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.submit-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--background);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .nav__menu[data-open="true"] {
    right: 0;
  }
  
  .nav__links {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
  }
  
  .nav__admin-mini {
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  
  .nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 20px;
    border-radius: 12px;
  }
  
  .nav__language {
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .language-selector {
    width: 100%;
    min-width: auto;
  }
  
  .nav__actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .action__btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* 現場優惠活動專區響應式 */
  .promotions-section {
    padding: 60px 16px;
  }
  
  .promotions-header h2 {
    font-size: 2rem;
  }
  
  .promotions-header p {
    font-size: 1.1rem;
  }
  
  .highlight-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .highlight-icon {
    font-size: 2rem;
  }
  
  .promotions-actions {
    gap: 12px;
  }
  
  .promotions-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .demo-tabs {
    flex-direction: column;
  }
  
  .demo-tab {
    text-align: center;
  }
}

@media (min-width: 769px) {
  .nav__toggle {
    display: none;
  }
  
  .nav__menu {
    display: flex;
  }
  
  .nav__actions {
    display: flex;
  }
}
