
/* 整個頁面 */	
html, body {
width: 100%;
max-width: 1425px;
margin: 0 auto; /* 使內容居中 */
}

/* 整體樣式 */
body {
    background-color: #ededee;
}

/* 連結樣式 */
a:link, a:visited {
    color: #666;
    text-decoration: none;
}

a:hover {
    color: #F00;
    text-decoration: none;
}

a:active {
    color: #666;
    text-decoration: none;
}

/* 整體格式 */
#apDiv19 {
    margin: 70px auto 0;
    width: 800px;
}

/* LOGO 圖片格式 */
.LOGO-CN-DOA {
    width: 32%;
    height: auto;
}

/* 導覽列 1 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    color: #666;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
}

.header-container nav ul {
    display: flex;
    gap: 46px;
    list-style-type: none;
    padding: 10px 0;
}

.header-container nav ul li {
    font-size: 16px;
}

.header-container nav ul li a {
    color: #666;
    text-decoration: none;
}

.header-container a:hover {
    color: #F00;
}

/* 導覽列en 1 */
.header-en-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    color: #666;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
}

.header-en-container nav ul {
    display: flex;
    gap: 30px;
    list-style-type: none;
    padding: 10px 0;
}

.header-en-container nav ul li {
    font-size: 15px;
}

.header-en-container nav ul li a {
    color: #666;
    text-decoration: none;
}

.header-en-container a:hover {
    color: #F00;
}


/* 導覽列 2 */
.header-container2 {
    color: #A1A1A1;
    font-style: inherit;
    font-size: 90%;
    display: flex;
    gap: 46px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
}

.header-container2 ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    gap: 46px;
}

.header-container2 li {
    margin: 0;
    padding: 0;
}

.header-container2 a {
    text-decoration: none;
    color: #666;
    font-size: inherit;
}

.header-container2 a:hover {
    color: #F00;
}

/* 導覽列en 2 */
.header-en-container2 {
    color: #A1A1A1;
    font-style: inherit;
    font-size: 13px;
    display: flex;
    gap: 30px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
}

.header-en-container2 ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    gap: 30px;
}

.header-en-container2 li {
    margin: 0;
    padding: 0;
}

.header-en-container2 a {
    text-decoration: none;
    color: #666;
    font-size: inherit;
}

.header-en-container2 a:hover {
    color: #F00;
}

/* 導覽列en 3*/
.header-en-container3 {
    color: #A1A1A1;
    font-style: inherit;
    font-size: 13px;
    display: flex;
    gap: 30px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
    height: 0px;
}

.header-en-container3 ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    gap: 15px;
}

.header-en-container3 li {
    margin: 0;
    padding: 0;
}

.header-en-container3 a {
    text-decoration: none;
    color: #666;
    font-size: inherit;
}

.header-en-container3 a:hover {
    color: #F00;
}

/* 導覽列 3*/
.header-container3 {
    color: #A1A1A1;
    font-style: inherit;
    font-size: 90%;
    display: flex;
    gap: 46px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
}

.header-container3 ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    gap: 20px;
}

.header-container3 li {
    margin: 0;
    padding: 0;
}

.header-container3 a {
    text-decoration: none;
    color: #666;
    font-size: inherit;
}

.header-container3 a:hover {
    color: #F00;
}

/* collection導覽列 4*/

.header-container4 {
    color: #A1A1A1;
    font-style: inherit;
    font-size: 90%;
    display: flex;
    gap: 46px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
    overflow-x: auto;      /* 滾動條支援 */
    white-space: nowrap;   /* 不換行 */
    -webkit-overflow-scrolling: touch; /* 手機順滑滾動 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    scroll-behavior: smooth;
    padding: 0px; /* 留空間給按鈕 */
    flex: 1;
}

.header-container4 ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: inline-flex;  /* 注意改為 inline-flex，配合 white-space */
    gap: 20px;
    min-width: max-content; /* 防止過小壓縮 */
    
}

.header-container4 li {
    margin: 0;
    padding: 0;
}

.header-container4 a {
    text-decoration: none;
    color: #666;
    font-size: inherit;
}

.header-container4 a:hover {
    color: #F00;
}

/* collection-en導覽列 4*/

.header-en-container4 {
    color: #A1A1A1;
    font-style: inherit;
    font-size: 13px;
    display: flex;
    gap: 30px;
    font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
    overflow-x: auto;      /* 滾動條支援 */
    white-space: nowrap;   /* 不換行 */
    -webkit-overflow-scrolling: touch; /* 手機順滑滾動 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    scroll-behavior: smooth;
    padding: 0 30px; /* 留空間給按鈕 */
    flex: 1;
}

