/* 全局樣式 */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-bg: #f3f4f6;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 4rem;
}

/* 動畫效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* 頭部樣式 */
.hero-section {
  background: linear-gradient(135deg, #fff 0%, var(--light-bg) 100%);
  padding: 6rem 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  color: transparent;
}

/* 按鈕樣式 */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 價格卡片樣式 */
.pricing-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 特色區塊樣式 */
.feature-icon {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  color: var(--primary-color);
}

/* FAQ 樣式 */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  background-color: white;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: white;
}

.faq-answer.active {
  border-top: 1px solid #e5e7eb;
}

/* 箭頭旋轉動畫 */
.rotate-180 {
  transform: rotate(180deg);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* 添加平滑滾動效果 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem; /* 為固定導航欄預留空間 */
}

/* 導航欄樣式 */
nav {
    background-color: rgb(235, 252, 255);
}

/* 滾動時的導航欄樣式 */
nav.scrolled {
    background-color: rgb(235, 252, 255);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #2563eb;
}

/* 導航按鈕樣式 */
.nav-button {
    position: relative;
    overflow: hidden;
    background-size: 200% auto;
    transition: all 0.3s ease;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* 導航欄動畫效果 */
@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
    }
}

.nav-button.highlight {
    animation: buttonGlow 2s infinite;
} 