

.wrapper2 {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2vh;
  margin: 4px auto 0;
  padding: 20px 10px;
  max-width: 1140px;
  box-sizing: border-box;
}

.wrapper2 > * {
  flex: 1 1 calc((100% - 40px) / 3);
  min-width: 300px;  /* 防止列太窄 */
  box-sizing: border-box;
  background: rgba(255,255,255,0.1);
}

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* 用 min-height 更保險 */
  box-sizing: border-box; /* 確保 padding 不會擠壓內容 */
  padding-top: 30px; /* 或改為固定 px 比例 */
}


/* 新增内容容器样式 */
.content-container {
  width: 80%; /* 使用百分比控制宽度 */
  max-width: 1200px; /* 最大宽度限制，避免过宽 */
  min-width: auto; /* 最小宽度限制，避免过窄 */
}

.middle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
  padding-top: 80px;
  padding-bottom: 0px;
  padding-left: 0vw;
  padding-right: 0vw;
}

.content {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2vh 2vw;
  border-radius: 10px;
  text-align: center;
  width: 65%;
  max-width: 1200px;
  font-size: 2.2vw;
  line-height: 1.8;
  overflow-wrap: break-word; 
}

.sentence{
  font-size: 20px;
}



a {
  color: #EAECEE;
  text-decoration: none;
}

.section-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.section-image {
  flex: 1;
  min-width: 200px;
}

.section-card {
  padding: 3vh 2vw;
  display: flex;
  justify-content: center;
}

.card-wrapper {
  display: flex;
  flex-direction: row;
  max-width: 1100px;
  gap: 2vw;
  align-items: center;
  flex-wrap: wrap;
  flex-wrap: nowrap; /* 保持左右不換行 */
}


.card-image img {
  border-radius: 10px;
  margin-right: 2vw;
}

.card-text {
  text-align: left;
  padding-left: 0vw;
}

.card-text h3 {
  font-size: 30px;
  color:#B6282C;
  font-weight: bold;
  /* margin-bottom: 1vh; */
  /* font-family: "DFKai-SB"; */
}

.card-text h3:hover {
  transform: translateY(-3px);   /* 輕微上浮 */
  color: #f5f7da;
}

.card-text h5 {
  font-size: 18px;
  color: #e0d7d7af;
  margin-bottom: 1vh;
  /* font-family: "DFKai-SB"; */
}

.card-text p {
  font-size: 14px;
  line-height: 1.6;
  /* font-family: "DFKai-SB"; */
}

/* 左右交錯（選用） */
.section-card:nth-child(even) .card-wrapper {
  flex-direction: row-reverse;
}

.highlight-red {
    color: #B6282C;
    font-weight: bold;
    text-align: center;
  }


/* Mobile optimization */
@media (max-width: 768px) {
  .background-slideshow img {
    height: 100vh;
  }

  .menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 30px;
  cursor: pointer;
  padding: 0px;
}

.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: #B6282C;
  border-radius: 0px;
  margin: 2px 0;  /* 设置上下间距 */
  justify-content: center;
}

.navbar-container {
  display: flex;
  justify-content: center; /* 水平居中容器内的内容 */
  align-items: center;     /* 垂直居中（如果需要） */
  padding: 10px;
  position: relative;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    display: none;
    width: 100%;
  }

  .navbar.active {
    display: flex;
  }

  .navbar > li {
    width: 100%;
    text-align: center;
  }

  .navbar a {
    padding: 12px 15px;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    width: 100%;
  }

  .dropdown a {
    padding: 12px 15px;
    text-align: center;
  }

 .content {
  width: 95%;
  font-size: 16px;
  padding: 20px;
}

.content_img{
  text-align: center;
  width: 95%;
  font-size: 16px;
  padding: 20px;
  text-align: left; /* 選擇性：若覺得置中閱讀困難 */
}

.card-text {
  max-width: 100%; /* 取消 40% 限制 */
  text-align: left; /* 也可以視覺上改善閱讀體驗 */
  padding: 0 10px;
}

  .ps {
    font-size: 16px;
  }

  .card-wrapper {
    flex-direction: column; /* 改成直排 */
    align-items: center;
    text-align: center;
    gap: 20px; /* 適當間距 */
  }

  .card-image img {
  display:none;
}

.card-text h3 {
  font-size: 25px;
  margin-bottom: 10px;
  color:#B6282C;
  font-weight: bold;
}

.card-text h5 {
  font-size: 3vw;
  color: #e0d7d7af;
  margin-bottom: 12px;
}

.section-card:nth-child(even) .card-wrapper {
    flex-direction: column !important;
  }

}

.img {
  padding-top: 0px;
  height: auto;
  text-align: flex;
  max-width: fit-content;
}