.header-en-container4 ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: inline-flex;  /* 注意改為 inline-flex，配合 white-space */
    gap: 15px;
    min-width: max-content; /* 防止過小壓縮 */
    
}

.header-en-container4 li {
    margin: 0;
    padding: 0;
}

.header-en-container4 a {
    text-decoration: none;
    color: #666;
    font-size: inherit;
}

.header-en-container4 a:hover {
    color: #F00;
}

/* collection導覽列隱藏左右按鈕，滑鼠移入才顯示 */
.header-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}


.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ededee;
  border: none;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none; /* 初始不作用 */
}

.header-scroll-wrapper:hover .scroll-btn {
  opacity: 1;
  pointer-events: auto; /* 滑入時才能點擊 */
}

.scroll-btn.left {
  left: 0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.scroll-btn.right {
  right: 0;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}


/*COUNTACT內文	*/
.apDiv20 {
  margin-left: 0px;
  margin-top: 0px;
  width: 750px;
  font-family: "微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
  color: #666;
  text-align: left;
        }

/*SPACE內文	*/
.apDiv24{
    text-align: right; 
    font-family: Verdana, Geneva, sans-serif; 
    font-size: 18px; 
    color: #666;
    margin-top: -3px;
}




/* 語言 */
.lang-switch {
    margin-left: auto;
    color: #666;
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 12px;
}

.lang-switch a {
    text-decoration: none;
    color: #666;
}

.lang-switch a:hover {
    color: #F00;
}

/* 聯絡資訊 */

.footer-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
font-family: "微軟正黑體", sans-serif;
font-size: 13px;
color: #666;
}


.footer-block {
flex: 1 1 200px;
}

.footer-block table {
border-collapse: collapse;
width: 100%;
}

.footer-block td {
padding: 2px 8px 2px 0;
vertical-align: top;
}

.footer-block .label {
white-space: nowrap;
font-weight: bold;
}

.footer-block a {
color: inherit;
text-decoration: none;
}




/*News樣式	*/

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
}

.news-date {
  flex: 0 0 100px;
  font-weight: bold;
  color: #666;
}

.news-content a {
  display: inline-block;
  color: #666;
  text-decoration: none;
  font-family: "微軟正黑體", sans-serif;
  line-height: 1.5;
  max-width: 800px;
  word-wrap: break-word;
}

.news-content a:hover {
  text-decoration: underline;
  color: #F00;
}


		
	
/*Course內文滑動樣式	*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

.gallery {
    height: auto;
    width: 60%;
    position: relative;
    margin: 0 auto;
    z-index: 1;
}

.image-slider {
    height: 100%;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    position: relative;
}

img {
    max-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.indicators {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
}

.indicator {
    background: #ccc;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

.active {
    background: #666;
    height: 16px;
    width: 16px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
border-radius: 50%;
    padding: 20px;
    cursor: pointer;
    z-index: 2;

}

.arrow-left::after {
content: "";
position: absolute;
left: 17px;
z-index: 11;
display: block;
width: 15px;
height: 15px;
border-top: 2px solid #fff;
border-left: 2px solid #fff;
top: 12px;
left: 15px;
transform: rotate(315deg);
}
.arrow-right::after {
content: "";
position: absolute;
left: 17px;
z-index: 11;
display: block;
width: 15px;
height: 15px;
border-top: 2px solid #fff;
border-left: 2px solid #fff;
top: 12px;
left: 7px;
transform: rotate(135deg);
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.5); /* 滑鼠懸停時變得更深 */
}
	


/*Course內文超連結*/
	.link {
        font-family: Verdana, Geneva, sans-serif;
        font-size: 20px;
        color: #666;
        text-decoration: none; /* 去掉下划线 */
    }


/*Course內文佈局	*/		
.container2 {
  display: flex;
  justify-content: flex-start; /* 内容从左侧开始 */
  padding: 20px;
}
	
/*donate內文圖片*/
.item0 {
  display: flex;
  align-items: flex-start; 
  gap: 20px; 
}

.item0 img {
  max-width: 100px; 
  height: auto; 
  vertical-align: top;
  margin: 0;
  padding: 0;
}




/* h2 標題 */
.item0 .text h2 {
    font-size: 16px;
    color: #666;
    font-weight: bold;
    margin-bottom: 0.6em;
    line-height: 1.4;
}

/* 段落文字 */
.item0 .text p {
    font-family: "微軟正黑體", Microsoft JhengHei, Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 1em 0;
    padding: 0;
    line-height: 1;
}

/* 有縮排的清單 */
.item0 .text ul, ol {
    font-family: "微軟正黑體", Microsoft JhengHei, Verdana, Geneva, sans-serif;
    padding-left: 1.5em;
    margin-bottom: 1em;
    color: #666;
}

