
    :root {
      --navy: #1B2952;
      --navy-light: #2a4073;
      --gold: #8e6a1d;
      --gold-light: #f5d77a;
      --gold-400: #e8b84b;
      --gold-600: #a67520;
      --white: #ffffff;
      --off-white: #f8f9fc;
      --gray-100: #f4f5fa;
      --gray-200: #e8eaf2;
      --gray-500: #5a6a8a;
      --gray-700: #4a5568;
      --text: #2d3748;
      --text-light: #64748B;
      --footer-bg: #10192F;
      --border: #E8ECF2;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    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: inherit; text-decoration: none; }

    /* NAV */
    .site-header { background: var(--white); border-bottom: 1px solid var(--border); 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; }
    .brand-mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
    .brand-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 0.82rem; }
    .brand-text strong { font-weight: 700; color: var(--navy); font-size: 1.15rem; 
  white-space: nowrap;}
    .brand-text em { font-style: normal; color: var(--gray-500); font-size: 0.78rem; 
  white-space: nowrap;}
    .primary-nav { display: flex; gap: 0; flex-wrap: nowrap; }
    .primary-nav a { text-decoration: none; }
    .primary-nav a:hover { background: var(--off-white); }
    
    

    /* HERO */
    .hero { background: var(--navy); padding: 5rem 0 4rem; text-align: center; }
    .hero-eyebrow { color: #b88a26; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; font-family: 'Montserrat', 'PingFang TC', 'Microsoft JhengHei', sans-serif; margin-bottom: 1rem; }
    .hero h1 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; color: var(--white); font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }
    .hero-sub { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 2rem; }

    /* CONTENT */
    .container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
    .content-section { padding: 5rem 0; }
    .article-body .container { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
    .section-divider { width: 48px; height: 3px; background: var(--gold); margin: 3rem auto; }

    .section-eyebrow { color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; font-family: 'Montserrat', 'PingFang TC', 'Microsoft JhengHei', sans-serif; margin-bottom: 1rem; text-align: center; }
    .section-title { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 2rem; text-align: center; }

    .profile-header { text-align: center; margin-bottom: 3rem; }
    .profile-name { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
    .profile-en { font-family: 'Montserrat', 'PingFang TC', 'Microsoft JhengHei', sans-serif; font-size: 1rem; color: var(--gray-500); margin-bottom: 0.75rem; letter-spacing: 0.05em; }
    .profile-title { font-size: 0.95rem; color: var(--text-light); }

    .info-block { margin-bottom: 3rem; }
    .info-block-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
    .info-block ul { list-style: none; }
    .info-block li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
    .info-block li:last-child { border-bottom: none; }

    .intro-text { font-size: 1.05rem; line-height: 2; color: var(--text); margin-bottom: 1.5rem; }
    .intro-text p { margin-bottom: 1.5rem; }

    .specialty-group { margin-bottom: 3rem; }
    .specialty-group-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
    .specialty-list { list-style: none; }
    .specialty-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
    .specialty-list li:last-child { border-bottom: none; }

    .quote-block { background: var(--off-white); padding: 2rem; border-left: 4px solid var(--gold); margin: 2rem 0; }
    .quote-text { font-size: 1.1rem; line-height: 1.9; color: var(--text); font-style: italic; }

    .three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
    .three-col-item { background: var(--off-white); padding: 1.5rem; border-radius: 8px; text-align: center; }
    .three-col-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; }
    .three-col-item p { font-size: 0.875rem; color: var(--text-light); }

    .emphasis-box { background: var(--navy); color: var(--white); padding: 2.5rem; border-radius: 8px; margin: 2rem 0; text-align: center; }
    .emphasis-box h3 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: #946f1e; }
    .emphasis-box p { font-size: 1rem; line-height: 1.8; opacity: 0.9; }

    .flow-diagram { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 2rem 0; }
    .flow-item { background: var(--off-white); padding: 0.75rem 1.25rem; border-radius: 4px; font-size: 0.9rem; color: var(--navy); font-weight: 500; }
    .flow-arrow { color: var(--gold); font-weight: 700; }

    .tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
    .tag { background: var(--off-white); padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.85rem; color: var(--navy); border: 1px solid var(--border); }

    /* BACK */
    .back-section { background: var(--off-white); padding: 3rem 0; text-align: center; }
    .back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--navy); font-size: 0.95rem; font-weight: 500; }
    .back-link:hover { color: var(--gold); }

    /* FOOTER */
    .site-footer { background: var(--footer-bg); color: #ccd2e0; padding: 2.5rem 0; font-size: 0.82rem; }
    .footer-brand {
  display: flex;
  flex-direction: column;
  text-align: left; text-align: left; }
    .footer-col { text-align: left; }
    .footer-bottom { padding-top: 1.5rem; }
    footer a { color: rgba(255,255,255,0.7); }
    footer a:hover { color: #fff; text-decoration: none; }
    footer ul { list-style: none; margin: 0; padding: 0; }
    footer li { margin-bottom: 6px; }
    @media (max-width: 768px) {
      .primary-nav { display: none; }
      .hero h1 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 1.7rem; }
      .three-col { grid-template-columns: 1fr; }
      .flow-diagram { flex-direction: column; align-items: center; }
      .flow-arrow { transform: rotate(90deg); }
    }

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

  
.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: var(--gold-600); color: #141414; font-weight: 600; }
.primary-nav a.cta-btn:hover { background: var(--gold-400); }
.primary-nav a.cta-btn.active { background: var(--navy); }
    .footer-top { display: flex; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
    .footer-brand { flex: 0 0 auto; }
    .footer-col { flex: 1 1 auto; min-width: 140px; }

/* 正文與資訊卡內的文內連結加底線（WCAG 1.4.1） */
.article-body a,
.article-content a,
.author-box a,
.map-address a,
.info-card a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@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; }
}

/* ── 麵包屑（頁面專屬 CSS 未引用主 styles.css，故在此補齊）───────── */
.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 a { color: #1B2952; text-decoration: underline; text-underline-offset: 0.2em; padding: 0.25rem 0; transition: color 0.2s; }
.breadcrumb-list a:hover { color: #8e6a1d; }
.breadcrumb-list .breadcrumb-sep { padding: 0 0.5rem; color: #767676; margin: 0 0.25rem; }
.breadcrumb-list > li:last-child > span { color: #5a6a8a; }
@media (max-width: 768px) {
  .breadcrumb { padding: 0.75rem 1rem; font-size: 0.8rem; }
  .breadcrumb-list .breadcrumb-sep { padding: 0 0.25rem; }
}

/* ============================================================
   導覽列水平溢出修正（2026-11-06）
   1101–1400px：brand + nav 超出 .nav-wrap 的 1120px 限制，
   在 1101–1199px 視窗出現橫向捲軸。此區間縮小連結左右內距，
   讓 9 個導覽項目完整顯示，不需橫向捲動。
   ============================================================ */
@media (min-width: 1101px) {
  .primary-nav a {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .nav-wrap { gap: 1rem; }
}
