﻿/* 全域設定 */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #e0e0e0;
  background: #0a0f1c;
  overflow-x: hidden;
}

/* 導覽列 */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(10, 15, 28, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index: 10;
}

nav a {
  color: #00ffff;
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #00cccc;
  text-shadow: 0 0 10px #00ffff;
}

/* 漢堡選單按鈕 */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #00ffff;
  margin: 4px 0;
  border-radius: 2px;
}

/* 區塊通用樣式 */
section {
  min-height: 100vh;
  padding: 100px 40px;
  box-sizing: border-box;
  animation: fadeInUp 1.5s ease forwards;
  opacity: 0;
}

section h2 {
  text-align: center;
  font-size: 2.5em;
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff;
  margin-bottom: 20px;
}

/* 首頁 Hero 區塊 */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff;
}

.hero p {
  font-size: 1.5em;
  margin: 20px 0;
}

.btn {
  background: #00ffff;
  color: #0a0f1c;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 0 15px #00ffff;
  transition: background 0.3s;
}

.btn:hover {
  background: #00cccc;
}

/* 關於我們 */
.about {
  max-width: 900px;
  margin: 120px auto;
  padding: 40px;
  background: rgba(31, 42, 64, 0.8);
  border-radius: 12px;
  text-align: center;
}

.about-text p {
  font-size: 1.3em; /* 加大字體 */
  line-height: 1.8;
  margin: 20px 0;
  text-align: center; /* 置中 */
}

/* 服務與產品 */
.services {
  max-width: 800px;
  margin: 120px auto;
  padding: 40px;
  background: rgba(31, 42, 64, 0.8);
  border-radius: 12px;
  text-align: center;
}

.services ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.services li {
  margin: 15px 0;
  font-size: 1.2em;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.services li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

/* 客戶案例 */
.cases {
  max-width: 800px;
  margin: 120px auto;
  padding: 40px;
  background: rgba(31, 42, 64, 0.8);
  border-radius: 12px;
  text-align: center;
}

.cases p {
  font-size: 1.2em;
  line-height: 1.8;
}

/* 聯絡我們 */
.contact {
  max-width: 800px;
  margin: 120px auto;
  padding: 40px;
  background: rgba(31, 42, 64, 0.8);
  border-radius: 12px;
  text-align: center;
}

.contact p {
  font-size: 1.2em;
}

.contact a {
  color: #00ffff;
  text-decoration: none;
}

.contact a:hover {
  text-shadow: 0 0 10px #00ffff;
}

/* 動畫 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 手機版導覽列調整 */
@media (max-width: 600px) {
  nav {
    justify-content: flex-start;
    padding: 10px;
  }

  nav a {
    display: none; /* 預設隱藏選單 */
    font-size: 1.2em;
    margin: 10px;
  }

  nav.active a {
    display: block; /* 展開時顯示 */
    margin: 10px 0;
  }

  .menu-toggle {
    display: flex; /* 顯示漢堡按鈕 */
  }

  section {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1.2em;
  }

  .about-text p {
    font-size: 1.1em;
  }
}