/* 全域樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

/* 導航列 */
nav {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* 主要內容區域 */
main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 首頁 Hero 區塊 */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero .description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* App 商店連結 */
.app-stores {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.store-link {
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.store-link:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.store-link img {
  height: 60px;
  width: auto;
}

.store-coming-soon {
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

/* 功能介紹區塊 */
.features {
  padding: 5rem 2rem;
  background-color: var(--bg-light);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 頁面標題 */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* 內容區塊 */
.content-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

.content-section h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--text-primary);
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-section ul, .content-section ol {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.content-section strong {
  color: var(--text-primary);
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer p {
  margin: 0.5rem 0;
  opacity: 0.8;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .hero .description {
    font-size: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .app-stores {
    flex-direction: column;
    align-items: center;
  }

  .store-link img {
    height: 50px;
  }
}

