/* 配色與版面取自原站 style_549.css 之設計事實(色碼/字級/寬度),樣式為本專案自寫:
   body #fbfbfb、內容寬 1180、連結 #215fa5/hover #daa74f、選單 #6a3906/hover #da5443、
   按鈕 #3c3129、頁尾 #f6f3ec + 3px double #ccc、標題 18px 黑 + 副標 14px #666 Georgia */
:root {
  --paper: #fbfbfb;
  --cream: #f6f3ec;
  --line: #d2d2d2;
  --ink: #3e3934;
  --black: #000;
  --muted: #666;
  --brown: #6a3906;
  --tan: #a48462;
  --gold: #daa74f;
  --gold-d: #ce9004;
  --coral: #da5443;
  --dark: #3c3129;
  --link: #215fa5;
  --red: #e83939;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Raleway", "微軟正黑體", "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 900px; }

/* header */
.site-header { background: #fff; border-bottom: 1px dotted var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; }
.logo { display: inline-block; }
.logo:hover { text-decoration: none; }
.logo-img { display: block; height: 58px; width: auto; }
/* 主選單橫條(原站 #m_nav2:米色 46px 置中,LavaLamp 珊瑚紅滑動底線) */
.menu-bar { background: #e4dfd6; min-height: 46px; position: relative; z-index: 50; }
.menu-wrap { position: relative; }
.menu-list { list-style: none; margin: 0 auto; padding: 0; text-align: center; font-size: 0; }
.menu-item {
  display: inline-block; position: relative; margin: 6px 0; font-size: 16px;
  background: url(/images/webdox_style/style_549/images/li_nav.png) center right no-repeat;
}
.menu-list .menu-item:last-child { background: none; }
.menu-item > a {
  display: block; padding: 9px 15px; color: #4a4645; font-weight: bold;
  white-space: nowrap; transition: color .2s;
}
.menu-item > a:hover, .menu-item.active > a { color: var(--coral); text-decoration: none; }
.menu-back {
  position: absolute; bottom: 0; left: 0; height: 3px; width: 0;
  background: var(--coral); z-index: 1;
}
.menu-back.ready { transition: left .3s ease, width .3s ease; }

/* 下拉選單(原站桌面版:深色 #231d20 白字、hover 深棕) */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  list-style: none; margin: 0; padding: 0; min-width: 150px; text-align: left;
  background: #231d20; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.has-sub:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 5px 15px 5px 5px; color: #fff; font-size: 15px;
  border-bottom: 1px solid #363334; transition: background .2s;
}
.dropdown a::before { content: "› "; padding: 0 8px 0 0; color: #fff; }
.dropdown li:last-child a { border-bottom: 0; }
.dropdown a:hover { background: #3c3129; color: #fff; text-decoration: none; }

/* marquee:米色横幅,深灰文字、hover 金 */
.marquee { background: var(--cream); border-bottom: 1px dotted var(--line); overflow: hidden; }
.marquee-inner { display: inline-block; white-space: nowrap; padding: 7px 0; font-size: 13px; animation: scroll-x 18s linear infinite; }
.marquee a { color: #333; }
.marquee a:hover { color: var(--gold); }
@keyframes scroll-x { 0% { transform: translateX(60vw); } 100% { transform: translateX(-100%); } }

/* banner:原站橫幅圖 */
.banner img { display: block; width: 100%; max-width: 100%; height: auto; }

/* 區塊標題:18px 一般字重黑色 + 14px #666 Georgia 副標 */
.section { padding: 30px 0; }
.sec {
  font-size: 18px; font-weight: normal; color: var(--black);
  margin: 0 0 16px; padding: 5px 0;
  border-bottom: 1px dotted var(--line);
  letter-spacing: 0;
}
.sec strong {
  display: block; font-size: 14px; font-weight: normal;
  color: var(--muted); font-family: Georgia, serif; letter-spacing: .5px;
}
h2 { color: var(--black); font-size: 17px; font-weight: normal; }

/* 首頁卡片 */
.cols { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.slider3 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.slide {
  position: relative; background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.slide-img { display: block; }
.slide-img img { display: block; width: 100%; height: auto; }
.slide-cap { font-size: 15px; padding: 4px 6px 8px; text-align: center; color: var(--brown); }
/* hover 黑幕疊字(原站 .slide_font,transition .5s ease-in-out) */
.slide_font {
  position: absolute; inset: 0; color: #fff; opacity: 0;
  transition: all .5s ease-in-out; z-index: 2;
}
.slide_font span { display: none; }
.slide_font a { color: #fff; }
.slide:hover .slide_font { opacity: 1; background: rgba(0, 0, 0, .8); }
.slide:hover .slide_font span {
  display: block; text-align: center; font-size: 18px; letter-spacing: .5px; margin-top: 80px;
}
.slide:hover .slide_title { display: block; font-size: 24px; }
.slide:hover .slide_sub { display: block; font-size: 18px; }
.slide:hover .slide_more {
  position: absolute; display: block; left: 40%; bottom: 20%;
  border: 1px solid #fff; padding: 0 15px; font-size: 14px;
}
.slide:hover .slide_more::before { content: "瞭解更多 Go"; }
.star { position: absolute; top: 0; left: 0; width: 0; height: 0;
  border-top: 34px solid var(--gold-d); border-right: 34px solid transparent; z-index: 3; }
.star_t::before { content: "★"; position: absolute; top: -32px; left: 3px; color: #fff; font-size: 12px; }
.video-box { position: relative; padding-top: 56.25%; border-radius: 5px; overflow: hidden; background: #000; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.lazy-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 5px;
  overflow: hidden; color: var(--ink);
}
.lazy-card:hover { text-decoration: none; box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.lazy-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lazy-card b { display: block; padding: 10px 14px 14px; font-size: 15px; color: var(--brown); font-weight: normal; }

/* 遞補頁 */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab { padding: 8px 22px; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: var(--brown); font-size: 15px; }
.tab.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.tab:hover { text-decoration: none; border-color: var(--coral); color: var(--coral); }
.tab.active:hover { color: #fff; }
table { border-collapse: collapse; width: 100%; background: #fff; }
.grid-links { margin-bottom: 18px; }
.grid-links td { border: 1px solid var(--line); padding: 10px; text-align: center; }
.grid-links a { display: block; color: var(--link); }
.docs { background: var(--cream); border-radius: 5px; padding: 10px 14px; font-size: 15px; }
.vac { margin: 12px 0 24px; font-size: 15px; }
.vac th, .vac td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.vac th { background: var(--cream); color: var(--brown); font-weight: normal; }
.upd { color: var(--muted); }

/* 最新消息 */
.search { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.search select, .search input { padding: 8px 10px; border: 1px solid #ddd; border-radius: 5px; background: #fff; font-size: 14px; color: var(--ink); }
.search input { flex: 1; min-width: 180px; }
.search button {
  padding: 8px 20px; border: none; border-radius: 5px;
  background: var(--dark); color: #fff; font-size: 14px; cursor: pointer;
}
.search button:hover { background: var(--gold-d); }
.news-list { list-style: none; margin: 0 0 10px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; font-size: 15px; }
.news-list li { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-bottom: 1px dotted var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list .date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.news-list a { color: var(--link); }
.pin { background: var(--red); color: #fff; font-size: 11px; border-radius: 3px; padding: 1px 6px; }
.empty { color: var(--muted); }
.result-count { color: var(--muted); font-size: 13px; }
.pager { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.pg { min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--link); }
.pg.current { background: var(--dark); border-color: var(--dark); color: #fff; }
.news-detail { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 22px; }
.news-detail .meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.news-detail h2 { margin: 0 0 12px; font-size: 18px; }

/* 聯絡頁 */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 18px; }
.contact-card b { color: var(--brown); display: block; margin-bottom: 8px; font-weight: normal; font-size: 16px; }
.contact-card p { margin: 2px 0; font-size: 15px; }

/* 浮動公告:白底黑框紅字(原站形式) */
.float-ad { position: fixed; right: 12px; bottom: 90px; z-index: 99; width: 210px; text-align: center; }
.float-ad button {
  float: right; border: 1px solid var(--line); background: #fff; border-radius: 5px;
  font-size: 12px; padding: 2px 8px; cursor: pointer; color: var(--muted);
}
.float-ad-body {
  clear: both; background: #fff; border: 1px solid #000; border-radius: 8px;
  padding: 18px 10px; margin-top: 4px;
}
.float-ad-body b { display: block; color: red; font-size: 16px; }

/* 右下 TOP 按鈕:上緣一槓 + Page top 文字(fixed right:20、90vh) */
#goTopButton {
  display: none; position: fixed; right: 20px; top: 90vh;
  opacity: .7; cursor: pointer; z-index: 100000;
  border: 0; background: none; padding: 0;
  font-size: 13px; letter-spacing: 1px; color: #4a4645;
  font-family: Georgia, "Raleway", serif;
}
#goTopButton::before {
  content: ""; display: block; height: 3px; width: 100%;
  background: #3c3129; margin-bottom: 4px; transition: background .2s;
}
#goTopButton:hover { opacity: 1; color: var(--coral); }
#goTopButton:hover::before { background: var(--coral); }

/* 頁尾:米色 + 3px double 邊 */
.site-footer { background: var(--cream); color: #000; font-size: 14px; border-top: 3px double #ccc; margin-top: 40px; padding: 24px 0 20px; }
.site-footer a { color: var(--link); }
.counter { font-size: 13px; margin-bottom: 12px; color: #333; }
.foot-info { display: flex; gap: 40px; flex-wrap: wrap; line-height: 1.8; }
.disclaimer { font-size: 12px; color: #999; margin: 16px 0 0; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .header-row { justify-content: center; }
  .foot-info { gap: 10px; }
}

/* 最新消息內文(body_format 分流渲染) */
.news-body { font-size: 15px; line-height: 1.8; margin-top: 12px; }
.news-body-text { white-space: pre-line; }
.news-body p { margin: 0 0 0.8em; }
.news-body p:last-child { margin-bottom: 0; }
.news-body a { color: #1a5fb4; }
.news-body img { max-width: 100%; height: auto; border-radius: 4px; }
.news-body .doc-embed { margin: 10px 0; }
.news-body .doc-embed iframe { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 4px; background: #f7f7f7; }
