/* public.css — 全站公共樣式（header / footer / 共用元件） */
:root {
  --navy: #14305c;
  --navy-dark: #0d2144;
  --blue: #1d4e9e;
  --blue-light: #eaf1fb;
  --gold: #c9a227;
  --gold-dark: #a8861a;
  --gold-light: #f3e6bd;
  --red: #b03a2e;
  --ink: #22304a;
  --muted: #5d6b82;
  --line: #e2e8f2;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 48, 92, 0.08);
  --shadow-lg: 0 14px 40px rgba(20, 48, 92, 0.14);
  --font-sans: "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  --font-serif: "Songti TC", "PMingLiU", "MingLiU", "Noto Serif TC", "Source Han Serif TC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }
ul, ol { list-style-position: inside; }



#fullscreen-loader {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

#fullscreen-loader::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 8px solid var(--navy);
  animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
  0% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }

  12.5% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
  }

  25% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
  }

  50% {
      clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }

  62.5% {
      clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }

  75% {
      clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
  }

  100% {
      clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
  }
}

@keyframes l20-2 {
  0% {
      transform: scaleY(1) rotate(0deg);
  }

  49.99% {
      transform: scaleY(1) rotate(135deg);
  }

  50% {
      transform: scaleY(-1) rotate(0deg);
  }

  100% {
      transform: scaleY(-1) rotate(-135deg);
  }
}


.page_content { width: min(1180px, 92%); margin: 0 auto; }

/* 頂欄 */
.page_topbar {
  background: var(--navy-dark);
  color: #c8d5ea;
  font-size: 13px;
  padding: 6px 0;
}
.page_topbar .page_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page_topbar a { color: #e6edf8; }
.page_topbar a:hover { color: var(--gold-light); }
.page_topbar_note { color: var(--gold-light); letter-spacing: 1px; }
.page_topbar_contacts { display: flex; gap: 18px; flex-wrap: wrap; }

/* 頁眉 */
.page_header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(20, 48, 92, 0.06);
}
.page_header .page_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.page_brand {
  display: flex;
  align-items: center;
  flex: none;
  max-width: min(420px, 48%); 
  border-radius: 6px;
  overflow: hidden;
}
.page_brand_img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}
.page_brand_seal {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c0392b, #8e2418);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 4px 10px rgba(142, 36, 24, .3);
  flex: none;
}
.page_brand_text { line-height: 1.25; }
.page_brand_text .zh {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
  display: block;
}
.page_brand_text .en {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .2px;
  display: block;
}
.page_nav_toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.page_nav_toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .25s, opacity .25s;
}
.page_nav_toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.page_nav_toggle.open span:nth-child(2) { opacity: 0; }
.page_nav_toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.page_nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
}
.page_nav a {
  display: block;
  padding: 8px 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}
.page_nav a:hover { background: var(--blue-light); color: var(--blue); }
.page_nav a.active,
.page_nav .current-menu-item > a,
.page_nav .current_page_item > a {
  background: var(--navy);
  color: #fff;
}

