/* Liquid Glass 樣式 - 保持可視度的現代化設計 */

/* 全局基礎設定 */
* {
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: "LXGW WenKai Screen", sans-serif;
  font-weight: normal;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0c0c0c 100%);
  background-attachment: fixed;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 動態背景粒子效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 200, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.3; transform: translateY(0px); }
  50% { opacity: 0.6; transform: translateY(-20px); }
}

/* 新增：動態背景漸變 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 119, 198, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(120, 200, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  33% { opacity: 0.8; transform: scale(1.1) rotate(120deg); }
  66% { opacity: 0.6; transform: scale(0.9) rotate(240deg); }
}

/* 毛玻璃效果基礎類 */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-effect-strong {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 
    0 12px 40px rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 新增：進階毛玻璃效果變體 */
.glass-effect-premium {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  box-shadow: 
    0 12px 48px rgba(31, 38, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

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

.glass-effect-premium:hover::before {
  left: 100%;
}

/* 導航欄樣式 */
.navbar {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  text-shadow: 0 0 20px rgba(120, 200, 255, 0.6);
  transform: scale(1.05);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px !important;
  border-radius: 10px;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-shadow: 0 0 10px rgba(120, 200, 255, 0.6);
}

/* 新增：玻璃態導航欄增強 */
.navbar.glass-effect {
  transition: all 0.3s ease;
}

.navbar.glass-effect.scrolled {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* 輪播樣式改進 */
.carousel-item {
  height: auto;
  min-height: 60vh;
  background: no-repeat center center scroll;
  background-size: cover;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 移除：輪播圖指示器樣式已刪除 */

.carousel-control-prev,
.carousel-control-next {
  transition: all 0.3s ease !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(120, 200, 255, 0.3) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* 按鈕樣式 - Liquid Glass風格 */
.glass-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-button::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: left 0.5s;
}

.glass-button:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(120, 200, 255, 0.5);
  box-shadow: 
    0 15px 45px rgba(31, 38, 135, 0.5),
    0 0 30px rgba(120, 200, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.glass-button:hover::before {
  left: 100%;
}

/* 新增：液體按鈕效果 */
.liquid-button {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(120, 200, 255, 0.5);
  border-radius: 20px;
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.liquid-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(120, 200, 255, 0.4), transparent);
  transition: left 0.5s;
}

.liquid-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.liquid-button:hover::before {
  left: 100%;
}

.liquid-button:hover::after {
  width: 300px;
  height: 300px;
}

.liquid-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 45px rgba(31, 38, 135, 0.6),
    0 0 30px rgba(120, 200, 255, 0.4);
  border-color: rgba(120, 200, 255, 0.8);
}

/* 特色功能卡片 */
.feature-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.feature-glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 200, 255, 0.3);
  box-shadow: 
    0 20px 50px rgba(31, 38, 135, 0.6),
    0 0 30px rgba(120, 200, 255, 0.2);
}

.feature-icon {
  color: #78c8ff;
  filter: drop-shadow(0 0 10px rgba(120, 200, 255, 0.5));
  transition: all 0.3s ease;
}

.feature-glass-card:hover .feature-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px rgba(120, 200, 255, 0.8));
}

/* 功能展示區域 */
.features-section {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 3rem 1rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 服務器狀態卡片 */
.server-status-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(120, 200, 255, 0.3);
  border-radius: 25px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 
    0 10px 40px rgba(31, 38, 135, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.server-status-card:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 200, 255, 0.5);
  box-shadow: 
    0 20px 60px rgba(31, 38, 135, 0.6),
    0 0 40px rgba(120, 200, 255, 0.3);
}

/* 員工卡片樣式 */
.staff-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.staff-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 200, 255, 0.4);
  box-shadow: 
    0 25px 60px rgba(31, 38, 135, 0.6),
    0 0 40px rgba(120, 200, 255, 0.2);
}

.staff-card .card-img-top {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.staff-card:hover .card-img-top {
  border-color: rgba(120, 200, 255, 0.6);
  box-shadow: 0 0 20px rgba(120, 200, 255, 0.4);
}

/* 評論區樣式 */
.testimonials-section {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 255, 157, 0.3) 100%);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 3rem;
  margin: 2rem 0;
}

/* Footer樣式 */
.glass-footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* 社交媒體圖標 */
.social-icon {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.social-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(120, 200, 255, 0.6));
}

/* YouTube嵌入樣式 */
lite-youtube {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

lite-youtube:hover {
  transform: scale(1.02);
  border-color: rgba(120, 200, 255, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(120, 200, 255, 0.3);
}

/* 滾動條樣式 */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(120, 200, 255, 0.6), rgba(255, 119, 198, 0.6));
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(120, 200, 255, 0.8), rgba(255, 119, 198, 0.8));
}

/* 新增：高性能滾动條 */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, 
    rgba(120, 200, 255, 0.6), 
    rgba(255, 119, 198, 0.6));
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, 
    rgba(120, 200, 255, 0.8), 
    rgba(255, 119, 198, 0.8));
  box-shadow: 0 0 10px rgba(120, 200, 255, 0.5);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .glass-button {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .feature-glass-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .server-status-card {
    padding: 1.5rem;
  }
  
  body {
    font-size: 14px;
  }
}

/* 新增：媒體查詢優化 */
@media (max-width: 992px) {
  .glass-effect-premium {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .neon-text {
    text-shadow: 
      0 0 3px #78c8ff,
      0 0 6px #78c8ff,
      0 0 9px #78c8ff;
  }
}

@media (max-width: 576px) {
  .glass-effect,
  .glass-effect-strong,
  .glass-effect-premium {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
  
  .card-3d:hover {
    transform: rotateY(5deg) rotateX(2deg) translateZ(10px);
  }
  
  .carousel-caption {
    bottom: 20px !important;
    padding: 1rem !important;
  }
}

/* 文字樣式 */
.text-glow {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.text-glow-blue {
  text-shadow: 0 0 15px rgba(120, 200, 255, 0.6);
}

.text-glow-pink {
  text-shadow: 0 0 15px rgba(255, 119, 198, 0.6);
}

/* 動畫效果 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* 新增：彈性動畫 */
.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) translateY(-10px);
  }
  70% {
    transform: scale(0.9) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 新增：淡入動畫 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* 新增：性能優化 */
.gpu-accelerated {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 新增：發光邊框效果 */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent 25%, 
    rgba(120, 200, 255, 0.3) 25%, 
    rgba(120, 200, 255, 0.3) 50%, 
    rgba(255, 119, 198, 0.3) 50%, 
    rgba(255, 119, 198, 0.3) 75%, 
    transparent 75%);
  background-size: 40px 40px;
  border-radius: inherit;
  z-index: -1;
  animation: moveBorder 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before {
  opacity: 1;
}

@keyframes moveBorder {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* 新增：3D 卡片效果 */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* 新增：波紋點擊效果 */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

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

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