:root {
  --primary:   #1a3a5c;
  --secondary: #2e6da4;
  --accent:    #e8a020;
  --light-bg:  #f0f4f8;
  --text-dark: #1c2b3a;
}

* { font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }
body { background: var(--light-bg); }

/* ── Topbar ── */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  padding: 6px 0;
}
.topbar a { color: #c9dff0; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── Navbar ── */
.navbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); padding: 0; }
.navbar-brand { padding: 12px 0; }
.navbar-brand .site-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  max-width: 340px;
}
.navbar-brand .site-sub {
  font-size: .72rem;
  color: var(--secondary);
  letter-spacing: .04em;
}
.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-size: .85rem;
  font-weight: 500;
  padding: 18px 10px !important;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
  border-bottom-color: var(--accent);
}

/* ── Hero Banner ── */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #0d2540;
}
.hero-map-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(13,37,64,.94) 0%, rgba(26,58,92,.82) 48%, rgba(26,58,92,.35) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero p {
  font-size: .95rem;
  opacity: .88;
  margin-bottom: 24px;
}
.hero-stats {
  display: flex; gap: 32px;
  margin-top: 28px;
}
.hero-stat-item { text-align: center; }
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.hero-stat-label { font-size: .75rem; opacity: .8; }

/* ── Notice Bar ── */
.notice-bar {
  background: var(--secondary);
  color: #fff;
  padding: 10px 0;
  font-size: .85rem;
}
.nb-label {
  background: var(--accent);
  border-radius: 3px; padding: 2px 10px;
  font-weight: 700; font-size: .78rem;
  margin-right: 14px; white-space: nowrap; flex-shrink: 0;
}

