/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    font-family: "Times New Roman", Times, serif;
    letter-spacing: 2px;
}

* {
    box-sizing: border-box;
}

/* reset end */

*,*:before,*:after{
  box-sizing:border-box
}


.container {
    max-width: 999px;
    margin: 0 auto;

}

.tw_link {
    font-size: 1rem;
    text-decoration: none;
    color: #666666;
    display: flex;
    justify-content: right;
    padding: 1em 1em 1em 0;
    /*   position: absolute; right: 1em; top: 0; display: inline-block; */
}


.header {
    display: flex;
    border-bottom: #f00 1px solid;
    justify-content: space-around;
}

.logo {
    max-width: 126px;
    height: 131px;
}


.large_word {
    color: #f00;
}

.header h1 {
    font-size: 3rem;
    padding: 15px 0;
    color: #666666;
    margin: 0;
    font-weight: 700;
    margin: 0 auto;
}

.h1word {
    display: flex;
    justify-content: space-between;
    /* max-width: 600px; */
}



.red {
    color: red;
}

.menu {
    display: flex;
    position: relative;
    margin: 7px 0 0 7px;
    font-size: 22px;
    color: grey;

}

.menu li {
    padding: 20px 7px;
}

/* .menu li span {
    display: inline-block;
    vertical-align: bottom;
    padding-top: 7px;
} */

.menu li:hover .menu2 {
    display: block;
}

.menu li:hover,
.menu a:hover,
.menu2 a:hover,
.material-symbols-outlined:hover {
    color: red;
}

.menu li:hover,
.menu2 li:hover {
    border: 1px solid #bbbbbb;

}
 .menu2 li a{
    display: block;
    width: 100%;
    }
.menu a,
.menu2 a {
    text-decoration: none;
    color: #666666;
}

.menu2 {
    display: none;
    position: absolute;
    margin-top: 15px;

    /* 會讓字變一行，但會超出去 */
    /* white-space: nowrap; */

}

.menu2 {
    background-color: #f8f8f8;

}

.menu>li:last-child .menu2 {
    left: auto;
    /* 1. 務必取消原本設定的 left: 0 */
    right: 0;
    /* 2. 設定右邊對齊父層右邊 */
}

/* 漢堡選單 */
.menu-btn {
  display: none;
  cursor: pointer;
}
.menu-btn .menu-icon {
  display: none;
}
.menu-icon{
    margin: 12px;
    padding: 4px;
    border: 1px rgb(217, 255, 255)  solid ;
    border-radius: 5px;
}
/* 預設三條顯示 */
.menu-control:not(:checked) + .menu-btn .open {
  display: inline;
}
/* 點選後，三條隱藏 */
.menu-control:checked + .menu-btn .open {
  display: none;
}
/* 點選後，叉叉顯示 */
.menu-control:checked + .menu-btn .close {
  display: inline;
}
/* 沒有點選時，叉叉隱藏 */
.menu-control:not(:checked) + .menu-btn .close {
  display: none;
}

.menu-control {
  display: none;
}




.material-symbols-outlined {
    vertical-align: bottom;
}

p {
    /* color: grey; */
    line-height: 1.5;
    font-size: 18px;
}

h3 {
    margin: 15px;
    font-size: 1.4em;
}

.clear{
    clear: both;
}
.footer {
    color: #666;
    text-align: center;
    font-size: 12px;
    margin: 22px;
}

img{
    width: 100%;
    height: auto;
}

/* slide */
.autoPlay{ 

    /* 要設定 relative，才不會遮住選單 */
    position:relative;
    z-index: -100;
    aspect-ratio: 2 / 0.9; 
    /* 自動根據寬度計算手機版高度 */
}
.ppt{
    /* 自動根據寬度計算手機版高度 */
     aspect-ratio: 1 / 0.85; 
}
.autoPlay li{ 
    position:absolute; 

    /* 一定要先設定100%，接著在下面設定 版型寬度999px */
    width: 100%;
    }
.autoPlay img{
    max-width: 999px;
}
/* #slideshow a img{ 
    display: block; 
    padding: 0; margin: 0 auto; border: none;} */
/* #slideshow li a{ display: block;} */

/* .slideshowController { position:absolute; right:0; top:0;}
.slideshowController a{ background:transparent url(images/001arrows.png) no-repeat left top; display:block; width:30px; height:30px; position:absolute; right:60px; bottom:0;
						 z-index:99; outline:none;}
.slideshowController .next{ background-position: -30px 0; right:0;}						
.slideshowController .play{ background-position: -60px 0; right:30px;}
.slideshowController .pause{ background-position: -90px 0;} */

.index_content{
    display: flex;
    margin: 5px 0;
    gap: 7px;
}

.card{
    width: 33%;
    border: 1px solid #bbb;
    border-radius: 7px;
    /* padding: 22px; */
}

.card-header{
    font-size: 1.3em;
    background-color: #f8f8f8;
    margin: 5px;
    padding: 12px;
    font-weight: 700;
}

.card-body{
    margin: 5px;
    padding: 12px;
}

.card-body ol {
    list-style:decimal;
    margin-left: 1em;
    line-height: 1.5;
}

