body {
    font-family: Arial, sans-serif;
  }
  
  .hero-section img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
  }
  
  footer {
    background: #111;
  }
  
  footer h6 {
    font-weight: bold;
    margin-bottom: 15px;
  }
  
  footer ul li {
    margin-bottom: 10px;
  }
  
/* 調整 navbar 品牌樣式 */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.3;
}

/* Menu 字體調整 */
.navbar-nav .nav-link {
  font-size: 1.125rem;
  font-weight: 500;
}

.hero-section {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.hero-section .img-half {
  width: 50%;
  object-fit: cover;
  height: 100%;
}


/* 桌面版 navbar 垂直置中 */
@media (min-width: 992px) {
  .navbar .container {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
}


@media (max-width: 991.98px) {
  .navbar .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }

  .navbar .container {
    position: relative;
    min-height: 56px;
  }

  /* 防止 collapse 推高 navbar 時整體跳動 */
  .navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    padding: 1rem;
    z-index: 999;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: -25px; /* 向左移，遮住 container padding */
    width: calc(100vw + 30px); /* 加寬至畫面外左右共30px */
    padding: 1rem;
    z-index: 999;
    box-sizing: border-box;
  }

  .navbar .container {
    position: relative;
  }
}