/* 跨馬燈文字連結 */
.ticker-text {
  flex: 1;
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.ticker-text:hover { text-decoration: underline; }
@keyframes tickerFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ticker-in { animation: tickerFadeIn .4s ease forwards; }

/* 小點 */
.ticker-dots {
  display: flex; gap: 6px; align-items: center;
  margin-left: 14px; flex-shrink: 0;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  padding: 0; transition: background .2s;
}
.ticker-dot.active { background: #fff; }
.ticker-dot:hover  { background: rgba(255,255,255,.7); }


/* ── Section Titles ── */
.section-title {
  position: relative;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  padding-left: 16px;
  margin-bottom: 24px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 4px; height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── News Cards ── */
.news-section { background: #fff; padding: 60px 0; }
.news-card {
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 6px 20px rgba(26,58,92,.12); transform: translateY(-3px); }
.news-date {
  font-size: .75rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.news-tag {
  display: inline-block;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  margin-bottom: 8px;
  font-weight: 600;
}
.tag-notice { background: #fef3d0; color: #a0600a; }
.tag-meeting { background: #ddeeff; color: #1a5a99; }
.tag-announce { background: #f0fde8; color: #3a7a20; }
.news-title { font-size: .92rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.news-excerpt { font-size: .82rem; color: #6b7f92; line-height: 1.6; }
.btn-more {
  font-size: .8rem;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 4px;
  padding: 4px 14px;
  text-decoration: none;
  transition: all .2s;
}
.btn-more:hover { background: var(--secondary); color: #fff; }

/* ── Progress Timeline ── */
.progress-section { background: var(--light-bg); padding: 60px 0; }
.timeline { position: relative; padding: 10px 0; }
.timeline::before {
  content: '';
  position: absolute; top: 28px; left: 0; right: 0; height: 4px;
  background: #d0dce8;
}
.timeline-items { display: flex; justify-content: space-between; position: relative; }
.timeline-item { text-align: center; flex: 1; position: relative; }
.timeline-dot {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative; z-index: 1;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.dot-done { background: var(--secondary); color: #fff; }
.dot-current { background: var(--accent); color: #fff; animation: pulse 2s infinite; }
.dot-pending { background: #d0dce8; color: #7a8fa0; }
@keyframes pulse {
  0%,100% { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  50% { box-shadow: 0 2px 20px rgba(232,160,32,.5); }
}
.timeline-label { font-size: .78rem; font-weight: 700; color: var(--primary); }
.timeline-sub { font-size: .7rem; color: #7a8fa0; margin-top: 4px; }
.timeline-status {
  display: inline-block; font-size: .65rem; padding: 2px 8px;
  border-radius: 10px; margin-top: 6px;
}
.status-done { background: #ddeeff; color: #1a5a99; }
.status-active { background: #fef3d0; color: #a0600a; }
.status-pending { background: #eee; color: #888; }

/* ── Quick Access ── */
.quick-section { background: var(--primary); padding: 60px 0; }
.quick-section .section-title { color: #fff; }
.quick-section .section-title::before { background: var(--accent); }
.quick-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  display: block;
  transition: all .2s;
}
.quick-card:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-4px);
  border-color: var(--accent);
}
.quick-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}
.quick-label { font-size: .88rem; font-weight: 700; }
.quick-sub { font-size: .73rem; opacity: .7; margin-top: 4px; }

/* ── Announcement Banner ── */
.announce-section { background: #fff; padding: 50px 0; }
.announce-card {
  background: linear-gradient(135deg, #f0f8ff, #e8f4fd);
  border-left: 5px solid var(--secondary);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.announce-badge {
  font-size: .7rem; font-weight: 700;
  background: var(--secondary); color: #fff;
  padding: 2px 8px; border-radius: 3px;
  margin-right: 10px;
}
.announce-title { font-size: .9rem; font-weight: 700; color: var(--text-dark); margin-top: 8px; }
.announce-date { font-size: .75rem; color: #7a8fa0; }

/* ── Footer ── */
footer {
  background: #0d2540;
  color: #a0b4c8;
  padding: 48px 0 24px;
}
footer .footer-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
footer a { color: #7a9fc0; text-decoration: none; }
footer a:hover { color: #fff; }
footer .footer-info li { font-size: .83rem; padding: 4px 0; display: flex; align-items: flex-start; gap: 8px; }
footer .footer-info .icon { flex-shrink: 0; }
.footer-divider { border-top: 1px solid rgba(255,255,255,.1); margin: 28px 0 16px; }
.footer-bottom { font-size: .78rem; color: #5a7a94; text-align: center; }

/* ── Utility ── */
.btn-primary-custom {
  background: var(--secondary); border: none; color: #fff;
  padding: 10px 28px; border-radius: 4px; font-weight: 600; font-size: .9rem;
  text-decoration: none; display: inline-block; transition: background .2s;
}
.btn-primary-custom:hover { background: var(--primary); color: #fff; }
.btn-outline-custom {
  border: 2px solid rgba(255,255,255,.4); color: rgba(255,255,255,.9);
  padding: 9px 26px; border-radius: 4px; font-weight: 600; font-size: .9rem;
  text-decoration: none; display: inline-block; transition: all .2s;
}
.btn-outline-custom:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

@media (max-width: 768px) {
  .hero { height: auto; padding: 50px 0 40px; }
  .hero h1 { font-size: 1.4rem; }
  .hero-stats { gap: 16px; }
  .timeline-items { flex-direction: column; gap: 16px; }
  .timeline::before { display: none; }
}

/* ── FAQ Section ── */
.page-header { background: #0d2540; color: #fff; padding: 60px 0; text-align: center; }
.page-header h1 { font-weight: 700; font-size: 2rem; margin-bottom: 10px; }
.page-header p { opacity: 0.8; font-size: 0.95rem; }

.faq-sidebar { position: sticky; top: 100px; }
.faq-nav-link {
    display: block; padding: 12px 16px; border-radius: 6px;
    color: var(--text-dark); text-decoration: none; font-weight: 600;
    transition: all 0.2s; margin-bottom: 8px; border: 1px solid transparent;
}
.faq-nav-link:hover, .faq-nav-link.active {
    background: #fff; border-color: var(--secondary); color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-box {
    position: relative; margin-bottom: 30px;
}
.search-input {
    width: 100%; border: 2px solid #ddeeff; border-radius: 8px; padding: 14px 20px 14px 48px;
    font-size: 1rem; transition: border-color 0.3s;
}
.search-input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(46,109,164,0.1); }
.search-icon { position: absolute; left: 16px; top: 16px; font-size: 1.2rem; filter: grayscale(1); opacity: 0.5; }

.accordion-item { border: none; margin-bottom: 12px; border-radius: 8px !important; box-shadow: 0 2px 6px rgba(0,0,0,0.04); overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--primary); padding: 16px 20px; }
.accordion-button:not(.collapsed) { background: #ddeeff; color: var(--secondary); box-shadow: none; }
.accordion-button::after { filter: invert(0); }
.accordion-body { color: #5a7a94; line-height: 1.7; font-size: 0.95rem; }

.cat-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 30px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #ddeeff; }

mark.highlight { background-color: var(--accent); color: #fff; padding: 0 2px; border-radius: 2px; }
.hidden { display: none !important; }

/* ── Back to Top ── */
#backToTop {
  position: fixed;
  bottom: 36px;
  right: 32px;
  z-index: 99999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: #2e6da4;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  display: none;
  transition: background-color 0.2s;
}
#backToTop:hover { background-color: #1a3a5c; }

/* ── Page Header（各子頁面通用）── */
.page-header {
  background: linear-gradient(135deg, #0d2540 0%, #1a3a5c 60%, #1e4876 100%);
  color: #fff;
  padding: 52px 0 44px;
  text-align: center;
}
.page-header-icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
  display: block;
}
.page-header h1 {
  font-size: 1.75rem; font-weight: 800; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.page-header p {
  font-size: .95rem; opacity: .82; margin-bottom: 0; line-height: 1.7;
}

/* ── Breadcrumb 麵包屑 ── */
.breadcrumb-custom {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0;
  gap: 4px; flex-wrap: wrap;
}
.breadcrumb-custom li, .breadcrumb-custom li.sep {
  font-size: .8rem; color: rgba(255,255,255,.65);
}
.breadcrumb-custom li.sep { margin: 0 2px; }
.breadcrumb-custom a {
  color: rgba(255,255,255,.75); text-decoration: none;
}
.breadcrumb-custom a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-custom li.current { color: var(--accent); font-weight: 700; }

