/* 整體樣式 */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  text-align: center; /* 文字居中 */
  line-height: 1.5;
}

/* 容器樣式    1 */
.container { 
  width: 1160px;  /* 固定寬度 */
  margin: 0 auto; /* 水平居中 */
}

/* 抬頭區域 */
.header {
  height: 50px; /* 調整為90px高度 */
  text-align: center;
  padding: 10px;
  background-color: #000880;
  color: #fff; 
  border-bottom: 0px solid #080;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 4px 4px 4px;  /* 圓角 */
}

/* 尾部區域 */
.footer {
  height: 40px; /* 調整為70px高度 */
  text-align: center;
  padding: 10px;
  background-color: #000880;
  color: #fff;
  border-top: 2px solid #080;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px 9px 0px 0px;  /* 圓角 */
}


/* 主內容區域    2 */
.main-content {
  padding: 0px 10px 10px 20px;
  display: flex;  
  border: 1px solid #ccc; /* 灰色邊框 */
  background-color: #fff;
  text-align: left; /* 文字居中 */
}

/* 左側功能選項 */
.menu {
  width: 31%; /* 1/3 寬度 */
  border-right: 1px solid #ccc; /* 右側灰色邊框 */
  padding: 2px 10px 10px 0px;
  box-sizing: border-box; /* 確保內邊距不影響寬度 */
}

.menu iframe {
  width: 100%;
  height: 100%;
  border: none; /* 移除 iframe 邊框 */
}

/* 右側主文區  3  */
.content {
  width: 69%; /* 2/3 寬度 */
  padding: 10px 10px 10px 20px; 
  font-size : 18px;
  box-sizing: border-box; /* 確保內邊距不影響寬度 */
}


/* 功能選項樣式 */
.menu-item {
  padding: 10px;
  border-bottom: 2px solid #bbb;
  cursor: pointer;
  font-size: 14pt;
  transition: background-color 0.3s ease;
  text-align: left; /* 文字靠左 */
  text-decoration: none; /* 不底線 */
  list-style-type: none; /* 不圓點 */
}

.menu-item:hover {color: #fff; 
  background-color: #000080;
}          /* 深藍色  字白色 */


/* 動畫效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.header h0 {  font-size: 18pt; padding: 6px;
  animation: fadeIn 0.5s ease-in-out; /* 調整為 0.5 秒 */
}

em3 {font-weight: bold; font-size: 24px;
     padding: 26px 6px 16px 6px;
/* 顺序：上 右 下 左 */ }

/* 一般功能表   白色字   顯示黃 */
A.side:link {   
color: #fff;  font-size: 15pt; 
padding:0px 0px 0px  0px;
text-decoration: none;  
}
A.side:active {
color: #fff;  font-size: 15pt;
padding:0px  0x 0px  0px 
text-decoration: none; 
}
A.side:visited {
color: #fff;  font-size: 15pt;
padding:0px  0px 0px  0px
text-decoration: none;
}
A.side:hover {
color: #EBEB00; font-size: 15pt;
padding:0px 0px 0px  0px;background-color: #000080;
text-decoration: none;border-bottom: 3px solid #bbb; }

    /* 回到頂部  按鈕 */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;    /* 建議加大距離避免被擋 */
  right: 60px;
  z-index: 99;
  background-color: #4545FF;
  color: white;    /* 改為白字更醒目 */
  cursor: pointer;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 18px;
  opacity: 0.7;    /* 半透明效果 */
  transition: all 0.3s;
}

#backToTopBtn:hover {
  background-color: #000080;
  opacity: 1;      /* 懸停時變不透明 */
}

