/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #f6f7f7;
}

.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.background-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 5s ease-in-out;
}

.background-slideshow img.active {
  opacity: 1;
  z-index: 1;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  outline: 1px solid #B6282C; /* 可视化边界 */
}

.navbar-container {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.menu-toggle {
  display: none;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  font-size: 18px;
}

.navbar {
  display: flex;
  padding: 15px 30px;
  list-style: none;
  gap: 40px;
  justify-content: center;
}

.navbar > li {
  position: relative;
}

.navbar a {
  color: #EAECEE;
  text-decoration: none;
  font-size: 17px;
  padding: 8px 12px;
  display: block;
  font-weight: bold;
  /* font-family: "DFKai-SB"; */
}

.navbar li:hover > a {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  background-color: #2f2f2f;
  min-width: 80px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dropdown a {
  font-size: 12x;
  padding: 10px 10px;
}

.navbar li:hover .dropdown {
  display: block;
}

.navbar, .dropdown {
  list-style: none;
}

.highlight {
  color: #939393;
  font-weight: bold;
  background-color: #B6282C; /* 可選：加背景色 */

}

.language-switcher {
  position: fixed;
  top: 0.5vw;
  right: 20px;
  z-index: 1100;
  padding-top: 5px;
}

.language-switcher button {
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid #B6282C;
  color: #f7f5f5;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.language-switcher button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.sp {
  font-size: 14px;
  text-align: left;
  /* font-family: "DFKai-SB"; */
}

.sp_middle {
  font-size: 14px;
  text-align: center;
  /* font-family: "DFKai-SB"; */
}


.sp_down{
    padding-top: 45px;
    font-size: 12px;
    text-align: center;
}


.title {
  font-size: 25px;
  font-weight: bold;
  /* font-family: "DFKai-SB"; */
}

.title1{
  font-size: 25px;
  font-weight: bold;
  /* font-family: "DFKai-SB"; */
}

.title2 {
  color: #B6282C;
  font-size: 35px;
  font-weight: bold;
}

.title3 {
  color: #B6282C;
  font-size: 25px;
  font-weight: bold;
}

.title4 {
  font-size: 30px;
  font-weight: bold;
}

.title5{
  color: #B6282C;
  font-size: 22px;
  font-weight: bold;
  text-align: left;
}

.title_news{
  font-size: 20px;
  font-weight: bold;
}

.title_new.hover{
  transform: translateY(-3px);   /* 輕微上浮 */
  color: #f5f7da;
}
