/*取代css/t06-nt1.css & css/lib-2.css*/

@charset "utf-8";
/* CSS Document */

/* 通用重置與盒模型 */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background-image: url(../images/bg01.jpg);
}
.accessibility-link {
  float: left;
}

/* 包裝器 */
#wrap {
  max-width: 1000px;
  margin: 0 auto;
  letter-spacing: 1px;
  font-family: 'Noto Sans TC', '微軟正黑體', '新細明體', sans-serif;
  background-color: #fff;
}

/* 上方列 */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  font-size: 14px;
}
.left-links a {
  margin-right: 10px;
  text-decoration: none;
  color: #333;
}

/* 標頭區塊 */
header {
  max-width: 1000px;
  margin: 0 auto;
}
.logo{
  margin: 0;
  padding: 0;
}
h1 {
  float: left;
}
h1 img {
  width: 100%;
  max-width: 455px;
}
header .login {	
  float: right;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}
header .login a {
  border: 5px solid #e7eef4;
  border-radius: 12px;
  margin-left: 20px;
  padding: 8px 15px;
  display: inline-block;
  background-color: #519fc0;
  text-decoration: none;
  color: #fff;
}
header .login a:hover {
  border-color: #f3f7f0;
  background-color: #c4d384;
}

/* 主選單 */
#menu {
  clear: both;
  background-color: #a0bfae;
  overflow: hidden;
}
nav {
}
.main-menu {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 1000px;
  display: flex;
  /*justify-content: center;*/
}
.main-menu li {
  border-right: 1px solid #adc8b9;
}
.main-menu > li > a {
  display: inline-block;
  text-decoration: none;
  width: 100px;
  padding: 10px 0;
  text-align: center;
  color: #434eae;
}
.main-menu > li > a:hover {
  color: #fff;
  background: #434eae;
}

/* 輪播區 */
#slides {
  max-width: 1000px;
  margin: 0 auto;
}
#slides img {
  margin-top: 0.6em;
  width: 100%;
  max-width: 1000px;
  border: 0;
  /*display: block;*/
}

/* 公告區域 */
#main.news {
  flex: 1 1 60%;
  max-width: 560px;
  margin-right: 25px;
}
/* 公告區域 UL 調整：移除預設空白 */
#main.news ul {
  list-style: none;
  margin-left: -10px; /* 可調整為你需要的數值 */
  /*margin: 0;*/
  padding-left: 0; /* ✅ 去除前方縮排 */
  line-height: 210%;
  font-size: 12px;
  color: #feffd6;
  width: 100%;
  max-width: 600px;
}

/* 公告項目 LI 設定 */
#main.news li {
  margin: 0;
  padding: 0;
  position: relative;
}

/* 公告項目 A 樣式（含背景圖） */
#main.news ul li a {
  display: block;
  font-size: 15px;
  padding: 4px 0 4px 20px; /* 左側空間留給背景圖 */
  color: #333;
  text-decoration: none;
  background: url(../images/menu_li_bg.png) no-repeat 0px 12px;
  outline: none;
  border-bottom: 1px dotted #ccc;
}

#main.news ul li a:hover,
#main.news ul li a:focus {
  text-decoration: none;
  color: #8ac40c;
}
#main.news h2 {
  margin-top: 25px;
  font-size: 20px;
  font-weight: normal;
  background: url(../images/bg-news.gif) no-repeat;
  padding: 6px 10px 20px 26px;
  color: #fff;
}

/*通用*/
.content {
  display: flex;              /* 加上 Flex 排版 */
  /*justify-content: space-between;*/
  align-items: flex-start;
  flex-wrap: wrap;
  box-shadow: 1px 1px 5px #b6b6b6;
  padding: 20px 15px 15px 15px;
}
.content .s-h2 {/*
  float: left;
  text-decoration: none;*/
  margin-left: 30px;/*
  margin-top: 24px;
  line-height: 28px;*/
}
.s-h2 {
  text-decoration: none;
  }
