#banner .item {
  position: relative;
  overflow: hidden;
}
#banner .item a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
#banner .img {
  width: 100%;
  height: 100vh;
  background: no-repeat center center / cover;
  position: relative;
}
#banner .img video,
#banner .img iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}


/* 點擊整區但不能遮住按鈕 */
.bg-link {
  position: absolute;
  z-index: 1;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* Hero Content (改為 absolute 置中) */
.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 600px;
  width: 90%;
  padding: 1rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* 背景半透明 */
  border-radius: 16px;
}

.hero-content h2 {
  font-size: 2.2rem;
  color: #FFD700;
  margin-bottom: 0.8rem;
  text-align: center;
  text-shadow: 2px 2px 6px #000;
}

.hero-content p {
  text-align: center;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 4px #000;
}

.cta-button {
  position: relative !important;
  z-index: 11;
  display: inline-block;
  width: 136px !important;
  height: 66px !important;
  line-height: 66px;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: url('/thorimg/buy_window_button_up.webp') no-repeat center center;
  background-size: cover;
  border: none;
  text-decoration: none;
  transition: background-image 0.3s ease;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.cta-button:hover {
  background-image: url('/thorimg/buy_window_button_over.webp');
}

/* 響應式 */
@media (max-width: 768px) {
  #banner .img {
    height: 70vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 10%;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}