/*調整不同版本瀏覽器本文高度設定不統一問題及設定預設字體使用順序*/
html, body {
  margin: 0;
  width:100%;
  /*height:100%;*/
  font-size: 100%;
  font-family: "微軟正黑體","Microsoft JhengHei",Tahoma,"新細明體","PMingLiU",arial;
}

td,th {
  font-family: Tahoma;
}

/*目錄字型樣式*/

.catalogfont1 {
	font-family: Tahoma;
	color: #FFFFFF
}
.catalogfont2 {
	font-family: Tahoma;
	color: #333333;
	font-weight: bold;
	font-size: 24px;
}
.catalogfont3 {
	font-family: Tahoma;
	font-size: 12px;
}
.catalogfont4 {
	font-family: Tahoma;
	font-size: 14px;
	font-weight: bold;
}

/*預設超連線樣式*/
a:link {
  color: #0000FF;
  text-decoration: none;
}
a:visited {
  text-decoration: none;
  color: #0066FF;
}
a:hover {
  text-decoration: none;
  color: #FF0000;
}
a:active {
  text-decoration: none;
  color: #990000;
}

/*預設水平線樣式*/
.hr1 {
  height:1px;border:none;
  border-top:1px solid #555555;
}

/*浮動表格標題欄樣式*/
#top-bar{
	width:100%;
	height:24px;
	position:fixed;
	top:-24px;
}

/*以下為網頁排樣用樣式*/

#body-fix {
  width: 100%;
  /* min-height:100%; */
  margin: 0px auto;
}

.menu-fix {
  position: fixed;
  width: 100%;
  /*height: 40px;*/
  background-color:#efefef;
  z-index:1;
}

.main-top {
  position: relative;
  width: 675px;
  height: 38px;
  margin: 0px auto;
  background-color:#efefef;
}

.main-logo {
  position: absolute;
  width: 145x;
  height: 36px;
  left: 0px;
  z-index:1;
}

.main-menu {
  position: absolute;
  width: 530px;
  height: 36px;
  left: 145px;
  top:10px;
}

.table-fix {
  padding-top:50px;
  margin: 0px auto;
  padding-bottom:20px;
}

#footer {
  width: 100%;
  height: 78px;
  left: 0px;
  margin: 0px auto;
  bottom: 0;
  background-color: #6e6e6e;
}

.footer-body {
  position: relative;
  width: 740px;
  height: 78px;
  margin: 0px auto;
  /*background-color: #555;*/
}

.footer-menu {
  position: absolute;
  width: 740px;
  top:4px;
  font-size: 13px;
  text-align: center;
  color: #fff;
}

/*footer區超連結樣式*/

.footer-menu a:link {
  text-decoration: none;
  color: #cecece;
}

.footer-menu a:visited {
  text-decoration: none;
  color: #cecece;
}

.footer-menu a:hover {
  text-decoration: none;
  color: #fff;
}

.footer-menu a:active {
  text-decoration: none;
  color: #fff;
}

.footer-text {
  position: absolute;
  font-size: 29px;
  font-weight: bold;
  text-align:left;
  color: #1F9F52;
  top: 22px;
  left: 36px;
  font-family: "微軟正黑體","Microsoft JhengHei","新細明體","PMingLiU",arial;
  text-shadow: #333 1px 1px 1px;
  behavior: url(PIE.htc); /* 修正舊版IE CSS 支援問題 */
}

.footer-address {
  position: absolute;
  font-family: Tahoma,"微軟新細明體", arial;
  font-size: 12px;
  text-align:left;
  color: #fff;
  top: 26px;
  right: 36px;
}

.footer-bottom {
  position: absolute;
  width: 100%;
  bottom: 0px;
  font-size: 12px;
  padding-bottom: 3px;
  text-align: center;
  /*border-top: #ccc 1px solid;*/
  /*background-color: #4e4e4e;*/
  color: #ccc;
}

/*以下為下拉選單樣式*/
#nav{
  float: right;
  left: -50%;
  position: relative;
}

ul { /* 取消ul預設的內縮及樣式 */
  margin: 0;
  padding: 0;
  list-style: none;
  float:left;
  left: 50%;
  position: relative;
}

ul.drop-down-menu {
  /*border: #999 1px solid;*/
  display: inline-block;
  font-size: 16px;
  font-family: "微軟正黑體","Microsoft JhengHei","新細明體","PMingLiU",arial;
}

ul.drop-down-menu li {
  position: relative;
  white-space: nowrap;
  /*border-right: #ccc 1px solid;*/
}

ul.drop-down-menu > li:last-child {
  border-right: none;
}

ul.drop-down-menu > li {
  float: left; /* 只有第一層是靠左對齊*/
}

ul.drop-down-menu a {
  background-color: #eee;
  color: #333;
  display: block;
  padding: 0 12px;
  text-decoration: none;
  line-height: 28px;
}

ul.drop-down-menu a:hover { /* 滑鼠滑入按鈕變色*/
  background-color: #666;
  color: #fff;
}

ul.drop-down-menu li:hover > a { /* 滑鼠移入次選單上層按鈕保持變色*/
  background-color: #888;
  color: #fff;
}

ul.drop-down-menu ul {
  border: #ccc 1px solid;
  position: absolute;
  font-size: 15px;
  z-index: 99;
  left: -1px;
  top: 100%;
  min-width: 180px;
}

ul.drop-down-menu ul li {
  border-bottom: #ccc 1px solid;
  border-right: #ccc 1px solid;
}

ul.drop-down-menu ul li:last-child {
  border-bottom: none;
}

ul.drop-down-menu ul ul { /*第三層以後的選單出現位置與第二層不同*/
  z-index: 999;
  top: 5px;
  left: 90%;
}

ul.drop-down-menu ul { /*隱藏次選單*/
  left: 99999px;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

ul.drop-down-menu li:hover > ul { /* 滑鼠滑入展開次選單*/
  opacity: 1;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  left: -1px;
  border-right: 5px;
}

ul.drop-down-menu li:hover > ul ul { /* 滑鼠滑入之後、次選單之後的選單依舊隱藏*/
  left: 99999px;
}

ul.drop-down-menu ul li:hover > ul { /* 第二層之後的選單展開位置*/
  left: 90%;
}

ul.drop-down-menu ul { /*隱藏次選單*/
  display: none;
}

ul.drop-down-menu li:hover > ul { /* 滑鼠滑入展開次選單*/
  display: block;
}



#toTop {
  padding: 5px 5px;
  background: #333;
  position: fixed;
  bottom: 95px;
  right: 15px;
  display: none;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  box-shadow: #666 2px 2px 2px;
  behavior: url(PIE.htc); /* 修正舊版IE CSS 支援問題 */
}

#toTop a:link {
  text-decoration: none;
  color: #fff;
}

#toTop a:visited {
  text-decoration: none;
  color: #fff;
}

#toTop a:hover {
  text-decoration: none;
  color: #aaa;
}

#toTop a:active {
  text-decoration: none;
  color: #aaa;
}