/* 寶貝守護 - 主要樣式表 */

/* 全域變數 */
:root {
  --primary-color: #4A90E2;
  --secondary-color: #F8BBD0;
  --light-bg: #F5F7FA;
  --dark-text: #333333;
  --success-color: #2ECC71;
  --danger-color: #E74C3C;
  --section-padding: 5rem 0;
  --container-max-width: 1200px;
  --border-radius: 8px;
  --card-radius: 12px;
}

/* 基本樣式 */
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--dark-text);
  background-color: #FFFFFF;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

section {
  padding: var(--section-padding);
}

.container {
  max-width: var(--container-max-width);
}

/* 按鈕樣式 */
.btn {
  border-radius: var(--border-radius);
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #3a7bc8;
  border-color: #3a7bc8;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #333;
}

.btn-secondary:hover {
  background-color: #e8a3b9;
  border-color: #e8a3b9;
  color: #333;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 卡片樣式 */
.custom-card {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border: none;
  overflow: hidden;
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 章節標題樣式 */
.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

/* 響應式圖片 */
.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* 導航列樣式 */
.navbar {
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* 英雄區域樣式 */
.hero-section {
  background-size: cover;
  background-position: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* 為固定導航列預留空間 */
}

.hero-section.overlay:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* 推薦輪播 */
.testimonial-card {
  padding: 2rem;
  text-align: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

/* 頁腳樣式 */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.social-icons a {
  display: inline-block;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 38px;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 註冊引導區塊 */
.cta-section {
  background-color: var(--light-bg);
}

/* 動畫效果 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 響應式調整 */
@media (max-width: 991.98px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .navbar {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.4rem 1.2rem;
  }
}

/* 時間線樣式 - 中央對齊 */
.timeline-line-center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #e9ecef;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-circle-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 1;
}

.timeline-item .custom-card {
  position: relative;
  z-index: 1;
}

/* 時間線連接效果 */
.timeline-item:before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 20px;
  height: 4px;
  background-color: #e9ecef;
  transform: translateX(-50%);
  z-index: 0;
} 