/* 全域設定 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* 導覽列 */
nav {
  background-color: #333;
  font-weight: bold;
  position: fixed;
  width: 100%;
  z-index: 10;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-text {
  color: white;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-right: 20px;
  flex-shrink: 0;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 10px;
  transition: transform 0.2s ease;
}

nav ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 12px 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

nav ul li:hover {
  transform: translateY(-5px);
}

nav ul li a:hover {
  background-color: #111;
}

/* Banner 區塊 */
.banner {
  width: 100%;
  height: 50vh;
  background-image: url("https://xuanchencomputerrepair.neocities.org/2hfpr-y8rzf.webp"); /* 請改成相對路徑 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-text {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.banner-text h1 {
  box-shadow: 0 10px 20px rgba(0.3, 0.3, 0.3, 0.3);
  color: #fff;
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0;
  font-family: serif;
  text-align: center;
  border: groove 5px white;
  padding: 8px 16px;
}

/* 主內容區塊 */
.services, .region, .note, .spend, .workplace {
  border: thick double black;
  padding: 15px;
  margin: 10px;
  flex: 1;
  min-width: 250px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.services div ul li,
.region div ul li {
  font-weight: bold;
}

.one, .two {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.note {
  line-height: 1.6;
}

.workplace {
  line-height: 1.4;
  font-weight: bold;
}

/* Footer */
.under {
  background-color: #333;
  color: white;
  width: 100%;
  text-align: center;
  font-weight: bold;
  padding: 15px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  position: relative;
}

.highlight {
  color: #E60F0F;
}

/* 動畫文字 */
.ml2 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 4px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* 手機版調整 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    text-align: left;
    width: 100%;
    padding: 12px;
  }

  .banner {
    height: 40vh;
  }

  .banner-text h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }
}