.s-h1 a {
  text-decoration: none;
  color: #0068b7;
}
s-h1 a:hover{
	text-decoration:underline;
	color: #eb6100;}
.content .s-h1 {
    padding-left: 12px;
    line-height: 28px;
    font-size: 14px;
}
.content .s-h1 .s-h2{
	margin-left: 0;
}

.newsDate {
  padding-right: 8px;
}
.content ul{
  list-style: none;
  /*margin: 0;
  line-height: 210%;
  font-size: 12px;
  color: #feffd6;
  width: 100%;
  max-width: 600px;*/
      width: 100%;
    max-width: 100%;
    padding-left: 15px;
}
.content li {
  margin: 0;
  padding: 0;
  position: relative;
}
.content ul li a {
  display: block;
  font-size: 15px;
  padding: 4px 0 4px 20px;
  color: #333;
  text-decoration: none;
  background: url(../images/menu_li_bg.png) no-repeat 0px 12px;
  outline: none;
  border-bottom: 1px dotted #ccc;
}
.content ul li a:hover,
.content ul li a:focus {
  text-decoration: none;
  color: #8ac40c;
}

/* 更多連結 */
.more {
  float: right;
  font-size: 15px;
}
.more a {
  text-decoration: none;
}
.more a:hover,
.more a:focus {
  text-decoration: none;
  color: #ff9900;
}

/* 開館時間 */
#op_info {
  flex: 0 0 280px;
  max-width: 280px;
  border: #c7cad6 1px solid;
  padding: 15px 20px;
  line-height: 2.2em;
  background-color: #f2f2f2;
  margin: 0;  /*移除原本的 float 和 margin-top */
  
}
.tot {
  display: block;
  text-align: center;
  border-bottom: #84c19f 10px solid;
  margin-bottom: 10px;
}
.tcg {
  color: #009944;
}
.tcr {
  height: 40px;
  line-height: 38px;
  margin: 10px auto 15px auto;
  width: 240px;
  display: block;
  color: #fff;
  border: 1px solid #000;
  background-color: #7d0000;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  /*justify-content: center;*/
}

/* 資料連結區 */
#resources {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  margin-top: 10px; /* 如需與上方區塊留間距 */
}
#lil {
  display: flex;
  flex-wrap: wrap;
  gap:10px; /* 項目之間的間距 */
  justify-content: space-between;
  padding: 20px 20px;
}
#lil a {
  border: 1px solid #becbd1;
  border-radius: 8px;
  text-decoration: none;
}
#lil a:hover,
#lil a:focus {
  color: #ff9900;
}
#lil .item {
  display: block;
  /*width: calc(25% - 14px);  每列 4 個，扣除 gap */
  text-align: center;
  text-decoration: none;
  color: #000;
  padding:10px;
}
#lil .item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#lil .item p {
  margin-top: 8px;
  font-size: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 頁尾 */
footer {
  margin-top: 10px;
  background-color: #81a993;
}
.adtxt {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 40px;
}

/* 第二頁不需要流動排版時覆寫 */
.fixed-content {
  display: block; /* 或用你原本需要的 layout 設定 */
}
.custom-h2 {
    font-size: 22px;
    font-weight: bold;
    padding: 10px 10px 10px 36px;
    color: #960;
    display: block;
    margin-top: 0px;
    border-bottom: #dcdcdc solid 1px;
}
.fixed-content ul{
   width: 100%;
   max-width: 890px;   
    box-sizing: border-box;
	margin:0 auto;
   padding-right: 15px;
   padding-bottom: 80px;/**/
    list-style: none;
}
.fixed-content li {
  margin: 0;
  padding: 0;
  position: relative;
}
.fixed-content ul li a {
  display: block;
  font-size: 17px;
  padding: 8px 0 8px 15px;
  color: #333;
  text-decoration: none;
  background: url(../images/menu_li_bg.png) no-repeat 0px 16px;
  outline: none;
  border-bottom: 1px dotted #ccc;
}

.ctxt{
	max-width:850px;
	margin:0 auto;
	padding:0 8px;
	}
.ctxt a{
	color:#0068b7;
	}	
.ctxt a:hover{
	color:#8ac40c;
	}