b{
    font-weight: bold;
    display: inline-block;
    margin: 7px 0;
    font-size: 1.1em;
}

#content{
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px;
    /* width: 100%; */
}
#content h2{ margin:0; padding:0; line-height:35px; background-color:#eee; font-weight: 700; font-size: 1.5em; 
    /* width: 200px; */
} 

#small_left{
    width: 200px; /* 固定左側寬度 */
  flex-shrink: 0; /* 不要讓左側被壓縮 */
}
 .dropBtn{ border-radius:6px; width:200px; border:1px solid #ccc; margin:5px 5px 5px 0; float:left; text-align:center; }

#small_left p{ margin:0; border-bottom:1px solid #eee; padding-bottom:7px; line-height:30px; text-align:center; }

#large_right{ border-radius:6px; 
    flex: 1;
    min-width: 0; /* 讓 flex 項目能夠小於其內容的最小寬度 */
    height:auto; border:1px solid #ccc; margin:5px; padding:5px; text-align:center;}

#large_right p{ text-align:left; padding-left:7px;}

#large_right h3{ color:#FF0000; font-size:20px; text-align:left;}

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

.hidden-box{
  display: none; /* 預設隱藏 */
  /* position: absolute; */
}
.content {
  display: block; 
}

.showUl{
    list-style: numeric;
    margin: 12px 0 0 32px;
}

#large_right .tac{
    text-align: center;
}

hr{
    margin: 40px;
}

/* 1. 讓整個表格合併邊框，才不會出現雙重線 */
table {
  max-width: 100%;
  border-collapse: collapse; 
  border-spacing: 0;
}

/* 2. 替 th 和 td 加上框線與內距 */
th, td {
  border: 1px solid #ccc; /* 灰色框線，你可以換成自己喜歡的顏色 */
  padding: 12px 16px;     /* 加上內距，才不會讓文字貼在線上 */
  text-align: left;       /* 文字靠左對齊（預設通常是置中或靠左） */
}

/* 3. 幫表頭加上一點背景色，看起來更專業 */
th {
  background-color: #f4f4f4;
  font-weight: bold;
}
/* 奇數行或偶數行加上背景色 */
tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* 滑鼠移上去時變色 */
tbody tr:hover {
  background-color: #f1f1f1;
}
.table-container {
    width: 100%;
  max-width: 100%;
  overflow-x: auto; /* 關鍵：當內容超出時，出現水平滾動條 */
  -webkit-overflow-scrolling: touch; /* 讓手機上的滑動更平順 */
}



@media(max-width:888px) {

    .header{
        display: block;
        width: 100%;
    }
    .header h1 {
        font-size: 2rem;
    }


    .menu {
        display: none;
        /* background-color: azure; */
        border: 1px rgb(217, 255, 255) solid;
    }

    .menu li {
        width: 100%;
    }

    .logo {
        display: none;
    }

    .word_en {
        max-width: 80%;
        height: auto;
        object-fit: contain; 
        margin-left: 12px;
    }

    .menu>li:last-child .menu2 {
        left: 7px;
        /* 1. 務必取消原本設定的 left: 0 */
        /* overflow: hidden; */
    }

    .menu2{
        width: 88%;
    }
    .menu2 li {
        
        max-width: 100%;
    }
    .menu2 li a{
        display: block;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .menu-btn{
    display: block;
  }
 

  /* Gemini 提供的 */
  :has(#menu-control:checked) .menu  {
    display: flex;
    /* width: 100%; */
    flex-direction: column;
    align-items: center;
  }

 .autoPlay {
    height: auto;
    aspect-ratio: 2 / 0.9; /* 自動根據寬度計算手機版高度 */
  }
  .ppt{
    /* 自動根據寬度計算手機版高度 */
     aspect-ratio: 1 / 0.85; 
}

  .index_content{
    display: block;

  }
  .card{
    width: 98%;
    margin: 7px;
  }

  #content{
    flex-direction: column;
  }


  #small_left{
    display: flex;
    align-items: flex-start;
    width: 100%;
  }


  /* CSS 控制 */
.content , .hidden-box{
  display: none; /* 預設隱藏 */
  /* position: absolute; */
}

/* 當 checkbox 被勾選時，後方的 .content 顯示 */
.hidden-box:checked + .btn + .content {
  display: block; 
}

/* 1. 預設狀態：在 label 的 h2 後面加上「展開」的箭頭 ▼ */
.btn h2::after {
  content: " ▼";
  margin-left: 7px;
  font-size: 0.8em;
  color: #888;
  display: inline-block;
  transition: transform 0.2s; /* 讓箭頭旋轉有平滑動畫 */
}

/* 2. 當點擊（勾選）時：改變 label 的樣式（例如文字變色、箭頭旋轉） */
.hidden-box:checked + .btn h2 {
  color: #007bff; /* 展開時文字變藍色（可依喜好修改） */
}

/* 3. 當點擊（勾選）時：讓箭頭轉向變成 ▲ */
.hidden-box:checked + .btn h2::after {
  content: " ▲";
  color: #007bff;
}



}



@media(max-width:456px) {
    .word_en {
        max-width: 72%;
        text-align: center;
    }


}    