body {
    font-family: Arial, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
}
.main-container {
  /*  max-width: 1200px;     ✅ 統一寬度（與輪播/news 一致） */
    margin: 0 auto !important;       /* ✅ 強制移除上邊距，讓banner緊接在navbar下方 */
   /*  padding: 20px;        ✅ 內距保持模組間留白 */
}

.content_background_image{
  margin: 0 auto !important;
  /* max-width: 1200px; */
  background: url('../images/benq/content_bg.png') no-repeat center center;
  background-size: cover;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.content-image-title {
    text-align: center;
    margin: 20px auto;
    padding: 0;
    /* max-width: 1200px; */
    width: 100%;
    margin: -150px 0 50px 0;
    position: relative;
    z-index: 100;
}
.content-image-title img {
    /* max-width: 1200px; */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}
.content-sub-banner {
    text-align: center;
    margin: 20px auto;
    padding: 0;
    /* max-width: 1200px; */
    width: 100%;
    margin: 0px 0 50px 0;
    position: relative;
    z-index: 10; /* 降低 z-index,確保下拉選單能顯示在上方 */
}
.content-sub-banner img {
    /* max-width: 1200px; */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* 降低 z-index,確保下拉選單能顯示在上方 */
}
.news-new {
  background-color: #ff4d4f;
  color: white;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 8px;
  font-weight: bold;
  display: inline-block;
  line-height: 1;
  vertical-align: text-top;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  animation: pulseNew 1.5s infinite;
}

/* 平板版樣式 */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-image-title {
      margin: -100px 0 50px 0; /* 平板版往下調整 */
      position: relative;
      z-index: 100;
  }
}

/* 手機版樣式 - 放在最後以確保優先權 */
@media (max-width: 768px) {

  .content-image-title {
      text-align: left;
      padding: 0;
      width: 100%;
      margin: -50px 0 20px 0 !important; /* 往下調整 100px */
      position: relative;
      z-index: 100;
       /* border:1px solid red;  */
  }
  
  .content-image-title img {
      width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      position: relative;
      z-index: 100;
      /* border:1px solid blue; */
  }

  .main-container {
    margin: 0; /* ✅ 移除上邊距，讓banner設定自己的位置 */
    padding: 0px;
  }  
}



/* 動畫讓 NEW 更吸引注意 */
@keyframes pulseNew {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
