
    :root {  --gray-600: #5a6a8a;

      --navy: #1B2952;
      --gold: #D6B14A;
      --gold-light: #E9D48B;
      --white: #FFFFFF;
      --off-white: #F7F9FC;
      --gray-100: #F0F4F8;
      --gray-200: #DDE3EC;
      --gray-500: #5a6a8a;
      --text: #1A1A2E;
      --maxw: 720px;
      --font-serif: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif;
      --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
      --radius-sm: 6px;
      --radius-md: 10px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; color: var(--text); line-height: 1.8; background: var(--white); }
    a { color: var(--navy); }

    /* Header */
    .site-header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
    .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
    .brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; text-decoration: none; }
    .brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .brand-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.82rem; }
    .brand-text strong { font-weight: 700; color: var(--navy); font-size: 1rem; 
  white-space: nowrap;}
    .brand-text em { font-style: normal; color: #657892; font-size: 0.78rem; 
  white-space: nowrap;}
    .primary-nav { display: flex; gap: 0; margin-left: auto; }
    
    .primary-nav a:hover { background: var(--gray-100); }
    
    
    .primary-nav a.cta-btn:hover { background: var(--gold-light); }

    /* Article Hero */
    .article-hero { background: var(--navy); color: white; padding: 4rem 1.5rem 3rem; text-align: center; }
    .article-hero .container { max-width: var(--maxw); margin: 0 auto; }
    .article-hero .tag { display: inline-block; background: rgba(255,255,255,0.15); color: var(--gold-light); font-size: 0.78rem; padding: 0.25rem 0.75rem; border-radius: 100px; margin-bottom: 1.2rem; font-weight: 600; letter-spacing: 0.05em; }
    .article-hero h1 { font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; color: white; }
    .article-hero .lead { font-size: 1.05rem; opacity: 0.88; line-height: 1.7; max-width: 100%; margin: 0 auto; }
    .article-hero .meta { margin-top: 1.5rem; font-size: 0.8rem; opacity: 0.65; }

    /* Article Body */
    .article-body { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
    .article-body h2 { font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); }
    .article-body h3 { font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 1.8rem 0 0.6rem; }
    .article-body p { margin-bottom: 1.2rem; font-size: 1rem; color: #333; }
    .article-body ul, .article-body ol { margin: 1rem 0 1.2rem 1.5rem; }
    .article-body li { margin-bottom: 0.5rem; font-size: 1rem; color: #333; }
    .article-body strong { color: var(--navy); font-weight: 600; }
    .article-body em { color: #657892; font-style: normal; font-size: 0.9rem; }
    .article-body .highlight-box { background: var(--off-white); border-left: 4px solid var(--gold); padding: 1.2rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
    .article-body .highlight-box p { margin-bottom: 0; color: #444; }
    .article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
    .article-body th { background: var(--navy); color: white; padding: 0.7rem 1rem; text-align: left; font-weight: 600; }
    .article-body td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
    .article-body tr:nth-child(even) td { background: var(--off-white); }
    .article-body .faq { margin-top: 2.5rem; }
    .article-body .faq-item { background: var(--off-white); border-radius: var(--radius-md); padding: 1.2rem 1.5rem; margin-bottom: 1rem; }
    .article-body .faq-item h4 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
    .article-body .faq-item p { margin-bottom: 0; font-size: 0.95rem; color: #444; }
    .article-body .related-links { background: var(--off-white); border-radius: var(--radius-md); padding: 1.5rem; margin-top: 2.5rem; }
    .article-body .related-links h4 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
    .article-body .related-links ul { list-style: none; margin: 0; }
    .article-body .related-links li { margin-bottom: 0.6rem; padding-left: 1.2rem; position: relative; }
    .article-body .related-links li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
    .article-body .related-links a { color: var(--navy); text-decoration: none; font-size: 0.95rem; }
    .article-body .related-links a:hover { text-decoration: underline; }

    /* Back Link */
    .back-link { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 2rem; }
    .back-link a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gray-500); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
    .back-link a:hover { color: var(--navy); }

    /* Footer */
    footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 1.5rem; margin-top: 2rem; }
    footer .container { max-width: 1100px; margin: 0 auto;  }
    footer h4 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
    footer ul { list-style: none; }
    footer li { margin-bottom: 0.5rem; }
    footer a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; }
    footer a:hover { color: var(--gold-light); }
    footer .footer-bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem; text-align: center; }

    @media (max-width: 768px) {
      .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
      
      .article-body { padding: 2rem 1.25rem 3rem; }
      .article-hero { padding: 3rem 1.25rem 2.5rem; }
      table { font-size: 0.82rem; }
      .article-body th, .article-body td { padding: 0.5rem 0.6rem; }
    }

    .share-buttons { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 2rem auto; padding: 1.25rem 0 1.25rem 1rem; border-top: 1px solid #e8eaf2; justify-content: center; }
    .share-label { font-size: 0.85rem; color: #5a6a8a; font-weight: 500; }
    .share-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; border-radius: 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: none; transition: opacity 0.2s; text-decoration: none; color: #fff; }
    .share-btn:hover { opacity: 0.85; }
    .share-facebook { background: #1772e8; }
    .share-line { background: #008a00; }
    .share-copy { background: #4a5568; }
    .share-instagram { background: #c9295b; }

.search-result-item strong { font-weight:600; }

.article-update { text-align:center; padding:1.5rem 0 0.5rem; font-size:0.8rem; color:#5a6a8a; border-top:1px solid #e8eaf2; margin-top:1rem; }

  

.site-footer .container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy);
  padding: 32px 0;
  color: #fff;
}
.footer-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1 1 200px;
  min-width: 0;
}
.footer-brand img {
  display: block;
}
.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 4px;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.footer-col {
  flex: 1 1 150px;
  min-width: 0;
}
.footer-col h3,
.footer-col h4 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 0.82rem;
  font-weight: 700;
  color: #ccd2e0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 6px;
}
.footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copy {
  font-size: 0.78rem;
  color: #bcc3d4;
  margin: 0;
}
.footer-meta { color: #aeb6c8; font-size: 0.82rem; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
  .primary-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  
  .hero, .page-hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .sched-row { grid-template-columns: 80px repeat(5, 1fr); }
  .sched-time { font-size: 0.92rem; padding: 12px 6px; }
  .sched-time span { font-size: 0.7rem; }
  .schedule-card { padding: 20px 16px; }
  .sched-cell.on::before { width: 26px; height: 26px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .sched-row { grid-template-columns: 70px repeat(5, 1fr); font-size: 0.85rem; }
  .sched-head > div { padding: 8px 2px; font-size: 0.85rem; }
}

/* ---- Subtle entrance animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .feature-card, .news-card, .timeline li { opacity: 1; transform: translateY(8px); animation: fadeUp 0.6s ease forwards; }
  .feature-card:nth-child(1) { animation-delay: 0.05s; }
  .feature-card:nth-child(2) { animation-delay: 0.10s; }
  .feature-card:nth-child(3) { animation-delay: 0.15s; }
  .feature-card:nth-child(4) { animation-delay: 0.20s; }
  .feature-card:nth-child(5) { animation-delay: 0.25s; }
  .feature-card:nth-child(6) { animation-delay: 0.30s; }
  .feature-card:nth-child(7) { animation-delay: 0.35s; }
  .news-card:nth-child(1) { animation-delay: 0.05s; }
  .news-card:nth-child(2) { animation-delay: 0.10s; }
  .news-card:nth-child(3) { animation-delay: 0.15s; }
  .news-card:nth-child(4) { animation-delay: 0.20s; }
  .news-card:nth-child(5) { animation-delay: 0.25s; }
  .news-card:nth-child(6) { animation-delay: 0.30s; }
  .timeline li { animation-delay: 0.1s; }
  .timeline li:nth-child(2) { animation-delay: 0.15s; }
  .timeline li:nth-child(3) { animation-delay: 0.20s; }
  .timeline li:nth-child(4) { animation-delay: 0.25s; }
  .timeline li:nth-child(5) { animation-delay: 0.30s; }
  @keyframes fadeUp { to { transform: translateY(0); } }
}

/* 麵包屑導航 */
.breadcrumb { margin: 0 auto; padding: 1rem 1.5rem; max-width: 1200px; font-size: 0.85rem; color: #5a6a8a; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumb-list li { display: inline-flex; align-items: center; }
.breadcrumb-list li:not(:last-child)::after { content: ''; }
.breadcrumb-list a { color: #1B2952; text-decoration: none; padding: 0.25rem 0; transition: color 0.2s; }
.breadcrumb-list a:hover { color: #8e6a1d; text-decoration: underline; }
.breadcrumb-list .breadcrumb-sep { padding: 0 0.5rem; color: #c8c8c8; margin: 0 0.25rem; }
.breadcrumb-list > li:last-child > span { color: #5a6a8a; }
@media (max-width: 640px) {
  .breadcrumb { padding: 0.75rem 1rem; font-size: 0.8rem; }
  .breadcrumb-list .breadcrumb-sep { padding: 0 0.25rem; }
}

/* 文章目錄 */
.toc { margin: 2rem auto; }
.toc ol li { padding: 0.25rem 0; }
.toc a { color: #1a2744; }
.toc a:hover { color: #8e6a1d; text-decoration: underline; }
.toc strong { color: #1a2744; }

/* 讓 H2 錨點跳轉時不被 header 遮擋 */
.article-body h2[id],
.article-content h2[id],
.section h2[id] {
  scroll-margin-top: 100px;
}

/* Hub 快速導覽卡片 */
.hub-quick-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin: 2rem 0; }
.hub-nav-card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 12px; text-decoration: none; color: inherit; transition: all 0.25s; }
.hub-nav-card:hover { border-color: var(--gold); background: #fff8f0; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.hub-nav-icon { font-size: 2rem; flex-shrink: 0; }
.hub-nav-text { display: flex; flex-direction: column; gap: 0.25rem; }
.hub-nav-text strong { color: var(--navy); font-size: 1.05rem; font-weight: 700; }
.hub-nav-text em { color: var(--gray-600); font-size: 0.85rem; font-style: normal; line-height: 1.5; }

    .article-source { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.5rem; border-top: 1px solid #e8eaf2; }
    .article-source .container { padding: 0; }

.primary-nav a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 4px;
  transition: background 0.2s;

  white-space: nowrap;
  text-decoration: none;}
.primary-nav a:hover { background: var(--gray-100); color: var(--navy); }
.primary-nav a.active { background: var(--navy); color: #fff !important; }
.primary-nav a.cta-btn { background: #8e6a1d; color: var(--white); font-weight: 600; }
.primary-nav a.cta-btn:hover { background: #a87a1f; }
.primary-nav a.cta-btn.active { background: var(--navy); }

/* === 修正：<main class="article-body"> 內 hero / footer 文字被 .article-body p 覆蓋 === */
.article-body .article-hero p { color: white; }
.article-body .site-footer p { color: #bcc3d4; }
.article-body .site-footer .footer-name { color: #fff; }
.article-body .site-footer .footer-tagline { color: #bcc3d4; }
.article-body .site-footer .footer-copy { color: #bcc3d4; }
.article-body .site-footer .footer-disclaimer { color: #bcc3d4; }
.article-body .site-footer .footer-meta { color: #aeb6c8; }

@media (min-width: 769px) and (max-width: 1100px) {
  .primary-nav {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c8ccd8 transparent;
  }
  .primary-nav::-webkit-scrollbar { height: 4px; }
  .primary-nav::-webkit-scrollbar-thumb { background: #c8ccd8; border-radius: 2px; }
  .primary-nav::-webkit-scrollbar-track { background: transparent; }
  .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* 沒有漢堡按鈕的頁面：手機版把導覽列改回橫排可捲動，而不是整個隱藏 */
@media (max-width: 768px) {
  .site-header:not(:has(.nav-toggle)) .primary-nav {
    display: flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    border-bottom: 0 !important;
    flex-direction: row !important;
    padding: 0 !important;
    z-index: auto !important;
    width: auto !important;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header:not(:has(.nav-toggle)) .primary-nav::-webkit-scrollbar { display: none; }
  .site-header:not(:has(.nav-toggle)) .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* ============================================================
   Nav responsive fix (2026-10-27)
   平板/手機不再整頁橫向溢出；沒有漢堡按鈕的頁面改用可橫捲的導覽列。
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {
  .primary-nav {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c8ccd8 transparent;
  }
  .primary-nav::-webkit-scrollbar { height: 4px; }
  .primary-nav::-webkit-scrollbar-thumb { background: #c8ccd8; border-radius: 2px; }
  .primary-nav::-webkit-scrollbar-track { background: transparent; }
  .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* 沒有漢堡按鈕的頁面：手機版把導覽列改回橫排可捲動，而不是整個隱藏 */
@media (max-width: 768px) {
  .site-header:not(:has(.nav-toggle)) .nav-wrap {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    row-gap: 6px;
    padding-bottom: 6px;
  }
  .site-header:not(:has(.nav-toggle)) .primary-nav {
    display: flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    border-bottom: 0 !important;
    flex-direction: row !important;
    padding: 0 !important;
    z-index: auto !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header:not(:has(.nav-toggle)) .primary-nav::-webkit-scrollbar { display: none; }
  .site-header:not(:has(.nav-toggle)) .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* 文章頁 hero 標題統一置中（2026-10-31，全站一致性） */
body .article-hero,
body .hub-hero,
body .page-hero {
  text-align: center;
}
body .article-hero .container,
body .hub-hero .container,
body .page-hero .container {
  text-align: center;
}
body .article-hero h1,
body .hub-hero h1,
body .page-hero h1 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; text-align: center;
  margin-left: auto;
  margin-right: auto;
}
body .article-hero .eyebrow,
body .article-hero .article-eyebrow,
body .article-hero .article-category,
body .article-hero .tag,
body .hub-hero .eyebrow,
body .page-hero .eyebrow {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}
body .article-hero .article-meta,
body .article-hero .meta,
body .hub-hero .article-meta,
body .page-hero .article-meta {
  justify-content: center;
  text-align: center;
}
/* 麵包屑保持靠左（不隨 hero 標題置中） */
body .article-hero .breadcrumb,
body .article-hero .breadcrumb-list,
body .hub-hero .breadcrumb,
body .hub-hero .breadcrumb-list,
body .page-hero .breadcrumb,
body .page-hero .breadcrumb-list {
  text-align: left;
}
body .article-hero .breadcrumb-list,
body .hub-hero .breadcrumb-list,
body .page-hero .breadcrumb-list {
  justify-content: flex-start;
}
body .article-hero .lead,
body .article-hero .article-subtitle,
body .article-hero .subtitle,
body .hub-hero .lead,
body .hub-hero .subtitle,
body .page-hero .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 文章頁 hero 標題容器寬度統一（2026-10-31，全站視覺一致） */
body .article-hero .container,
body .hub-hero .container,
body .page-hero .container {
  max-width: 760px;
}

/* 文章頁 hero 標題容器寬度統一（2026-10-31，全站視覺一致） */
body .article-hero .container,
body .hub-hero .container,
body .page-hero .container {
  max-width: 760px;
}