/* 清單項目 */
.item0 .text li {
    font-family: "微軟正黑體", Microsoft JhengHei, Verdana, Geneva, sans-serif;
    font-size: 12px;
    margin-bottom: 0.5em;
    color: #666;
}




/*resources內文圖片*/
  .item {
    display: flex;
    align-items: center; /* Center items vertically */
    width: calc(50% - 10px); /* Ensure two items per row with space for gap */
    box-sizing: border-box; /* Include padding and border in width calculation */
	margin-bottom: 30px; /* Space between rows */
  }

  .item img {
    width: 80px; /* Set a fixed width for images */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between image and text */
  }

 .item .text {
    font-family: 微軟正黑體, Microsoft JhengHei, Verdana, Geneva, sans-serif;
    font-size: 16px;
    color: #666;
  }


  /*resources內文佈局	*/
.container3 {
    display: flex;
    flex-wrap: wrap; /* Wrap items if they exceed container width */
    gap: 20px; /* Space between items */
  }

 /*collection內文佈局	*/
.image-wrapper {
  position: relative;
  display: inline-block;
  width: 260px; /* 可自訂圖片寬度 */
  height: auto;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* 遮罩內容 */
.content {

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  /* 字體樣式設定 */
  color: white;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  font-size: 5px;         /* 適中的標題大小，可調整為 28px 更有份量 */
  font-weight: 100;        /* 微粗體，設計感強但不會太厚重 */
  letter-spacing: 3px;     /* 字距拉開，提升設計感與可讀性 */
  text-align: center;      /* 水平置中 */
  line-height: 1.4;        /* 行距設定（如果有多行文字） */

  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none; /* 避免 hover 擋到圖片 */
}

/* 滑鼠移到圖片時顯示遮罩 */
.image-wrapper:hover .content {
  opacity: 1;
  pointer-events: auto;
}



/*Partner內文	*/
.container3 {
    display: flex;
    flex-wrap: wrap; /* Wrap items if they exceed container width */
    gap: 20px; /* Space between items */
  }

.item3 {
    display: flex;
    align-items: center; /* Center items vertically */
    width: calc(50% - 10px); /* Ensure two items per row with space for gap */
    box-sizing: border-box; /* Include padding and border in width calculation */
	margin-bottom: 30px; /* Space between rows */
  }

.item3 img {
    width: 80px; /* Set a fixed width for images */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between image and text */
  }

.item3 .text {
    font-family: 微軟正黑體, Microsoft JhengHei, Verdana, Geneva, sans-serif;
    font-size: 16px;
    color: #666;
  }

.flex-container3 {
  justify-content: space-between;
}
	
.image-container3 {
  display: flex;
  justify-content: center; /* 將圖片容器居中 */
  gap: 50px; /* 調整圖片之間的距離 */
  flex-wrap: wrap; /* 允許圖片換行（如果需要） */
   }

/* 聯絡資訊 */
.contact-info {
    display: flex;
    justify-content: space-between; /* 左右分布 */
    max-width: 100%;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 13px;
    color: #666;
}

.contact-info > div {
    text-align: left; /* 文字保持左對齊 */
}

.contact-info > div:last-child {
    margin-left: auto; /* 右側框框向右靠齊 */
}

/*faculty內文字體樣式*/
.teacher {
    width: 100%;
    height: auto;
}

.flex-container {
justify-content: space-between;
}
	
.image-container {
    display: flex;
    justify-content: center; /* 將圖片容器居中 */
    gap: 50px; /* 調整圖片之間的距離 */
    flex-wrap: wrap; /* 允許圖片換行（如果需要） */
}

.apDiv23 {
margin-left: 0px;
margin-top: 0px;
width: auto;
font-family:"微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
font-size: 16px;
color: #666
}


.apDiv25 {
margin-left: 0px;
margin-top: 0px;
width: auto;
font-family:"微軟正黑體", "Microsoft JhengHei", Verdana, Geneva, sans-serif;
font-size: 12px;
color: #666
}

.apDiv25 p {
  margin-top: 20px; /* 或其他你喜歡的數值，如 20px */
  display: inline-block; /* 為了讓 margin-bottom 生效 */
}

/* FACULAT表格 */


.section-title {
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 10px;
  display: inline-block; /* 為了讓 margin-bottom 生效 */
}

.table-info {
  width: 100%;
  border-collapse: collapse;
}

.table-info td {
  vertical-align: top;
  padding: 2px 8px 2px 0;
}

.table-info td:first-child {
  white-space: nowrap;
  width: 20px;
  color: #555;
}

