/* 基本樣式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* 導航欄樣式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0px 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-logo img {
    height: 40px;
}

.nav-logo-text {
    font-family: "Corben", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.contact-btn {
    background-color: #fff;
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #000;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #0056b3;
}

/* 頂部導航區 (Hero Section) */
.hero {
    /* background-color: #faf6e3; */
    background-color: #ffffff;
    text-align: center;
    padding: 0 2rem;
    margin-top: 100px;
    min-height: calc(100vh - 100px - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.hero-text {
    flex: 2;
    display: flex;
    flex-direction: column;
    text-align: left; /* 文字內容水平靠左 */
    justify-content: center; /* 文字內容垂直置中 */
    width: 100%;
}

.hero-image {
    flex: 3;
    display: flex;
    justify-content: center; /* 圖片水平置中 */
    align-items: center; /* 圖片垂直置中 */
    position: relative;
}

.hero-image img {
    height: auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

.app-screenshot {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 20px 0;
}

.overlay-image {
  position: absolute;
  top: 40%; /* 垂直置中 */
  left: 50%; /* 水平置中 */
  transform: translate(-50%, -50%); /* 調整回中心點 */
  width: 200px; /* 調整大小 */
  height: 200px; /* 調整大小 */
  z-index: 100;
}

.overlay-icon-1 {
  position: absolute;
  top: 70%; /* 垂直置中 */
  left: 30%; /* 水平置中 */
  transform: translate(-50%, -50%); /* 調整回中心點 */
  width: 50px; /* 調整大小 */
  height: 50px; /* 調整大小 */
}

.overlay-icon-2 {
  position: absolute;
  top: 55%; /* 垂直置中 */
  left: 65%; /* 水平置中 */
  transform: translate(-50%, -50%); /* 調整回中心點 */
  width: 45px; /* 調整大小 */
  height: 45px; /* 調整大小 */
}

.overlay-icon-3 {
  position: absolute;
  top: 35%; /* 垂直置中 */
  left: 30%; /* 水平置中 */
  transform: translate(-50%, -50%); /* 調整回中心點 */
  width: 45px; /* 調整大小 */
  height: 45px; /* 調整大小 */
}

.overlay-icon-4 {
  position: absolute;
  top: 40%; /* 垂直置中 */
  left: 75%; /* 水平置中 */
  transform: translate(-50%, -50%); /* 調整回中心點 */
  width: 45px; /* 調整大小 */
  height: 45px; /* 調整大小 */
}

.overlay-icon-5 {
  position: absolute;
  top: 75%; /* 垂直置中 */
  left: 45%; /* 水平置中 */
  transform: translate(-50%, -50%); /* 調整回中心點 */
  width: 45px; /* 調整大小 */
  height: 45px; /* 調整大小 */
}

.overlay-icon-6 {
  position: absolute;
  top: 70%; /* 垂直置中 */
  left: 65%; /* 水平置中 */
  transform: translate(-50%, -50%); /* 調整回中心點 */
  width: 45px; /* 調整大小 */
  height: 45px; /* 調整大小 */
}

.download-buttons {
  display: flex;
  gap: 1rem;
}

.download-button {
  background-color: #007bff;
  display: flex;
  color: white;
  padding: 0.75rem 1rem;
  padding-right: 1.25rem;
  text-decoration: none;
  border-radius: 30px;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

.download-button img {
  width: 1.5rem;
  height: 1.5rem;
  padding-right: 0.5rem;
}

/* 核心功能展示 (Features Section) */
.features {
    padding: 60px 2rem;
    padding-top: 100px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 0 auto;
}

.feature {
  text-align: left;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 30px;
  transition: transform 0.3s ease;
  border: 1px solid black;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-text {
  padding: 20px;
  text-align: left;
}

.feature h3 {
  margin-bottom: 10px;
  color: #333;
}

.feature p {
  color: #666;
  margin: 0;
}

.feature-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 25vh;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.feature-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 使用場景 (Use Cases Section) */
.use-cases {
  padding: 40px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.use-cases h2 {
  margin-bottom: 20px;
}

.use-cases ul {
  list-style-type: none;
  padding: 0;
}

/* 行動呼籲 (CTA Section) */
.cta {
    padding: 2rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: start;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0.5rem;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cta-button img {
    width: 1rem;
    height: 1rem;
}


/* 頁腳 (Footer Section) */
footer {
  background-color: #343a40;
  color: white;
  margin: 0 auto;
  justify-content: space-between;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}


/* 響應式設計 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在移動設備上隱藏導航鏈接 */
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .features-grid {
      grid-template-columns: 1fr;  /* 在移動設備上改為單列 */
      gap: 20px;
    }
    
    .features {
      padding: 30px 15px;
    }
    
    .features h2 {
      padding-left: 15px;
    }

    .feature-content {
        height: auto;
        min-height: 200px;
    }
    
    .feature-image {
        margin-top: 15px;
    }
}



/* 首先定義動畫關鍵幀 */
@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
}

/* 為所有 overlay-icon 添加動畫 */
[class^="overlay-icon"] {
  animation: float 2s ease-in-out infinite;
}

html {
    scroll-behavior: smooth;
}