/*保持圖片原始大小 */
.responsive-img {
  width: auto;
  height: auto;
  max-width: 100%;/* 保護性設定，防止容器太小時圖片溢出 */
}
	
p{
	text-indent:2em;
	line-height:26px;}
#accordion p{
	text-indent:inherit;}
.rl li a:hover ,
.rl li a:focus{	
	background-color:#EFEFEF;}
#op_infoList {
    margin-top: 10px;
    width: 100%;   
    padding: 15px 20px 15px 20px;
    line-height: 2.2em;   
    background-color: #fff;
}
.op_sp{
	width:100%;
	padding-left:40px;
	padding-top:10px;
	border:#933 1px solid;}
.date-section {/*
  margin-bottom: 5px;*/
}

.date-group {
  display: inline-block;
  margin-right: 15px;
  white-space: nowrap;
}

.blue { color: #3366CC; }
.teal { color: #009999; }
.orange { color: #ec6941; }
.purple { color: #920783; }	
	
/* Google 翻譯元件調整 */
#google_translate_element {
  opacity: 0.9;
  z-index: 1000;
  position: relative;
}

/* ✅ RWD 響應式設計 */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px; /* ✅ header 左右內距 */
  }

  .logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  h1 {
    float: none;     /* ✅ 取消 float */
    margin: 0;
  }

  header .login {
    float: none;     /* ✅ 移除 float 以避免跑版 */
    margin-bottom: 10px;
    text-align: right;
    width: 100%;
  }

  header .login a {
    display: inline-block;
    margin-left: 10px;
    padding: 6px 10px;       /* ✅ 調整按鈕尺寸 */
	font-size: 16px;
  }

  .main-menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
  }

  .main-menu > li > a {
    padding: 6px 8px;
    width: auto;
    white-space: nowrap;
  }

  .main-menu li {
    border: none;
  }
#resources {
  margin-top: 0; /* 如需與上方區塊留間距 */
}
#lil {  
  padding-top:0;
}
  #lil .item {
    width: 100%;
    margin: 15px 0;
  }
  .content {
    padding: 0;            /* ✅ 手機時取消內距 */
    max-width: 100%;       /* ✅ 手機時寬度仍滿版 */
  }
  .custom-h2 {
    padding: 10px 10px 10px 5px;
}
  .fixed-content {
  padding: 20px 15px 15px 15px;
}
  #op_info {
    float: none;
    display: block;
    width: 100%;
    max-width: 90%;
    margin: 20px auto;
    padding: 15px 20px;
    box-sizing: border-box;
  }
 .date-group {
    display: block;  /* 每組日期單獨一行 */
	}

/* 自動縮放圖片 */
  .responsive-img {
    width: 100%;
    height: auto;
  }
  /*二手書拍賣*/
  /* 隱藏第一列（標題列） */
  .tb3 tr:first-child {
    display: none;
  }

  /* 隱藏每一行的第二欄（第二個 td） */
  .tb3 td:nth-child(2) {
    display: none;
  }


  #wrap,
  #slides,
  .footer {
    max-width: 100%;
   /* padding: 0 10px;*/
  }

}
@media (max-width: 480px) {
  #lil .item {
    width: 100%; /* 每列一個 */
  }
}
.tb1{
	font-size:16px;}
.tb1 img{
	margin-top:4px;}
.tb1 td{
	padding:10px 0px 0px 5px;}
.tb1 td a:hover{
	color:#8ac40c;}
.tb2 td{
	padding:10px 0px 5px 10px;
	border:1px dotted #CCCCCC;
	}
.tb2 a{
	text-decoration:none;}	
.tb2 td a:hover{
	color:#8ac40c;}
.hs td{
	background-color:#f5f6f7;}
	
/* 針對 custom-table 類別設置樣式 */
.tb3 {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 確保表格每一列的寬度固定 */
}
.tb3 th, .tb3 td {
  padding: 10px;
  text-align: left;
  border:1px dotted #CCCCCC;
  word-wrap: break-word; /* 讓長字串（例如連結）換行 */
  word-break: break-word; /* 強制換行，避免連結被截斷 */
}