/* 內頁橫幅 */
.page_banner {
  background:
    linear-gradient(120deg, rgba(13, 33, 68, .94), rgba(29, 78, 158, .88)),
    url("../img/index_04.jpg") center / cover no-repeat;
  color: #fff;
  padding: 58px 0 52px;
}
.page_banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.page_crumbs { font-size: 14px; color: #b9c9e4; }
.page_crumbs a { color: #dce7f7; }
.page_crumbs a:hover { color: var(--gold-light); }
.page_lede { max-width: 760px; margin-top: 14px; color: #dbe5f5; font-size: 15.5px; }

/* 共用區塊 */
.page_section { padding: 64px 0; }
.page_section.alt { background: #fff; }
.page_head { margin-bottom: 36px; }
.page_head .page_eyebrow {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page_head h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  letter-spacing: 3px;
}
.page_head.center { text-align: center; }
.page_head .page_sub { color: var(--muted); margin-top: 10px; max-width: 720px; }
.page_head.center .page_sub { margin-left: auto; margin-right: auto; }

.page_card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.page_btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.page_btn_primary { background: var(--gold); color: #fff; }
.page_btn_primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.page_btn_outline { border-color: rgba(255,255,255,.7); color: #fff; }
.page_btn_outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.page_btn_navy { background: var(--navy); color: #fff; }
.page_btn_navy:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.page_btns { display: flex; gap: 14px; flex-wrap: wrap; }

.page_badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  letter-spacing: 2px;
}

.page_grid_4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.page_grid_3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.page_grid_2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.page_cta {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.page_cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.page_cta p { color: #ccdaf0; max-width: 640px; margin: 0 auto 28px; }
.page_cta .page_btns { justify-content: center; }

.page_table_wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.page_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
}
.page_table th, .page_table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.page_table thead th, .page_table th.head {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-serif);
  letter-spacing: 2px;
  font-size: 16px;
}
.page_table tr:last-child td { border-bottom: none; }
.page_table td.label, .page_table th[scope="row"] {
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  width: 190px;
}
.page_table tr:hover td:not(.label) { background: #fafcff; }

.page_name_list { display: flex; flex-wrap: wrap; gap: 8px; }
.page_name_list span {
  background: var(--blue-light);
  color: var(--navy);
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 14.5px;
  letter-spacing: 1px;
}
.page_name_list.gold span { background: var(--gold-light); color: var(--gold-dark); }

.page_tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.page_tab_btn {
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
}
.page_tab_btn:hover { border-color: var(--blue); color: var(--blue); }
.page_tab_btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.page_tab_panel { display: none; }
.page_tab_panel.active { display: block; animation: page_fadeIn .35s ease; }
@keyframes page_fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page_gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.page_album {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.page_album:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.page_album .thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.page_album .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.page_album:hover .thumb img { transform: scale(1.07); }
.page_album figcaption {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  line-height: 1.5;
}

.page_highlight {
  background: linear-gradient(120deg, #fdf8e9, #faf3d8);
  border: 1px solid #eadfae;
  border-radius: var(--radius);
  padding: 26px 30px;
}
.page_highlight h3 {
  font-family: var(--font-serif);
  color: var(--gold-dark);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.page_fee_list { list-style: none; }
.page_fee_list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.page_fee_list li:last-child { border-bottom: none; }
.page_fee_list .fee { font-weight: 700; color: var(--red); white-space: nowrap; }

.page_steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
.page_steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 22px 74px;
  position: relative;
  box-shadow: var(--shadow);
}
.page_steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page_steps li h4 { color: var(--navy); margin-bottom: 4px; font-size: 16px; }
.page_steps li p { color: var(--muted); font-size: 14.5px; }

.page_info_card { display: flex; gap: 16px; align-items: flex-start; }
.page_info_card .ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page_info_card .ic svg {
  display: block;
  width: 24px;
  height: 24px;
}
.page_info_card:hover .ic { color: var(--gold-dark); }
.page_info_card h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.page_info_card p { color: var(--muted); font-size: 14.5px; }

.page_map {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 頁腳 */
.page_footer { background: var(--navy-dark); color: #b6c4dc; font-size: 14.5px; }
.page_footer_main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  padding: 56px 0 44px;
}
.page_footer h4 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.page_footer a { color: #b6c4dc; }
.page_footer a:hover { color: var(--gold-light); }
.page_footer_links { list-style: none; }
.page_footer_links li { margin-bottom: 8px; }
.page_footer_brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.page_footer_brand .page_brand_seal { width: 44px; height: 44px; font-size: 24px; }
.page_footer_brand .zh { font-family: var(--font-serif); color: #fff; font-size: 18px; letter-spacing: 2px; display: block; }
.page_footer_brand .en { font-size: 10px; color: #8ba0c2; display: block; }
.page_footer_bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  font-size: 13px;
  color: #7f93b5;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* 燈箱 / 回頂 / 動畫 */
.page_lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 34, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 4vh 4vw;
  flex-direction: column;
  gap: 14px;
}
.page_lightbox.open { display: flex; }
.page_lightbox img {
  max-width: 100%;
  max-height: 84vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.page_lightbox .lb-caption { color: #dbe5f5; font-size: 15px; text-align: center; }
.page_lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  line-height: 1;
}
.page_totop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow-lg);
  z-index: 90;
}
.page_totop.show { opacity: 1; pointer-events: auto; }
.page_totop:hover { background: var(--blue); transform: translateY(-3px); }
.page_reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.page_reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .page_brand { max-width: calc(100% - 60px); }
  .page_brand_img { max-height: 56px; }
  .page_nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .page_nav.open { display: block; }
  .page_nav ul { flex-direction: column; padding: 12px; gap: 4px; }
  .page_nav a { font-size: 16px; padding: 12px 16px; }
  .page_nav_toggle { display: flex; }
  .page_grid_4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .page_grid_3, .page_grid_2 { grid-template-columns: 1fr; }
  .page_footer_main { grid-template-columns: 1fr; gap: 32px; }
  .page_table td.label, .page_table th[scope="row"] { width: auto; white-space: normal; }
}
@media (max-width: 560px) {
  .page_grid_4 { grid-template-columns: 1fr; }
  .page_section { padding: 46px 0; }
}

.home_activities .home_more { text-align: center; margin-top: 36px; }

