/* 移除 hero 的背景，避免預設顏色干擾 */
.hero {
  color: var(--white);
  /* background: var(--primary); 移除線性漸層背景 */
  background: none;
}

/* 若 nav 有預設背景，可保留 */
nav {
  background: var(--white);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
  width: 250px;
  height: auto;
}

.logo .lucide {
  width: 250px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 20px 0 auto;
}

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s;
}

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

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white) !important;
  background: var(--primary);
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  width: fit-content;
}

.cta-button:hover {
  background: var(--white);
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

/* 預設桌面版 */
.mobile-menu-btn {
  display: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

/* hero-content 全螢幕 */
.hero-content {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 500px;
  margin: 0;
  padding: 0;
}

/* hero-slider 全寬度 */
.hero-slider {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
  height: 100%;
}

/* hero-slide 全寬高與背景圖填滿 */
.hero-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.hero-text {
  max-width: 600px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slide h2 {
  margin-bottom: 1rem;
}

.hero-slide p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-slider-indicators {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
}

.indicator.active {
  background: #333;
}

/* 行動裝置樣式 */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: var(--primary-dark);
    position: absolute;
    top: 64px; /* 視您的header高度而定 */
    right: 0;
    left: 0;
    padding: 1rem;
    margin: 0;
  }

  .nav-links.active {
    display: flex;
    z-index: 100;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }
}
